|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.util.TreeInlineTextEditor
A class that enables inline-text editing for tree nodes
| Constructor Summary | |
TreeInlineTextEditor(TreeViewer treeViewer,
IActionBars actionBars,
java.util.List disableActionsIds,
IEditStringProvider editStringProvider)
Constructor for TreeInlineTextEditor. |
|
TreeInlineTextEditor(TreeViewer treeViewer,
IEditStringProvider editStringProvider,
boolean isF2disabled)
Constructor for TreeInlineTextEditor. |
|
| Method Summary | |
void |
cancelEdit()
cancels the editing process |
boolean |
canEdit()
answers if we can start editing |
void |
dispose()
Disposes the text widget and reset the editorText field. |
void |
endEdit()
ends the editing process |
java.lang.String |
getCurrentText()
return the current text |
java.lang.String |
getFinalText()
returns the comitted string by the user when editing ended (not-canclled) |
java.lang.String |
getInitialText()
returns the initial value when editing started |
boolean |
isDisposed()
answers whether this inline-editor has been disposed |
protected void |
openErrorDialog(IStatus status)
Opens an error dialog for the specified status object. |
void |
startEdit()
starts the editing process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeInlineTextEditor(TreeViewer treeViewer,
IActionBars actionBars,
java.util.List disableActionsIds,
IEditStringProvider editStringProvider)
public TreeInlineTextEditor(TreeViewer treeViewer,
IEditStringProvider editStringProvider,
boolean isF2disabled)
treeViewer - the tree viewereditStringProvider - isF2disabled - boolean flag indicating whether F2 is disabled| Method Detail |
public boolean isDisposed()
public boolean canEdit()
public void startEdit()
public void cancelEdit()
public void endEdit()
protected void openErrorDialog(IStatus status)
status - The status object for which to open an error dialog.public void dispose()
public java.lang.String getCurrentText()
public java.lang.String getInitialText()
public java.lang.String getFinalText()
|
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.