|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.traceability.ModelQueryCommand
ModelQueryCommand is the command to run a model query on certain UML elements.
This command represents the same core functionality of the "Model Query" action on the context menu of the "Model Explorer" view, except the results will not be shown in the "Model Query Results" view.
You can create an instance of this class.
TraceRelationship
Field Summary | |
static int |
IMPLEMENTATION
IMPLEMENTATION indicates to the query to search for implementations of the input elements. |
static int |
JAVA_IMPLEMENTATION
JAVA_IMPLEMENTATION indicates to the query to search for implementations of the input elements and extend the search to include the list of java projects. |
static int |
SPECIFICATION
SPECIFICATION indicates to the query to search for specifications of the input elements. |
Constructor Summary | |
ModelQueryCommand()
Constructor |
Method Summary | |
HashSet |
getResults()
Returns the results of running the Model Query command. |
IStatus |
run(List elements,
int searchDirection,
Collection javaProjects,
IProgressMonitor progressMonitor)
Runs this command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SPECIFICATION
public static final int IMPLEMENTATION
public static final int JAVA_IMPLEMENTATION
Constructor Detail |
public ModelQueryCommand()
Method Detail |
public IStatus run(List elements, int searchDirection, Collection javaProjects, IProgressMonitor progressMonitor)
Runs a model query on the input elements with specified search directions. The scope of the search is all open UML models and optionally the list of Java projects.
elements
- input elements to query on.searchDirection
- controls the direction of the query. It could be any combination of the SPECIFICATION, IMPLEMENTATION and/or JAVA_IMPLEMENTATION constants.javaProjects
- the list of the java projects to consider in the query.progressMonitor
- progress monitor.
public HashSet getResults()
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.