java.lang.Object
com.vinculum.processeditor.model.ProcessElement
com.vinculum.processeditor.model.ProcessSubPart
com.vinculum.processeditor.model.ProcessFlowElement
- All Implemented Interfaces:
- java.lang.Cloneable, org.eclipse.ui.views.properties.IPropertySource, java.io.Serializable
- Direct Known Subclasses:
- ProcessFlowEnd, ProcessFlowStart, ProcessJSP, ProcessTransition
- public class ProcessFlowElement
- extends ProcessSubPart
| Methods inherited from class com.vinculum.processeditor.model.ProcessSubPart |
connectInput, connectOutput, disconnectInput, disconnectOutput, findType, getConnections, getDescriptorVector, getIcon, getInput, getLocation, getSourceConnections, getTargetConnections, parseMethodPrototypes, setLocation, setOutput, setSize |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
count
private static int count
id
private java.lang.String id
ID_CLASS
public static java.lang.String ID_CLASS
ID_METHOD
public static java.lang.String ID_METHOD
ID_IN_ARGS
public static java.lang.String ID_IN_ARGS
ID_OUT_ARG
public static java.lang.String ID_OUT_ARG
ID_EL_NAME
public static java.lang.String ID_EL_NAME
ID_MAP_REF
public static java.lang.String ID_MAP_REF
ID_SYNCHRONISE
public static java.lang.String ID_SYNCHRONISE
CLASS_NAME_CONTEXT
private static final java.lang.String CLASS_NAME_CONTEXT
METHOD_NAME_CONTEXT
private static final java.lang.String METHOD_NAME_CONTEXT
ARGS_CONTEXT
private static final java.lang.String ARGS_CONTEXT
EL_NAME_CONTEXT
private static final java.lang.String EL_NAME_CONTEXT
MAP_REF_CONTEXT
private static final java.lang.String MAP_REF_CONTEXT
SYNC_CONTEXT
private static final java.lang.String SYNC_CONTEXT
choices
private static final java.lang.String[] choices
descriptors
protected transient java.util.Vector descriptors
className
private java.lang.String className
methodID
private java.lang.Integer methodID
inArguments
private InArguments inArguments
outArgument
private OutArgument outArgument
mapRef
private java.lang.String mapRef
elementName
private java.lang.String elementName
inElement
private ProcessJoinElement inElement
outElement
private ProcessSplitElement outElement
synchronisation
private java.lang.Integer synchronisation
selectedClass
private transient org.eclipse.jdt.core.IType selectedClass
selectedMethod
private transient org.eclipse.jdt.core.IMethod selectedMethod
methods
private transient org.eclipse.jdt.core.IMethod[] methods
protoTypes
private transient java.lang.String[] protoTypes
methodName
private transient java.lang.String methodName
ProcessFlowElement
public ProcessFlowElement()
getNewID
protected java.lang.String getNewID()
getID
public java.lang.String getID()
- Specified by:
getID in class ProcessSubPart
getTargetID
public java.lang.String getTargetID()
- Specified by:
getTargetID in class ProcessSubPart
getSourceID
public java.lang.String getSourceID()
- Specified by:
getSourceID in class ProcessSubPart
setID
public void setID(java.lang.String s)
refreshDescriptors
protected void refreshDescriptors()
getDescriptorsVector
public java.util.Vector getDescriptorsVector()
getIconImage
public org.eclipse.swt.graphics.Image getIconImage()
- Specified by:
getIconImage in class ProcessSubPart
getSize
public Dimension getSize()
- Overrides:
getSize in class ProcessSubPart
update
public void update()
- Overrides:
update in class ProcessElement
getSplitElement
public ProcessDecisionElement getSplitElement()
getJoinElement
public ProcessDecisionElement getJoinElement()
getResult
public boolean getResult()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object propName)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource
- Returns the value of the property with the given id if it has one.
Returns
null if the property's value is null
value or if this source does not have the specified property.
- Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource- Overrides:
getPropertyValue in class ProcessSubPart
isPropertySet
public boolean isPropertySet(java.lang.Object property)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource
- Returns whether the value of the property with the given id has changed from
its default value. Returns
false if this source does not have
the specified property.
If the notion of default value is not meaningful for the specified property
than true is returned.
- Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource- Overrides:
isPropertySet in class ProcessSubPart
resetPropertyValue
public void resetPropertyValue(java.lang.Object property)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource
- Resets the property with the given id to its default value if possible.
Does nothing if the notion of a default value is not meaningful for
the specified property, or if the property's value cannot be changed,
or if this source does not have the specified property.
Callers will check if this IPropertySource
implements IPropertySource2 and this method will
only be called if IPropertySource2#isPropertyResettable(Object)
returns true for the property with the given id.
- Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource- Overrides:
resetPropertyValue in class ProcessSubPart
setPropertyValue
public void setPropertyValue(java.lang.Object id,
java.lang.Object value)
- Description copied from interface:
org.eclipse.ui.views.properties.IPropertySource
- Sets the property with the given id if possible. Does nothing if the
property's value cannot be changed or if this source does not have the
specified property.
In general, a property source should not directly reference the value
parameter unless it is an atomic object that can be shared, such as a
string.
An important reason for this is that several property sources with
compatible descriptors could be appearing in the property sheet at
the same time. An editor produces a single edited value which is passed
as the value parameter of this message to all the property sources.
Thus to avoid a situation where all of the property sources reference
the same value they should use the value parameter to create a
new instance of the real value for the given property.
There is another reason why a level of indirection is useful. The real
value of property may be a type that cannot be edited with a standard cell
editor. However instead of returning the real value in getPropertyValue,
the value could be converted to a String which could be edited
with a standard cell editor. The edited value will be passed to this method
which can then turn it back into the real property value.
Another variation on returning a value other than the real property value in
getPropertyValue is to return a value which is an
IPropertySource (or for which the property sheet can obtain an
IPropertySource). In this case the value to edit is obtained from the
child property source using getEditableValue. It is this editable value
that will be passed back via this method when it has been editted
- Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource- Overrides:
setPropertyValue in class ProcessSubPart
getClassName
private java.lang.String getClassName()
setClassName
private void setClassName(java.lang.String value)
getMethodID
private java.lang.Integer getMethodID()
setMethodID
private void setMethodID(int value)
setInArguments
private void setInArguments(InArguments value)
setOutArgument
private void setOutArgument(OutArgument value)
getOutArgument
private OutArgument getOutArgument()
getInArguments
private InArguments getInArguments()
getMapRef
private java.lang.String getMapRef()
setMapRef
private void setMapRef(java.lang.String newValue)
getElementName
private java.lang.String getElementName()
setElementName
private void setElementName(java.lang.String newValue)
getSynchronisation
private java.lang.Integer getSynchronisation()
setSynchronisation
private void setSynchronisation(java.lang.Integer newValue)
getPropertyDescriptors
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
- Description copied from class:
ProcessSubPart
- Returns useful property descriptors for the use
in property sheets. this supports location and
size.
- Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource- Overrides:
getPropertyDescriptors in class ProcessSubPart
readObject
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
getSelectedMethod
public org.eclipse.jdt.core.IMethod getSelectedMethod()