Class CustomPalladioComponentModelEditPartProvider

java.lang.Object
org.eclipse.gmf.runtime.common.core.service.AbstractProvider
org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider
de.uka.ipd.sdq.pcm.gmf.allocation.custom.providers.CustomPalladioComponentModelEditPartProvider
All Implemented Interfaces:
org.eclipse.gmf.runtime.common.core.service.IProvider, org.eclipse.gmf.runtime.diagram.ui.internal.properties.Properties, org.eclipse.gmf.runtime.diagram.ui.internal.services.editpart.IEditPartProvider

public class CustomPalladioComponentModelEditPartProvider extends org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider
A custom Palladio component model EditPart provider.
  • Field Summary

    Fields inherited from interface org.eclipse.gmf.runtime.diagram.ui.internal.properties.Properties

    DIAGRAMLINK_ANNOTATION, ID_ARROW_SOURCE, ID_ARROW_TARGET, ID_AVOIDOBSTRUCTIONS, ID_BENDPOINT, ID_CLOSESTDISTANCE, ID_COLLAPSED, ID_DESCRIPTION, ID_EXTENTX, ID_EXTENTY, ID_FILLCOLOR, ID_FILLGRADIENT, ID_FILLTRANSPARENCY, ID_FILTERED_OBJECTS, ID_FILTERING, ID_FILTERING_KEYS, ID_FONTBOLD, ID_FONTCOLOR, ID_FONTITALIC, ID_FONTNAME, ID_FONTSIZE, ID_FONTSTRIKETHROUGH, ID_FONTUNDERLINE, ID_ISCANONICAL, ID_ISVISIBLE, ID_JUMPLINKS_REVERSE, ID_JUMPLINKS_STATUS, ID_JUMPLINKS_TYPE, ID_LINE_TYPE, ID_LINE_WIDTH, ID_LINECOLOR, ID_PAGE_HEIGHT, ID_PAGE_WIDTH, ID_PAGEX, ID_PAGEY, ID_PERSISTED_CHILDREN, ID_PERSISTED_EDGES, ID_POSITIONX, ID_POSITIONY, ID_RATIO, ID_ROUNDED_BENDPOINTS_RADIUS, ID_ROUTING, ID_SEMANTICREF, ID_SHOWCOMPARTMENTTITLE, ID_SMOOTHNESS, ID_SORTED_OBJECTS, ID_SORTING, ID_SORTING_KEYS, ID_SOURCECONNECTIONS, ID_TARGETCONNECTIONS, ID_TEXT_ALIGNMENT, ID_TRANSIENT_CHILDREN, ID_TRANSIENT_EDGES
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart
    createEditPart(org.eclipse.gmf.runtime.notation.View view)
    Creates an EditPart.
    org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart
    createGraphicEditPart(org.eclipse.gmf.runtime.notation.View view)
    Creates a graphic EditPart.
    protected org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart
    getCachedPart(org.eclipse.gmf.runtime.notation.View view)
    Gets the cached EditPart.
    final org.eclipse.gef.EditPartFactory
    gets the EditPart factory.
    final boolean
    Returns if caching is allowed.
    boolean
    provides(org.eclipse.gmf.runtime.common.core.service.IOperation operation)
    Returns a boolean value.
    protected void
    setAllowCaching(boolean allowCaching)
    Sets if caching is allowed.
    protected void
    setFactory(org.eclipse.gef.EditPartFactory factory)
    Sets the EditPart factory.

    Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider

    createRootEditPart, getDiagramEditPartClass, getEdgeEditPartClass, getNodeEditPartClass, getReferencedElementEClass

    Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider

    addProviderChangeListener, fireProviderChange, removeProviderChangeListener

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider

    addProviderChangeListener, removeProviderChangeListener
  • Constructor Details

    • CustomPalladioComponentModelEditPartProvider

      public CustomPalladioComponentModelEditPartProvider()
      The constructor.
  • Method Details

    • getFactory

      public final org.eclipse.gef.EditPartFactory getFactory()
      gets the EditPart factory.
      Returns:
      the EditPart factory
    • setFactory

      protected void setFactory(org.eclipse.gef.EditPartFactory factory)
      Sets the EditPart factory.
      Parameters:
      factory - the factory
    • isAllowCaching

      public final boolean isAllowCaching()
      Returns if caching is allowed.
      Returns:
      a boolean value
    • setAllowCaching

      protected void setAllowCaching(boolean allowCaching)
      Sets if caching is allowed.
      Parameters:
      allowCaching - a boolean value.
    • createEditPart

      protected org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart createEditPart(org.eclipse.gmf.runtime.notation.View view)
      Creates an EditPart.
      Parameters:
      view - a View
      Returns:
      the created EditPart
    • getCachedPart

      protected org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart getCachedPart(org.eclipse.gmf.runtime.notation.View view)
      Gets the cached EditPart.
      Parameters:
      view - a View
      Returns:
      the EditPart
    • createGraphicEditPart

      public org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart createGraphicEditPart(org.eclipse.gmf.runtime.notation.View view)
      Creates a graphic EditPart.
      Specified by:
      createGraphicEditPart in interface org.eclipse.gmf.runtime.diagram.ui.internal.services.editpart.IEditPartProvider
      Overrides:
      createGraphicEditPart in class org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider
      Parameters:
      view - a View
      Returns:
      a EditPart
    • provides

      public boolean provides(org.eclipse.gmf.runtime.common.core.service.IOperation operation)
      Returns a boolean value.
      Specified by:
      provides in interface org.eclipse.gmf.runtime.common.core.service.IProvider
      Overrides:
      provides in class org.eclipse.gmf.runtime.diagram.ui.services.editpart.AbstractEditPartProvider
      Parameters:
      operation - an IOperation
      Returns:
      a boolean value