|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.TextCompartmentEditPart
yhe conroller for hte text compartment
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractEditPart |
AbstractEditPart.EditPolicyIterator |
| Field Summary | |
protected IParser |
parser
the text parser |
| Fields inherited from class org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart |
accessibleEP, elementGuid |
| Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
figure, sourceConnections, targetConnections |
| Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart |
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG |
| Fields inherited from interface org.eclipse.gef.EditPart |
SELECTED, SELECTED_NONE, SELECTED_PRIMARY |
| Fields inherited from interface org.eclipse.gef.RequestConstants |
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER |
| Constructor Summary | |
TextCompartmentEditPart(EObject model)
coinstructor |
|
| Method Summary | |
protected void |
addNotationalListeners()
This method adds all listeners to the notational world (views, figures, editpart...etc) Override this method to add more notational listeners down the hierarchy |
protected void |
addSemanticListeners()
This method adds all listeners to the semantic element behind this EditPart Override this method to add more semantic listeners down the hierarchy This method is called only if the semantic element is resolvable |
protected ParserOptions |
buildParserOptions()
Builds the parser options. |
protected void |
createDefaultEditPolicies()
Should be overridden to install editpolicies programmatically. |
protected IFigure |
createFigure()
|
protected WrapLabel |
createWrapLabel()
|
protected AccessibleEditPart |
getAccessibleEditPart()
|
IGraphicalEditPart |
getChildBySemanticHint(java.lang.String semanticHint)
There is no children to text compartments |
IContentAssistProcessor |
getCompletionProcessor()
|
java.lang.String |
getEditText()
Shortcut method to obtain edit text from parser. |
ICellEditorValidator |
getEditTextValidator()
Returns a validator for the user's edit text |
IFigure |
getFigure()
Use getLabel() instead if you which to get the WrapLabel for the the text compartent |
WrapLabel |
getLabel()
This should be used instead of getFigure() to get the figure |
protected Image |
getLabelIcon(int index)
gets the label Icon for this edit part |
protected java.lang.String |
getLabelText()
gets the label text |
protected IFigure |
getLabelToolTip()
Method getLabelToolTip. |
protected DirectEditManager |
getManager()
|
protected java.util.List |
getModelChildren()
Return this editpart's view (model) children. |
int |
getNumIcons()
getter for the Num Icons |
IParser |
getParser()
Method getParser. |
ParserOptions |
getParserOptions()
Gets the parser options. |
View |
getPrimaryChildView()
gets the primary child view for this edit part, this is usually used by direct edit requests, to see where the edit will happen |
protected java.lang.String |
getToolTipText()
This method can be overridden in the subclass to return text for the tooltip. |
protected void |
handleNotificationEvent(Notification event)
Handles the property changed event. |
protected boolean |
isAffectingParserOptions(Notification evt)
Determines if the given Notification affects the paser options |
protected boolean |
isAffectingParserOptions(java.beans.PropertyChangeEvent evt)
Determines if the given event affects the paser options |
protected boolean |
isEditable()
check if this edit part is editable or not |
protected void |
performDirectEdit()
performas direct edit |
protected void |
performDirectEdit(Point eventLocation)
Performs direct edit and will initiate another mouse click event so that the cursor will appear under the mouse |
protected void |
performDirectEditRequest(Request request)
Performs direct edit request based on request type |
protected void |
refreshFont()
Refresh the editpart's figure font. |
protected void |
refreshLabel()
Will update the tool tip text for the figure and also the icons for the label. |
protected void |
refreshParserOptions()
Builds the parser options. |
protected void |
refreshStrikeThrough()
Refreshes the font underline property |
protected void |
refreshUnderline()
Refreshes the font underline property |
protected void |
refreshVisuals()
Refresh the editpart's figure visual properties. |
protected void |
removeNotationalListeners()
This method removes all listeners to the notational world (views, figures, editpart...etc) Override this method to remove notational listeners down the hierarchy |
protected void |
removeSemanticListeners()
This method removes all listeners to the semantic element behind this EditPart Override this method to remove semantic listeners down the hierarchy |
protected void |
setFontColor(Color color)
sets the font color |
void |
setLabelText(java.lang.String text)
Called when edit text was modified and edit part should update itself to reflect the changes. |
protected void |
setManager(DirectEditManager manager)
|
void |
setNumIcons(int numIcons)
setter for the num icons |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart |
getDragTracker, isSelectable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.GraphicalEditPart |
addNodeListener, getContentPane, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint |
| Methods inherited from interface org.eclipse.gef.EditPart |
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Field Detail |
protected IParser parser
| Constructor Detail |
public TextCompartmentEditPart(EObject model)
| Method Detail |
protected void createDefaultEditPolicies()
GraphicalEditPart
createDefaultEditPolicies in class CompartmentEditPartprotected IFigure createFigure()
createFigure in class GraphicalEditPartprotected WrapLabel createWrapLabel()
public IFigure getFigure()
getFigure in interface GraphicalEditPartGraphicalEditPart.getFigure()public WrapLabel getLabel()
protected Image getLabelIcon(int index)
index - the index to use
protected java.lang.String getLabelText()
public java.lang.String getEditText()
ITextAwareEditPart
getEditText in interface ITextAwareEditPartpublic void setLabelText(java.lang.String text)
ITextAwareEditPart
setLabelText in interface ITextAwareEditPartpublic IContentAssistProcessor getCompletionProcessor()
getCompletionProcessor in interface ITextAwareEditPartIContentAssistProcessor that is a content assist processor proposes
completions and computes context information for a particular content typepublic ICellEditorValidator getEditTextValidator()
ITextAwareEditPart
getEditTextValidator in interface ITextAwareEditPartICellEditorValidator for validating a cell editor's input.public final ParserOptions getParserOptions()
ITextAwareEditPart
getParserOptions in interface ITextAwareEditPartprotected ParserOptions buildParserOptions()
protected final void refreshParserOptions()
protected boolean isAffectingParserOptions(java.beans.PropertyChangeEvent evt)
evt - The event in question
protected boolean isAffectingParserOptions(Notification evt)
evt - The notification in question
protected IFigure getLabelToolTip()
protected java.lang.String getToolTipText()
protected boolean isEditable()
protected void performDirectEdit()
protected void performDirectEdit(Point eventLocation)
eventLocation - protected void performDirectEditRequest(Request request)
performDirectEditRequest in class GraphicalEditPartrequest - the direct edit requestorg.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart#performDirectEditRequest(org.eclipse.gef.requests.DirectEditRequest)protected void handleNotificationEvent(Notification event)
GraphicalEditPart
handleNotificationEvent in class GraphicalEditPartevent - the Notification object that is the property changed eventprotected void refreshVisuals()
GraphicalEditPart
refreshVisuals in class GraphicalEditPartprotected void refreshFont()
GraphicalEditPart
refreshFont in class GraphicalEditPartprotected void setFontColor(Color color)
GraphicalEditPart
setFontColor in class GraphicalEditPartcolor - the new value of the font colorprotected void addNotationalListeners()
GraphicalEditPart
addNotationalListeners in class GraphicalEditPartprotected void addSemanticListeners()
GraphicalEditPart
addSemanticListeners in class GraphicalEditPartprotected void removeNotationalListeners()
GraphicalEditPart
removeNotationalListeners in class GraphicalEditPartprotected void removeSemanticListeners()
GraphicalEditPart
removeSemanticListeners in class GraphicalEditPartpublic int getNumIcons()
public void setNumIcons(int numIcons)
numIcons - protected java.util.List getModelChildren()
GraphicalEditPart
getModelChildren in class GraphicalEditPartpublic IParser getParser()
ITextAwareEditPart
getParser in interface ITextAwareEditPartIParser that is used to retrieve the proper formating
of the edit text and to create the actual editing command which will modify the model.protected void refreshLabel()
TextCompartmentEditPart.refreshLabel()protected void refreshUnderline()
protected void refreshStrikeThrough()
protected AccessibleEditPart getAccessibleEditPart()
getAccessibleEditPart in class GraphicalEditPartAbstractEditPart.getAccessibleEditPart()public IGraphicalEditPart getChildBySemanticHint(java.lang.String semanticHint)
getChildBySemanticHint in interface IGraphicalEditPartgetChildBySemanticHint in class GraphicalEditPartsemanticHint -
protected DirectEditManager getManager()
protected void setManager(DirectEditManager manager)
manager - The manager to set.public View getPrimaryChildView()
View
|
Runtime | ||||||||||
| 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., Borland Software Corp., and others 2005,2006. All rights reserved.