|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.viewers.CellEditor
org.eclipse.gmf.runtime.common.ui.services.properties.extended.MultiButtonCellEditor
org.eclipse.gmf.runtime.common.ui.services.properties.extended.PropertyPageCellEditor
public class PropertyPageCellEditor
Cell editor for properties that can be modified via a property page. This cell editor is composed of an elipsis button for editing via a property page.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
CellEditor.LayoutData |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO |
| Constructor Summary | |
|---|---|
PropertyPageCellEditor(Composite parent,
PropertyPagePropertyDescriptor descriptor)
Creates a new property page cell editor parented under the given control. |
|
PropertyPageCellEditor(Composite parent,
PropertyPagePropertyDescriptor descriptor,
int style)
Creates a new property page cell editor parented under the given control. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
getCellObjectValue()
Getter method for value |
protected void |
initButtons()
The subclasses have to override this method. |
boolean |
isCopyEnabled()
Determines if there is text to copy. |
boolean |
isCutEnabled()
Determines if there is text to cut |
boolean |
isDeleteEnabled()
Determines if there is text to delete |
boolean |
isPasteEnabled()
Determines if there is a text widget on which text can be pasted |
boolean |
isSaveAllEnabled()
Determines if there is a text widget in which text can be saved |
boolean |
isSelectAllEnabled()
Determines if there is text to be selected. |
protected java.lang.Object |
openDialogBox(Control cellEditorWindow)
Opens the PropertiesDialog. |
void |
performCopy()
Copies the selected text |
void |
performCut()
Cuts the selected text to the clipboard. |
void |
performDelete()
Deletes the selected text or, if there is no selection, the character next character from the current position. |
void |
performPaste()
Pastes the the clipboard contents over the selected text. |
void |
performSelectAll()
Selects all of the text |
| Methods inherited from class org.eclipse.gmf.runtime.common.ui.services.properties.extended.MultiButtonCellEditor |
|---|
addButton, createControl, doGetValue, doSetFocus, doSetValue, getLabel, getText, isModifiable, updateLabel |
| Methods inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
activate, activate, addListener, addPropertyChangeListener, create, deactivate, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getErrorMessage, getLayoutData, getStyle, getValidator, getValue, isActivated, isCorrect, isDirty, isFindEnabled, isRedoEnabled, isUndoEnabled, isValueValid, keyReleaseOccured, markDirty, performFind, performRedo, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyPageCellEditor(Composite parent,
PropertyPagePropertyDescriptor descriptor)
null initially, and has no
validator.
parent - The parent controldescriptor - The property descriptor for this cell
public PropertyPageCellEditor(Composite parent,
PropertyPagePropertyDescriptor descriptor,
int style)
null initially, and has no
validator.
parent - The parent controldescriptor - The property descriptor for this cellstyle - the style bits| Method Detail |
|---|
protected java.lang.Object openDialogBox(Control cellEditorWindow)
PropertiesDialog. Always
returns null. The UI is updated by the model event when the property
is modified by the property dialog.
DialogCellEditor.openDialogBox(org.eclipse.swt.widgets.Control)public boolean isCopyEnabled()
isCopyEnabled in class CellEditortrue if the text selection is not empty,
falseotherwisepublic boolean isCutEnabled()
isCutEnabled in class CellEditortrue if the text selection is not empty,
falseotherwisepublic boolean isDeleteEnabled()
isDeleteEnabled in class CellEditortrue if the text selection is not empty,
falseotherwisepublic boolean isPasteEnabled()
isPasteEnabled in class CellEditortrue if the text selection is not empty,
falseotherwisepublic boolean isSaveAllEnabled()
true if the text widget is not disposed,
falseotherwisepublic boolean isSelectAllEnabled()
isSelectAllEnabled in class CellEditortrue if select all is possible,
false otherwisepublic void performCopy()
performCopy in class CellEditorpublic void performCut()
performCut in class CellEditorpublic void performDelete()
performDelete in class CellEditorpublic void performPaste()
performPaste in class CellEditorpublic void performSelectAll()
performSelectAll in class CellEditorprotected java.lang.Object getCellObjectValue()
protected void initButtons()
MultiButtonCellEditor
initButtons in class MultiButtonCellEditorMultiButtonCellEditor.initButtons()
|
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.