Class PaletteEditor
- All Implemented Interfaces:
IActivationListener, IDraggingFix, IWorkbenchPartIZ, IPropertyEditorController, IPropUndoContext, IDisposedPart, IPropUndoRedo, IAdaptable, IExecutableExtension, IDoubleClickListener, ISelectionChangedListener, ISelectionProvider, IGotoMarker, IEditorPart, INavigationLocationProvider, IPersistable, IPersistableEditor, ISaveablePart, ISaveablesSource, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPart3, IWorkbenchPartOrientation
The palette's Editor part: the tree of the module's palette colors and their folders under the style folder, on the VirtualSpace editor template - the Designer's filtered common viewer over the property tree, whose add, rename, move, delete, drag and drop and undo are the platform's - with, below, the selected color's values and its membership of this palette, and the palette's own properties. A double-click opens the color in its editor.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class PropEditorPart
PropEditorPart.DragSourceDelegatorField Summary
FieldsFields inherited from class PropEditorPart
appUI, copyAction, copyFullPathAction, copyReferenceAction, cutAction, deleteAction, dslPaste, editedPropCnr, EMPTY, filePropCnr, fileResource, globalActionBars, ir, linkAction, moveAction, partSelection, pasteAction, pasteAfterAction, pasteBeforeAction, pasteLinkAction, printAction, propEventListener, redoAction, renameAction, restoreMemento, revertAction, rootPropCnr, saveAction, selectAllAction, selectionEnabler, tiPaste, toolBar, toolBar2, undoAction, updateSelectionAndStatesRunnerFields inherited from interface IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface IWorkbenchPart
PROP_TITLEConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected voidcreateEditorComposite(Composite parent) Creates the Editor Main Composite.voiddispose()Disposes of editor.voiddoubleClick(DoubleClickEvent event) A double-click opens the palette color in its editor.protected voidinitEditor(PropCnr cnr) The initialize editor method.protected voidCalled when verification listener gets called for verify, very commonly in a non-SWT thread.protected voidPerforms Print.protected voidCalled when the selection in the tree changed: the detail follows.Methods inherited from class PropEditorPart
addForDisposalAtDispose, addListener, addOpenFile, addSelectionChangedListener, addToolbar2PushButton, addToolbar2PushButton, addToolbar2Separator, addToolbarPushButton, addToolbarPushButton, addToolbarPushButton, addToolbarPushButton, addToolbarPushButton, addToolbarPushButton, addToolbarPushButton, addToolbarSeparator, addToolbarSeparator, closeFile, createCommonViewer, createEmptyNavigationLocation, createFilteredCommonViewer, createFilteredCommonViewer, createLicenseExceptionComposite, createMenu, createMenu, createNavigationLocation, createPartControl, doOpen, doOpen, doSave, doSaveAs, fireSelectionAndStates, getActiveEditor, getActiveEditor, getActivePart, getActiveSaveables, getAdapter, getCurrentTreeViewer, getEditors, getExtension, getLicenseException, getModuleModel, getMultiSelectionProvider, getPartComposite, getPartName, getRedoAction, getSaveables, getSelection, getSelectionEnabler, getShell, getSyntClipboardSelection, getTargetViewer, getTitleImage, getTitleToolTip, getTitleToolTip, getTopmostEditor, getUndoAction, getUndoContext, getUndoRedo, gotoMarker, hasInitError, init, invalidLicense, isDirty, isDisposed, isDragging, isSaveAsAllowed, isSaveOnCloseNeeded, onActivated, onClose, onCloseProject, onComponentFocus, onDragBegin, onDragEnd, onEditorActivated, onEditorReady, onFileClosed, onPartRenamed, onSetFocus, onUpdateStates, performCollapseAll, performCopy, performCopyFullPath, performCopyReference, performCut, performDelete, performExpandAll, performLink, performMove, performPaste, performPasteAfter, performPasteBefore, performPasteLink, performRedo, performRename, performRevert, performSave, performSelectAll, performUndo, postAsyncUpdateStates, proceedInit, proceedInitProperty, refreshViewers, registerFormControl, registerViewer, registerViewer, removeListener, removePropertyValue, removeSelectionChangedListener, restoreMemento, restoreState, saveState, saveStateImpl, selectionChanged, setActionsUndoContext, setBlockViewerFocus, setFocus, setFocus, setPropertyAttrFlag, setPropertyError, setPropertyValue, setSelection, setTargetViewer, supportsCopyFullPath, supportsCopyReference, updateAllStates, updateStates, updateStatesEx, updateStatesPasteBeforeAfter, updateTitle, usePasteBeforeAfter, verifyDirtyStateChangedMethods inherited from class EditorPart
checkSite, getEditorInput, getEditorSite, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameMethods inherited from class WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IWorkbenchPart
addPropertyListener, getSite, getTitle, removePropertyListenerMethods inherited from interface IWorkbenchPartIZ
onComponentFocused
Field Details
ID
The Part ID.
Constructor Details
PaletteEditor
public PaletteEditor()Eclipse constructor.
Method Details
initEditor
The initialize editor method.- Overrides:
initEditorin classPropEditorPart- Parameters:
cnr- The property container being edited. Note: the real name of the property is in the parent FilePropCnr Atom.- Throws:
PartInitException- For initialization failures.
dispose
public void dispose()Disposes of editor.- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classPropEditorPart
createEditorComposite
Creates the Editor Main Composite.- Specified by:
createEditorCompositein classPropEditorPart- Parameters:
parent- The empty parent composite without initialized layout, with the widget background color.
performPrint
selectionChangedEx
Called when the selection in the tree changed: the detail follows.- Overrides:
selectionChangedExin classPropEditorPart
doubleClick
A double-click opens the palette color in its editor.- Specified by:
doubleClickin interfaceIDoubleClickListener
onEditedPropertyChangedForVerify
Called when verification listener gets called for verify, very commonly in a non-SWT thread.- Overrides:
onEditedPropertyChangedForVerifyin classPropEditorPart