|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.systems.application.visual.editor.utils.SystemGraphicalEditorUtils
public class SystemGraphicalEditorUtils
Utilities used by SystemGraphicalEditor.
Field Summary | |
---|---|
static String |
copyright
|
Method Summary | |
---|---|
static boolean |
checkForLargeModel(Shell shell,
List<EditPart> operationSet)
|
static boolean |
checkPreReq()
Detect whether the pre-req is met. |
AppModelEditorInput |
createAppModelInput(ApplicationModel appModel)
Create AppModelEditorInput from given ApplicationModel instance. |
AppModelEditorInput |
createAppModelInput(ApplicationModel appModel,
String title,
String tooltip)
Create AppModelEditorInput from given ApplicationModel instance, title and tooltip . |
void |
createDiagram(ApplicationModel appModel,
Resource diagramResource)
Add diagram to existing resource. |
static MainEntryPoint |
findMainEntryPoint(SourceContainer container)
Helper method for finding the main entry point of a source container |
static SystemGraphicalEditor |
getEditor(EditPart editPart)
Get editor from given editPart. |
static IExtension[] |
getExtensions(String pluginID,
String extensionPointID)
Returns the list of extensions that extend the specified extension point of this plugin. |
Color |
getInComingHighLightColor()
Get default incoming highlight color. |
static SystemGraphicalEditorUtils |
getInstance()
Get instance. |
Color |
getOutgoingHighLightColor()
Get default outgoing highlight color. |
static EObject |
getSemantic(EObject object)
Get semantic model object from view. |
static List |
getSourceArtifacts(List relationShips,
Artifact artifact)
Get artifacts that given artifact is the source of the relationship between them. |
static List |
getSourceModelConnections(List relationShips,
Artifact artifact)
Get connections starting from given artifact. |
static List |
getTargetArtifacts(List relationShips,
Artifact artifact)
Get artifacts that given artifact is the target artifact of the relationship between them. |
static List |
getTargetModelConnections(List relationShips,
Artifact artifact)
Get connection targeting to given artifact. |
String |
getTemporaryDiagramFilePath()
Return the temporary diagram file path in plugin metadata area. |
String |
getTemporaryDiagramModelFilePath()
Return the temporary diagram model file path in plugin metadata area. |
static void |
installSeparator(Composite parent,
int verticalSpacing)
Place separator on a composite |
static void |
installSeparator(Composite parent,
int verticalSpacing,
int columns)
Place separator on a composite |
void |
setInComingHighLightColor(Color inColor)
Set default incoming highlight color. |
void |
setOutgoingHighLightColor(Color outColor)
Set default outgoing highlight color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Method Detail |
---|
public static SystemGraphicalEditorUtils getInstance()
public Color getInComingHighLightColor()
public void setInComingHighLightColor(Color inColor)
public Color getOutgoingHighLightColor()
public void setOutgoingHighLightColor(Color outColor)
public String getTemporaryDiagramFilePath()
public String getTemporaryDiagramModelFilePath()
public static IExtension[] getExtensions(String pluginID, String extensionPointID)
public static SystemGraphicalEditor getEditor(EditPart editPart)
editPart
-
public static List getSourceModelConnections(List relationShips, Artifact artifact)
relationShips
- artifact
-
public static List getTargetModelConnections(List relationShips, Artifact artifact)
relationShips
- artifact
-
public static MainEntryPoint findMainEntryPoint(SourceContainer container)
public static List getSourceArtifacts(List relationShips, Artifact artifact)
public static List getTargetArtifacts(List relationShips, Artifact artifact)
public static void installSeparator(Composite parent, int verticalSpacing)
parent
- verticalSpacing
- public static void installSeparator(Composite parent, int verticalSpacing, int columns)
parent
- verticalSpacing
- public static EObject getSemantic(EObject object)
public AppModelEditorInput createAppModelInput(ApplicationModel appModel)
appModel
- public AppModelEditorInput createAppModelInput(ApplicationModel appModel, String title, String tooltip)
appModel:
- ApplicationModeltitle:
- title to be displayed in editortooltip:
- title tooltippublic void createDiagram(ApplicationModel appModel, Resource diagramResource)
appModel:
- ApplicationModeldiagramResource:
- resource to contain the diagrampublic static boolean checkPreReq()
public static boolean checkForLargeModel(Shell shell, List<EditPart> operationSet)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |