org.eclipse.jubula.rc.rcp.gef.identifier
Class StaticEditPartIdentifier

java.lang.Object
  extended by org.eclipse.jubula.rc.rcp.gef.identifier.StaticEditPartIdentifier
All Implemented Interfaces:
IEditPartIdentifier

public class StaticEditPartIdentifier
extends java.lang.Object
implements IEditPartIdentifier

Provides a static String as an identifier. This class does not take the state of the org.eclipse.gef.EditPart into account, so it is useful for stateless org.eclipse.gef.EditParts (ex. containers).

Created:
May 19, 2009

Constructor Summary
StaticEditPartIdentifier(java.lang.String id)
          Constructor
 
Method Summary
 java.util.Map getConnectionAnchors()
          
 java.lang.String getIdentifier()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticEditPartIdentifier

public StaticEditPartIdentifier(java.lang.String id)
Constructor

Parameters:
id - The static identifier String that will always be returned.
Method Detail

getIdentifier

public java.lang.String getIdentifier()

Specified by:
getIdentifier in interface IEditPartIdentifier
Returns:
a String uniquely identifying the EditPart.

getConnectionAnchors

public java.util.Map getConnectionAnchors()

Specified by:
getConnectionAnchors in interface IEditPartIdentifier
Returns:
a map that correlates identifiers (Strings) with ConnectionAnchors.