|
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 org.eclipse.gmf.runtime.common.ui.dialogs.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 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 cellpublic 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 bitsMethod Detail |
---|
protected java.lang.Object openDialogBox(Control cellEditorWindow)
org.eclipse.gmf.runtime.common.ui.dialogs.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 CellEditor
true
if the text selection is not empty,
false
otherwisepublic boolean isCutEnabled()
isCutEnabled
in class CellEditor
true
if the text selection is not empty,
false
otherwisepublic boolean isDeleteEnabled()
isDeleteEnabled
in class CellEditor
true
if the text selection is not empty,
false
otherwisepublic boolean isPasteEnabled()
isPasteEnabled
in class CellEditor
true
if the text selection is not empty,
false
otherwisepublic boolean isSaveAllEnabled()
true
if the text widget is not disposed,
false
otherwisepublic boolean isSelectAllEnabled()
isSelectAllEnabled
in class CellEditor
true
if select all is possible,
false
otherwisepublic void performCopy()
performCopy
in class CellEditor
public void performCut()
performCut
in class CellEditor
public void performDelete()
performDelete
in class CellEditor
public void performPaste()
performPaste
in class CellEditor
public void performSelectAll()
performSelectAll
in class CellEditor
protected java.lang.Object getCellObjectValue()
protected void initButtons()
MultiButtonCellEditor
initButtons
in class MultiButtonCellEditor
MultiButtonCellEditor.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.