|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DiagramDocumentEditor com.ibm.etools.systems.application.visual.editor.SystemGraphicalEditor
public class SystemGraphicalEditor
Extensible graphical editor that visualizes the model represented by ApplicationModel. The editor supports three types of input: 1. ApplicationModel instance 2. Application diagram XML file ( .appmdl_diagram ) 3. Application model XML file ( .appmdl )
Field Summary | |
---|---|
protected ApplicationModel |
applicationModel
|
static String |
copyright
|
static String |
EDITOR_ID
|
Constructor Summary | |
---|---|
SystemGraphicalEditor()
Constructor. |
|
SystemGraphicalEditor(boolean hasFlyOut)
Constructor. |
Method Summary | |
---|---|
protected boolean |
checkModelFileAvailable(IEditorInput fileInput)
Return true if model file is available, false otherwise. |
protected void |
configureGraphicalViewer()
|
protected void |
deleteTemporaryDiagramFile(SystemGraphicalEditor part)
Delete temporary diagram file. |
void |
dispose()
|
protected void |
doAutoLayout()
Do auto layout. |
void |
doSave(IProgressMonitor progressMonitor)
Override of doSave method to force a save as if the the model is still being loaded from the temporary file location, instead of being loaded from a proper IFile |
void |
doSetInput(IEditorInput input,
boolean releaseEditorContents)
Override of doSetInput in order to catch incompatible model format exception and provide migration. |
Object |
getAdapter(Class type)
|
ApplicationModel |
getApplicationModel()
Return ApplicationModel. |
String |
getContributorId()
|
protected IDocumentProvider |
getDocumentProvider(IEditorInput input)
Hook method for setting the document provider for the given input. |
protected EditPartFactory |
getOutlineViewEditPartFactory()
Get outline view editpart factory. |
protected PreferencesHint |
getPreferencesHint()
Gets the preferences hint that will be used to determine which preference store to use when retrieving diagram preferences for this diagram editor. |
SystemGraphicalEditorSessionManager |
getSessionManager()
Return SystemGraphicalEditorSessionManager instance. |
boolean |
getUseAppModelInput()
Return true if ApplicationModel instance is used as input. |
void |
init(IEditorSite site,
IEditorInput input)
|
protected void |
initializeGraphicalViewer()
|
protected boolean |
isDiagramFileAvailableForSave(IPath filePath)
Check if the given file path is available for saving the diagram. |
protected boolean |
isEditorInputIncludedInContextMenu()
Sets whether the editor input should be included when adding object contributions to this editor's context menu. |
boolean |
isSaveAsAllowed()
Allow SaveAs. |
boolean |
isUsingInMemoryModel()
Helper method to determine if the model is loaded from the temporary diagram file or from a proper IFile. |
protected void |
performSaveAs(IProgressMonitor progressMonitor)
Performs a save as and reports the result state back to the given progress monitor. |
protected void |
setDocumentProvider(IEditorInput input)
Set DocumentProvider. |
protected void |
setUseAppModelInput(boolean isAppModelInput)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
public static final String EDITOR_ID
protected ApplicationModel applicationModel
Constructor Detail |
---|
public SystemGraphicalEditor()
public SystemGraphicalEditor(boolean hasFlyOut)
Method Detail |
---|
protected void configureGraphicalViewer()
configureGraphicalViewer is called before initzlizeGraphicalViewer.
protected boolean isEditorInputIncludedInContextMenu()
false
if the editor input should not be considered.protected boolean checkModelFileAvailable(IEditorInput fileInput)
protected void initializeGraphicalViewer()
protected void doAutoLayout()
protected void setDocumentProvider(IEditorInput input)
protected void setUseAppModelInput(boolean isAppModelInput)
isAppModelInput
- public boolean getUseAppModelInput()
public boolean isSaveAsAllowed()
public void init(IEditorSite site, IEditorInput input) throws PartInitException
PartInitException
public Object getAdapter(Class type)
public ApplicationModel getApplicationModel()
public SystemGraphicalEditorSessionManager getSessionManager()
protected void deleteTemporaryDiagramFile(SystemGraphicalEditor part)
protected void performSaveAs(IProgressMonitor progressMonitor)
progressMonitor
- the progress monitor for communicating result state or null
protected boolean isDiagramFileAvailableForSave(IPath filePath)
protected IDocumentProvider getDocumentProvider(IEditorInput input)
input
- the input of this editor.protected PreferencesHint getPreferencesHint()
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.getPreferencesHint()
public String getContributorId()
protected EditPartFactory getOutlineViewEditPartFactory()
public void doSave(IProgressMonitor progressMonitor)
public boolean isUsingInMemoryModel()
public void dispose()
public void doSetInput(IEditorInput input, boolean releaseEditorContents) throws CoreException
CoreException
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |