|
Traceability | |||||||||
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.traceability.hmi.wizards.TtmDiagramsPage
public class TtmDiagramsPage
In order to customise the Page properly we have deleted the previons
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
TtmDiagramsPage(java.lang.String pageName,
org.eclipse.jface.viewers.IStructuredSelection selection)
Constructor |
|
TtmDiagramsPage(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 |
createDirectoryGroup(org.eclipse.swt.widgets.Composite parent)
Create the group defining the directory location - New one - Or existing one |
protected void |
createModelGroup(org.eclipse.swt.widgets.Composite parent)
Create the Model group allowding to enter the new model name or to select an existing model file from the repository |
java.lang.String |
getDiagramId()
Returns the selected diagram id |
java.lang.String |
getEditorID()
|
java.lang.String |
getFileExtension()
|
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 |
java.lang.String |
getNewProjectLocation()
Return the NewProject Location if the |
URI |
getNewProjectLocationURI()
Get the URI for the location field if possible. |
java.lang.String |
getNewProjectName()
Returns the new eclipse project name in which the model will be added |
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 |
handleProjectLocationChoose()
Handle the project location choice button action |
boolean |
isDefaultLocation()
|
boolean |
isInitialized()
Returns if the diagram must be initialized with model objects |
boolean |
isNewModel()
Return the choice of creation made by the user |
boolean |
isNewProject()
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 TtmDiagramsPage(java.lang.String pageName, org.eclipse.jface.viewers.IStructuredSelection selection)
pageName
- selection
- public TtmDiagramsPage(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 createModelGroup(org.eclipse.swt.widgets.Composite parent)
parent
- protected void createDirectoryGroup(org.eclipse.swt.widgets.Composite parent)
parent
- protected void handleDirectoryChoose()
protected void handleModelChoose()
protected void handleProjectLocationChoose()
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 java.lang.String getNewProjectName()
public EObject getRootEObject()
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 boolean isNewProject()
public java.lang.String getEditorID()
org.topcased.modeler.wizards.TtmDiagramsPage#getEditorID()
public java.lang.String getFileExtension()
org.topcased.modeler.wizards.TtmDiagramsPage#getFileExtension()
public java.lang.String getNewProjectLocation()
public URI getNewProjectLocationURI()
null
if it is not valid.public boolean isDefaultLocation()
|
Traceability | |||||||||
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.