com.omondo.uml.std.external.profile
Class AbstractFragment

java.lang.Object
  extended bycom.omondo.uml.std.external.profile.AbstractFragment
All Implemented Interfaces:
ProfileFragment

public abstract class AbstractFragment
extends java.lang.Object
implements ProfileFragment


Field Summary
protected  java.lang.Object model
           
protected  org.eclipse.core.resources.IProject project
           
 
Constructor Summary
AbstractFragment()
           
 
Method Summary
protected  void addContributionItem(org.eclipse.jface.action.IAction action)
           
protected  void addContributionItem(org.eclipse.jface.action.IContributionItem item)
           
protected  void addNewContributionItem(org.eclipse.jface.action.IAction action)
           
protected  void addNewContributionItem(org.eclipse.jface.action.IContributionItem item)
           
 org.eclipse.jface.action.IContributionItem[] getActions()
          Internal use
 int getDiagramType()
          Internal use
 org.eclipse.uml2.Element getElement()
          Returns the associated UML2 element
java class -> org.eclipse.uml2.Class
java interface -> org.eclipse.uml2.Interface
java method -> org.eclipse.uml2.Operation
java attribute -> org.eclipse.uml2.Property
association -> org.eclipse.uml2.Association
 int getElementType()
          Internal use
 java.lang.Object getModel()
          Internal use
 org.eclipse.jface.action.IContributionItem[] getNewActions()
          Internal use
 OmondoProfile getProfile()
          Return the Omondo Profile object which contains this fragment.
 org.eclipse.uml2.Stereotype getStereotype()
          Returns the UML2 stereotype object.
 java.lang.String getStereotypeFullName()
          Get the stereotype qualified name associated to this fragment.
 java.lang.String getStereotypeShortName()
          Get the stereotype name associated to this fragment.
 java.lang.String getStereotypeValue(java.lang.String propertyName)
           
 com.omondo.uml.ui.editors.editmodel.Properties getTaggedValues()
           
 void init(org.eclipse.core.resources.IProject project)
          Internal use
protected abstract  void registerDefaultContributionItems()
          The Action/contribution items must be registered in this method by the mean of the addContributionItem methods.
protected abstract  void registerNewContributionItems()
          The Action/contribution items must be registered in this method by the mean of the addNewContributionItem methods.
 void setDiagramType(int diagramType)
          Internal use
 void setElementType(int elementType)
          Internal use
 void setModel(java.lang.Object model)
          Internal use
 void setProfile(OmondoProfile profile)
          Internal use
 void setStereotype(java.lang.String stereotype)
          Internal use
 boolean setTaggedValues(com.omondo.uml.ui.editors.editmodel.Properties taggedValues)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.omondo.uml.std.external.profile.ProfileFragment
getExtensionTabItems
 

Field Detail

model

protected java.lang.Object model

project

protected org.eclipse.core.resources.IProject project
Constructor Detail

AbstractFragment

public AbstractFragment()
Method Detail

setProfile

public void setProfile(OmondoProfile profile)
Description copied from interface: ProfileFragment
Internal use

Specified by:
setProfile in interface ProfileFragment

getProfile

public OmondoProfile getProfile()
Description copied from interface: ProfileFragment
Return the Omondo Profile object which contains this fragment.

Specified by:
getProfile in interface ProfileFragment
Returns:
the container profile (not null)

setModel

public void setModel(java.lang.Object model)
Description copied from interface: ProfileFragment
Internal use

Specified by:
setModel in interface ProfileFragment

getModel

public java.lang.Object getModel()
Description copied from interface: ProfileFragment
Internal use

Specified by:
getModel in interface ProfileFragment

getElement

public org.eclipse.uml2.Element getElement()
Description copied from interface: ProfileFragment
Returns the associated UML2 element
java class -> org.eclipse.uml2.Class
java interface -> org.eclipse.uml2.Interface
java method -> org.eclipse.uml2.Operation
java attribute -> org.eclipse.uml2.Property
association -> org.eclipse.uml2.Association

Specified by:
getElement in interface ProfileFragment
Returns:
the associated UML2 element (not null)

setDiagramType

public void setDiagramType(int diagramType)
Description copied from interface: ProfileFragment
Internal use

Specified by:
setDiagramType in interface ProfileFragment

setElementType

public void setElementType(int elementType)
Description copied from interface: ProfileFragment
Internal use

Specified by:
setElementType in interface ProfileFragment

getDiagramType

public int getDiagramType()
Description copied from interface: ProfileFragment
Internal use

Specified by:
getDiagramType in interface ProfileFragment

getElementType

public int getElementType()
Description copied from interface: ProfileFragment
Internal use

Specified by:
getElementType in interface ProfileFragment

getActions

public final org.eclipse.jface.action.IContributionItem[] getActions()
Description copied from interface: ProfileFragment
Internal use

Specified by:
getActions in interface ProfileFragment

getNewActions

public final org.eclipse.jface.action.IContributionItem[] getNewActions()
Description copied from interface: ProfileFragment
Internal use

Specified by:
getNewActions in interface ProfileFragment

setStereotype

public void setStereotype(java.lang.String stereotype)
Description copied from interface: ProfileFragment
Internal use

Specified by:
setStereotype in interface ProfileFragment

getStereotype

public org.eclipse.uml2.Stereotype getStereotype()
Description copied from interface: ProfileFragment
Returns the UML2 stereotype object.

Specified by:
getStereotype in interface ProfileFragment
Returns:
the UML2 stereotype object (not null)

getStereotypeFullName

public java.lang.String getStereotypeFullName()
Description copied from interface: ProfileFragment
Get the stereotype qualified name associated to this fragment.
The result looks like PROFILE_NAME::STEREOTYPE_NAME

Specified by:
getStereotypeFullName in interface ProfileFragment
Returns:
the stereotype associated to this fragment (not null, not empty)

getStereotypeShortName

public java.lang.String getStereotypeShortName()
Description copied from interface: ProfileFragment
Get the stereotype name associated to this fragment.
The result looks like STEREOTYPE_NAME

Specified by:
getStereotypeShortName in interface ProfileFragment
Returns:
the stereotype associated to this fragment (not null, not empty)

getStereotypeValue

public java.lang.String getStereotypeValue(java.lang.String propertyName)

init

public void init(org.eclipse.core.resources.IProject project)
Description copied from interface: ProfileFragment
Internal use

Specified by:
init in interface ProfileFragment

getTaggedValues

public com.omondo.uml.ui.editors.editmodel.Properties getTaggedValues()

setTaggedValues

public boolean setTaggedValues(com.omondo.uml.ui.editors.editmodel.Properties taggedValues)

addContributionItem

protected final void addContributionItem(org.eclipse.jface.action.IAction action)

addContributionItem

protected final void addContributionItem(org.eclipse.jface.action.IContributionItem item)

addNewContributionItem

protected final void addNewContributionItem(org.eclipse.jface.action.IAction action)

addNewContributionItem

protected final void addNewContributionItem(org.eclipse.jface.action.IContributionItem item)

registerDefaultContributionItems

protected abstract void registerDefaultContributionItems()
The Action/contribution items must be registered in this method by the mean of the addContributionItem methods. These items will be added to a the element popup menu in a group of the profile name.


registerNewContributionItems

protected abstract void registerNewContributionItems()
The Action/contribution items must be registered in this method by the mean of the addNewContributionItem methods. These items will be added to a the element popup menu in a group called 'New'.