Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor
Class AppModelEditorInput

java.lang.Object
  extended by com.ibm.etools.systems.application.visual.editor.AppModelEditorInput
All Implemented Interfaces:
IAppModelEditorInput

public class AppModelEditorInput
extends Object
implements IAppModelEditorInput

Implementation of IAppModelEditorInput for the ApplicationModel.


Field Summary
static String copyright
           
 
Constructor Summary
AppModelEditorInput(ApplicationModel model)
          Constructor
AppModelEditorInput(ApplicationModel model, ResourceSet resourceSet)
          Constructor.
AppModelEditorInput(ApplicationModel model, ResourceSet resourceSet, String editorName, String editorTooltip)
           
 
Method Summary
 ResourceSet createResourceSet(ApplicationModel model, Diagram diagram, IFile diagramFile)
          Create a resource set used by both model and diagram.
 void dispose()
          Dispose this input.
 boolean exists()
           
 Object getAdapter(Class adapter)
           
 ApplicationModel getApplicationModel()
          Get the ApplicationModel.
 Diagram getDiagram()
          Get diagram object.
 String getDiagramFilePath()
          Get temporary diagram file name from resourceset.
 TransactionalEditingDomain getEditingDomain()
          Get editing domain used for this AppModelEditorInput.
 ImageDescriptor getImageDescriptor()
           
 String getName()
           
 IPersistableElement getPersistable()
           
 ResourceSet getResourceSet()
          Get the resourceSet.
 String getToolTipText()
           
 void setResourceSet(ResourceSet resourceSet)
          Set the ApplicationModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

AppModelEditorInput

public AppModelEditorInput(ApplicationModel model)
Constructor


AppModelEditorInput

public AppModelEditorInput(ApplicationModel model,
                           ResourceSet resourceSet)
Constructor.

Parameters:
model: - ApplicationModel
resourceSet: - resource set to hold the ApplicationModel

AppModelEditorInput

public AppModelEditorInput(ApplicationModel model,
                           ResourceSet resourceSet,
                           String editorName,
                           String editorTooltip)
Method Detail

createResourceSet

public ResourceSet createResourceSet(ApplicationModel model,
                                     Diagram diagram,
                                     IFile diagramFile)
Create a resource set used by both model and diagram.

Parameters:
model -
diagram -
diagramFile -
Returns:

getApplicationModel

public ApplicationModel getApplicationModel()
Get the ApplicationModel.

Specified by:
getApplicationModel in interface IAppModelEditorInput

getResourceSet

public ResourceSet getResourceSet()
Get the resourceSet.

Specified by:
getResourceSet in interface IAppModelEditorInput

setResourceSet

public void setResourceSet(ResourceSet resourceSet)
Set the ApplicationModel.

Specified by:
setResourceSet in interface IAppModelEditorInput

exists

public boolean exists()
See Also:
IEditorInput#exists()

getImageDescriptor

public ImageDescriptor getImageDescriptor()
See Also:
IEditorInput#getImageDescriptor()

getName

public String getName()
See Also:
IEditorInput#getName()

getToolTipText

public String getToolTipText()
See Also:
IEditorInput#getToolTipText()

getPersistable

public IPersistableElement getPersistable()
See Also:
IEditorInput#getPersistable()

getAdapter

public Object getAdapter(Class adapter)
See Also:
IAdaptable#getAdapter(Class)

getDiagram

public Diagram getDiagram()
Get diagram object.


getEditingDomain

public TransactionalEditingDomain getEditingDomain()
Get editing domain used for this AppModelEditorInput.


getDiagramFilePath

public String getDiagramFilePath()
Get temporary diagram file name from resourceset.


dispose

public void dispose()
Dispose this input. Clean up the resources it holds up.


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.