|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.wizard.Wizard
de.cau.cs.kieler.core.model.graphiti.ui.GraphitiNewWizard
public abstract class GraphitiNewWizard
A generic wizard for creation of new Graphiti diagrams.
Field Summary |
---|
Fields inherited from class org.eclipse.jface.wizard.Wizard |
---|
DEFAULT_IMAGE |
Constructor Summary | |
---|---|
GraphitiNewWizard(String name,
String diagExt,
String domainExt,
String thediagramTypeName)
Creates a new-wizard for Graphiti, with no grid. |
|
GraphitiNewWizard(String name,
String diagExt,
String domainExt,
String thediagramTypeName,
String theeditorId)
Creates a new-wizard for Graphiti, with no grid. |
|
GraphitiNewWizard(String name,
String diagExt,
String domainExt,
String thediagramTypeName,
String theeditorId,
int thegridSize,
boolean thesnapToGrid)
Creates a new-wizard for Graphiti, with customizable grid. |
Method Summary | |
---|---|
void |
addPages()
|
protected void |
configureDiagram(org.eclipse.graphiti.mm.pictograms.Diagram diagram)
Configure the diagram. |
protected abstract EObject |
createModel(String name)
Create an instance of the top-level object for the domain model. |
static Map<?,?> |
createSaveOptions()
Creates save options for the resources. |
void |
init(IWorkbench theworkbench,
IStructuredSelection theselection)
|
boolean |
performFinish()
|
static void |
setCharset(IFile file)
Set the character set for the given file to UTF-8. |
Methods inherited from class org.eclipse.jface.wizard.Wizard |
---|
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.wizard.IWizard |
---|
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
Constructor Detail |
---|
public GraphitiNewWizard(String name, String diagExt, String domainExt, String thediagramTypeName)
name
- the name of the wizarddiagExt
- the diagram file extensiondomainExt
- the domain model file extensionthediagramTypeName
- the diagram type name of the graphiti diagrampublic GraphitiNewWizard(String name, String diagExt, String domainExt, String thediagramTypeName, String theeditorId)
name
- the name of the wizarddiagExt
- the diagram file extensiondomainExt
- the domain model file extensionthediagramTypeName
- the diagram type of the graphiti diagramtheeditorId
- identifier of the diagram editor, or null
if no editor
shall be opened after model creationpublic GraphitiNewWizard(String name, String diagExt, String domainExt, String thediagramTypeName, String theeditorId, int thegridSize, boolean thesnapToGrid)
name
- the name of the wizarddiagExt
- the diagram file extensiondomainExt
- the domain model file extensionthediagramTypeName
- the diagram type name of the graphiti diagramtheeditorId
- identifier of the diagram editor, or null
if no editor
shall be opened after model creationthegridSize
- the grid size (0 means no grid)thesnapToGrid
- the setting for snapping to gridMethod Detail |
---|
public final void init(IWorkbench theworkbench, IStructuredSelection theselection)
init
in interface IWorkbenchWizard
public final void addPages()
addPages
in interface IWizard
addPages
in class Wizard
public final boolean performFinish()
performFinish
in interface IWizard
performFinish
in class Wizard
public static Map<?,?> createSaveOptions()
public static void setCharset(IFile file)
file
- a fileprotected void configureDiagram(org.eclipse.graphiti.mm.pictograms.Diagram diagram)
diagram
- the top-level element of the pictogram modelprotected abstract EObject createModel(String name)
name
- name of the model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |