com.omondo.uml.std.external.profile
Interface OmondoProfile

All Known Implementing Classes:
AbstractProfile

public interface OmondoProfile

Implementors should use AbstractProfile as base class.

See Also:
AbstractProfile

Method Summary
 void addFragment(ProfileFragment fragment)
          Internal use
 boolean canBeActivated()
          This method may be used to check requierements for this profile and is called when the user selects the checkbox on the Omondo profile page in the project properties.
 org.eclipse.jface.action.IContributionItem[] getActions(int diagramType)
          Internal use
 org.eclipse.uml2.Element getElement()
          Returns the associated UML2 element (Usually a package object).
 ProfileFragment[] getFragments(int diagramType, int elementType)
          Internal use
 ProfileFragment[] getFragments(java.lang.String stereotype, int diagramType, int elementType)
          Internal use
 java.lang.String getId()
           
 org.eclipse.swt.graphics.Image getImage()
           
 java.lang.String getModelPath()
          Returns the path of the resource which contains the associated profile.
 java.lang.String getName()
           
 org.eclipse.jface.action.IContributionItem[] getNewActions(int diagramType)
          Internal use
 org.eclipse.uml2.Profile getProfile()
          Returns the associated UML2 profile.
 org.eclipse.core.resources.IProject getProject()
           
 com.omondo.uml.ui.editors.editmodel.Properties getProperties()
          Allow to acces and modify the profile's properties.
 ProfilePropertiesEditor getPropertyEditor()
          Return the editor used in the project properties to edit the properties of the profile.
 void init(org.eclipse.core.resources.IProject project)
          Internal use
 void setModel(java.lang.Object model)
          Internal use
 

Method Detail

getId

public java.lang.String getId()

getName

public java.lang.String getName()

getImage

public org.eclipse.swt.graphics.Image getImage()

getProject

public org.eclipse.core.resources.IProject getProject()

getModelPath

public java.lang.String getModelPath()
Returns the path of the resource which contains the associated profile.

Returns:
the path of the model file

getProfile

public org.eclipse.uml2.Profile getProfile()
Returns the associated UML2 profile.

Returns:
the associated UML2 profile (not null)

getProperties

public com.omondo.uml.ui.editors.editmodel.Properties getProperties()
Allow to acces and modify the profile's properties. Note that 2 keys are reserved (and cannot be set): Properties.ID & Properties.NAME

Returns:
the container object of the profile properties

getElement

public org.eclipse.uml2.Element getElement()
Returns the associated UML2 element (Usually a package object).

Returns:
the associated UML2 element (not null)
Throws:
java.lang.IllegalStateException - if something wrong occures

getPropertyEditor

public ProfilePropertiesEditor getPropertyEditor()
Return the editor used in the project properties to edit the properties of the profile. Default implementation returns null


canBeActivated

public boolean canBeActivated()
This method may be used to check requierements for this profile and is called when the user selects the checkbox on the Omondo profile page in the project properties.

Returns:

getFragments

public ProfileFragment[] getFragments(java.lang.String stereotype,
                                      int diagramType,
                                      int elementType)
Internal use


getFragments

public ProfileFragment[] getFragments(int diagramType,
                                      int elementType)
Internal use


getActions

public org.eclipse.jface.action.IContributionItem[] getActions(int diagramType)
Internal use


getNewActions

public org.eclipse.jface.action.IContributionItem[] getNewActions(int diagramType)
Internal use


init

public void init(org.eclipse.core.resources.IProject project)
Internal use


setModel

public void setModel(java.lang.Object model)
Internal use


addFragment

public void addFragment(ProfileFragment fragment)
Internal use