public class PanelEditor extends PropEditorPart implements IComplexOperationSelection, IPreviewThemeProvider
Modifier and Type | Class and Description |
---|---|
static class |
PanelEditor.GridInfo
Class holding a grid layout and components or indexes for the grid operations.
|
PropEditorPart.DragSourceDelegator
Modifier and Type | Field and Description |
---|---|
static String |
ID
The Part ID.
|
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, updateSelectionAndStatesRunner
PROP_TITLE
PROP_DIRTY, PROP_INPUT
Constructor and Description |
---|
PanelEditor()
The Eclipse constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areStylesIncluded()
Returns if styles are displayed or not.
|
static boolean |
checkClearInternalBrowserCache(IPreferenceStore store,
boolean force)
Checks if clearing the browser cache is required due to a new iiziGo Build or a compression settings.
|
static boolean |
clearInternalBrowserCache(String msg)
Clears the internal browser cache (IE under Windows).
|
protected void |
createEditorComposite(Composite parent)
Creates the Editor Main Composite.
|
void |
dispose()
Disposes of the Panel Editor.
|
void |
doComplexOperationSelection(GProp<?>[] props)
Performs the selection of the components.
|
static void |
doFlash(Composite composite,
UIComp uiComp)
Performs flashing of a component in all open editors.
|
boolean |
doOpen(GProp<?>[] props)
Opens the property by selecting it in focus.
|
boolean |
doOpen(GProp<?> prop,
int index,
String childName)
Opens the property by selecting it in focus.
|
String |
getCurrentLanguageCode()
Gets the current language code.
|
int |
getDropMode()
Gets the current drop mode:
0 = Horizontal insert,
1 = Vertical insert,
2 = Horizontal overwrite,
3 = Horizontal overwrite wrapping,
4 = Vertically overwrite.
|
UIPanelBase |
getEditedPanel()
Gets the edited panel.
|
ArrayList<DesignerProp> |
getMarkedComponents()
Gets the selection of marks for drag-drop.
|
String |
getThemes()
Gets the theme information for the current editor used for the image preview.
|
FilteredCommonViewer |
getTreeViewer()
Returns the tree viewer for the panel editor.
|
EditorVirtualSpace |
getVirtualSpace()
Gets the VirtualSpace of the edited panel.
|
protected void |
initEditor(PropCnr cnr)
The initialize editor method.
|
void |
onClose()
Called when the part is being closed but is not yet disposed but hidden.
|
protected void |
onEditedPropertyChangedForVerify(GEvent event)
Called when verification listener gets called for verify, very commonly in a non-SWT thread.
|
void |
onFolderSettingsChanged()
Called when the folder settings are changed.
|
void |
onSetFocus()
Asks this part to take focus within the workbench.
|
boolean |
performClearCells(boolean useComponentSelection,
boolean doit)
Clears cells in a grid.
|
protected boolean |
performCopyFullPath(boolean doPerform)
Copies the full path.
|
protected boolean |
performCopyReference(boolean doPerform)
Copies the reference.
|
boolean |
performDeleteColumn(boolean useComponentSelection,
boolean doit)
Delete column.
|
boolean |
performDeleteRow(boolean useComponentSelection,
boolean doit)
Delete row.
|
boolean |
performInsertColumn(boolean isAfter,
boolean useComponentSelection,
boolean doit)
Inserts a column before or after.
|
boolean |
performInsertRow(boolean isAfter,
boolean useComponentSelection,
boolean doit)
Inserts a row before or after.
|
void |
performPasteAfter()
Performs Paste Before.
|
void |
performPasteBefore()
Performs Paste Before.
|
protected void |
performPrint()
Print the window.
|
protected void |
saveStateImpl(IMemento memento)
Saves the state.
|
protected void |
selectionChangedEx(SelectionChangedEvent event)
Selection changes in the tree.
|
void |
setDevice(GSimpleDevice dev)
Sets the device to use in the panel editor without undo functionality.
|
void |
setFitNow()
Sets the fit-now zoom level.
|
void |
setIncludeStyles(boolean on)
Enables or disables viewing of styles.
|
boolean |
setTreeSelection(GProp<?> prop)
Sets the tree selection to the property in question.
|
protected boolean |
supportsCopyFullPath()
Returns if the Copy path should be present or not.
|
protected boolean |
supportsCopyReference()
Returns if the Copy reference should be present or not.
|
protected void |
updateStatesEx()
Called to update the states.
|
protected void |
updateStatesPasteBeforeAfter()
Initializes the paste before/after validity.
|
protected boolean |
usePasteBeforeAfter()
Processing of paste before/after is enabled.
|
void |
waitForClientSideEditor()
Checks if the browser is internal, and if so waits for the ClientSideEditor to start.
|
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, 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, onCloseProject, onComponentFocus, onDragBegin, onDragEnd, onEditorActivated, onEditorReady, onFileClosed, onPartRenamed, onUpdateStates, performCollapseAll, performCopy, performCut, performDelete, performExpandAll, performLink, performMove, performPaste, performPasteLink, performRedo, performRename, performRevert, performSave, performSelectAll, performUndo, postAsyncUpdateStates, proceedInit, proceedInitProperty, refreshViewers, registerFormControl, registerViewer, registerViewer, removeListener, removePropertyValue, removeSelectionChangedListener, restoreMemento, restoreState, saveState, selectionChanged, setActionsUndoContext, setBlockViewerFocus, setFocus, setFocus, setInput, setPropertyAttrFlag, setPropertyError, setPropertyValue, setSelection, setTargetViewer, updateAllStates, updateStates, updateTitle, verifyDirtyStateChanged
checkSite, getEditorInput, getEditorSite, setContentDescription, setInitializationData, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectionBefore, isDisposed, isReturningSelectionBeforeOperation
onComponentFocused
addPropertyListener, getSite, getTitle, removePropertyListener
public static final String ID
public static boolean checkClearInternalBrowserCache(IPreferenceStore store, boolean force)
store
- The preference store.force
- For clearing flag.public static final boolean clearInternalBrowserCache(String msg)
msg
- Message to log in case of success.protected void initEditor(PropCnr cnr) throws PartInitException
Subclasses may override this method.
initEditor
in class PropEditorPart
cnr
- The property container being edited. Note: the real name of the property
is in the parent FilePropCnr Atom.PartInitException
- For initialization failures.public void onClose()
onClose
in interface IActivationListener
onClose
in class PropEditorPart
protected void saveStateImpl(IMemento memento)
saveStateImpl
in class PropEditorPart
memento
- The storage area for object's state.public UIPanelBase getEditedPanel()
public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class PropEditorPart
public void onSetFocus()
onSetFocus
in class PropEditorPart
protected boolean usePasteBeforeAfter()
usePasteBeforeAfter
in class PropEditorPart
protected void updateStatesPasteBeforeAfter()
updateStatesPasteBeforeAfter
in class PropEditorPart
public void performPasteBefore()
performPasteBefore
in class PropEditorPart
public void performPasteAfter()
performPasteAfter
in class PropEditorPart
protected boolean supportsCopyReference()
supportsCopyReference
in class PropEditorPart
protected boolean supportsCopyFullPath()
supportsCopyFullPath
in class PropEditorPart
protected boolean performCopyReference(boolean doPerform)
performCopyReference
in class PropEditorPart
doPerform
- Flag to perform the action or just testing it.protected boolean performCopyFullPath(boolean doPerform)
performCopyFullPath
in class PropEditorPart
doPerform
- Flag to perform the action or just testing it.protected void onEditedPropertyChangedForVerify(GEvent event)
onEditedPropertyChangedForVerify
in class PropEditorPart
public void onFolderSettingsChanged()
public String getThemes()
getThemes
in interface IPreviewThemeProvider
public void setDevice(GSimpleDevice dev)
dev
- The device to use.public void waitForClientSideEditor()
public void setFitNow()
public int getDropMode()
protected void createEditorComposite(Composite parent)
createEditorComposite
in class PropEditorPart
parent
- The empty parent composite without initialized layout, with the widget background color.public void setIncludeStyles(boolean on)
public boolean areStylesIncluded()
public FilteredCommonViewer getTreeViewer()
protected void selectionChangedEx(SelectionChangedEvent event)
selectionChangedEx
in class PropEditorPart
public ArrayList<DesignerProp> getMarkedComponents()
public void doComplexOperationSelection(GProp<?>[] props)
doComplexOperationSelection
in interface IComplexOperationSelection
protected void updateStatesEx()
updateStatesEx
in class PropEditorPart
public boolean doOpen(GProp<?>[] props)
doOpen
in class PropEditorPart
public boolean doOpen(GProp<?> prop, int index, String childName)
doOpen
in class PropEditorPart
prop
- The property to focus.index
- The index in a multi-property.childName
- Name of child property or null.protected void performPrint()
performPrint
in class PropEditorPart
public boolean performInsertRow(boolean isAfter, boolean useComponentSelection, boolean doit)
public boolean performInsertColumn(boolean isAfter, boolean useComponentSelection, boolean doit)
public boolean performDeleteRow(boolean useComponentSelection, boolean doit)
public boolean performDeleteColumn(boolean useComponentSelection, boolean doit)
public boolean performClearCells(boolean useComponentSelection, boolean doit)
public static void doFlash(Composite composite, UIComp uiComp)
public boolean setTreeSelection(GProp<?> prop)
Note that this must be called from the SWT thread.
prop
- The property to select.public EditorVirtualSpace getVirtualSpace()
public String getCurrentLanguageCode()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.