UML Modeling Layer

com.ibm.xtools.uml.ui.diagram
Interface IPaletteContent


public interface IPaletteContent

Interface class for palette content. Palette content should allow palette itmes to check on the diagram type, nature of project, as well as whether the content is from a profile resource.


Method Summary
 Diagram getDiagram()
          Get the diagram type for the content.
 IProjectNature getNature(String nature)
          Gets a particular org.eclipse.core.resources.IProjectNature if it exists.
 boolean isProfileResource()
           
 

Method Detail

getNature

IProjectNature getNature(String nature)
Gets a particular org.eclipse.core.resources.IProjectNature if it exists.

Parameters:
nature - Project Nature to be retrieved from the project.
Returns:
IProjectNature from the project if it exists, else null

getDiagram

Diagram getDiagram()
Get the diagram type for the content.

Returns:
the diagram type

isProfileResource

boolean isProfileResource()
Returns:
Indicator if the editor's content is from a profile resource.

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.