Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.providers
Class DefaultSystemEditPartProvider

java.lang.Object
  extended by AbstractEditPartProvider
      extended by com.ibm.etools.systems.application.visual.editor.providers.DefaultSystemEditPartProvider
Direct Known Subclasses:
BinInfoEditPartProvider, SourceInfoEditPartProvider

public class DefaultSystemEditPartProvider
extends AbstractEditPartProvider

Default EditPart provider for Application Diagram.


Field Summary
static String copyright
           
 
Constructor Summary
DefaultSystemEditPartProvider()
          Constructor.
 
Method Summary
 RootEditPart createRootEditPart(Diagram diagram)
          Creates a diagram root editpart that supports rendering of images.
protected  Class getDiagramEditPartClass(View view)
          Gets a diagram's editpart class.
protected  Class getEdgeEditPartClass(View view)
          Set the editpart class to the editpart mapped to the supplied view's semantic hint.
protected  Class getNodeEditPartClass(View view)
          Gets a Node's editpart class.
 boolean provides(IOperation operation)
          Cycles through the various operations supported by this provider and invokes the appropriate setXXXEditPartClass method.
 
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

DefaultSystemEditPartProvider

public DefaultSystemEditPartProvider()
Constructor.

Method Detail

getDiagramEditPartClass

protected Class getDiagramEditPartClass(View view)
Gets a diagram's editpart class. This method should be overridden by a provider if it wants to provide this service.

Parameters:
view - the view to be controlled by the created editpart

getEdgeEditPartClass

protected Class getEdgeEditPartClass(View view)
Set the editpart class to the editpart mapped to the supplied view's semantic hint.

See Also:
org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider#setConnectorEditPartClass(org.eclipse.gmf.runtime.diagram.ui.internal.view.IConnectorView)

getNodeEditPartClass

protected Class getNodeEditPartClass(View view)
Gets a Node's editpart class. This method should be overridden by a provider if it wants to provide this service.

Parameters:
view - the view to be controlled by the created editpart

provides

public boolean provides(IOperation operation)
Cycles through the various operations supported by this provider and invokes the appropriate setXXXEditPartClass method.

Parameters:
operation - an instance of a CreateGraphicEditPartOperation
Returns:
true if an editpart class was set, otherwise false. (i.e.,
return getEditPartClass() != null; 
See Also:
org.eclipse.gmf.runtime.common.core.service.IProvider#provides(IOperation), org.eclipse.gmf.runtime.diagram.ui.services.editpart.CreateGraphicEditPartOperation#getView()

createRootEditPart

public RootEditPart createRootEditPart(Diagram diagram)
Creates a diagram root editpart that supports rendering of images.


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.