|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.topcased.modeler.wizards.DiagramsPage
public abstract class DiagramsPage
This page displays the new file information inputs.
creation : 13 dec. 2004
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
DiagramsPage(java.lang.String pageName,
org.eclipse.jface.viewers.IStructuredSelection selection)
Deprecated. Use the constructor that enables to specify whether the Diagram may be initialized |
|
DiagramsPage(java.lang.String pageName,
org.eclipse.jface.viewers.IStructuredSelection selection,
boolean allowDiagramInitialization)
Constructor |
Method Summary | |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
Creation of the wizard page |
protected void |
createDestinationGroup(org.eclipse.swt.widgets.Composite parent)
Create the Destination group |
abstract ComposedAdapterFactory |
getAdapterFactory()
Subclasses must implement this method to return the ComposedAdapterFactory |
abstract java.lang.String |
getDefaultTemplateId()
Subclasses must implement this IWizard method to perform any special finish processing for their
wizard. |
EObject |
getDiagramEObject()
Returns the selected EObject that will be associated with the diagrams file. |
java.lang.String |
getDiagramId()
Returns the selected diagram id |
abstract java.lang.String |
getEditorID()
Subclasses must implement this method to return the editorID on which the templates should be filtered |
abstract java.lang.String |
getFileExtension()
Subclasses must implement this method to return the file extension |
java.lang.String |
getModelName()
Returns the selected model name |
protected java.lang.String |
getModelNameWithoutExtension(java.lang.String fullName)
Returns the name of the modelFile without extension |
protected ResourceSet |
getResourceSet()
Return the ResourceSet used to store the model and diagram file. |
EObject |
getRootEObject()
Returns the root EObject of the model file |
org.eclipse.core.resources.IContainer |
getSelectedIContainer()
Returns the selected destination container |
java.lang.String |
getTemplateId()
Returns the selected template id |
protected void |
handleDirectoryChoose()
Handle the directory choice button action |
protected void |
handleModelChoose()
Handle the model choice button action |
protected void |
handleRootModelObjectChanged()
Handle the change of the root model object. |
boolean |
isInitialized()
Returns if the diagram must be initialized with model objects |
boolean |
isNewModel()
Return the choice of creation made by the user |
protected boolean |
loadModelFile()
Load the modelFile selected and update the associated widgets |
protected boolean |
validatePage()
Check if the informations contained in the page are OK |
Methods inherited from class org.eclipse.jface.wizard.WizardPage |
---|
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
---|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
---|
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible |
Constructor Detail |
---|
public DiagramsPage(java.lang.String pageName, org.eclipse.jface.viewers.IStructuredSelection selection)
pageName
- selection
- public DiagramsPage(java.lang.String pageName, org.eclipse.jface.viewers.IStructuredSelection selection, boolean allowDiagramInitialization)
pageName
- the page titleselection
- the selected objectallowDiagramInitialization
- Method Detail |
---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)
protected void createDestinationGroup(org.eclipse.swt.widgets.Composite parent)
parent
- the Compositeprotected void handleDirectoryChoose()
protected void handleModelChoose()
protected void handleRootModelObjectChanged()
protected boolean loadModelFile()
protected ResourceSet getResourceSet()
protected boolean validatePage()
public boolean isInitialized()
true
if diagram must be initializedpublic org.eclipse.core.resources.IContainer getSelectedIContainer()
public java.lang.String getModelName()
public EObject getRootEObject()
public EObject getDiagramEObject()
protected java.lang.String getModelNameWithoutExtension(java.lang.String fullName)
fullName
- the name with (or without) extension
public java.lang.String getTemplateId()
public java.lang.String getDiagramId()
public boolean isNewModel()
public abstract java.lang.String getEditorID()
public abstract java.lang.String getFileExtension()
public abstract ComposedAdapterFactory getAdapterFactory()
public abstract java.lang.String getDefaultTemplateId()
IWizard
method to perform any special finish processing for their
wizard.
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.