public class ScreenEditor extends PropEditorPart implements ITerminalStateListener, ITermEditor
PropEditorPart.DragSourceDelegator
Modifier and Type | Field and Description |
---|---|
HostSession |
hostSession
The host session.
|
static String |
ID
The Part ID.
|
static QualifiedName |
sessionNameQualifier
The Session Name Qualifier for files.
|
int |
xPopupOffset
The popup offset in X.
|
int |
yPopupOffset
The popup offset in Y.
|
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 |
---|
ScreenEditor()
Eclipse constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createEditorComposite(Composite parent)
Creates the Editor Main Composite.
|
void |
dispose()
Dispose of the editor.
|
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.
|
HostSession |
getHostSession()
Gets the HostSession.
|
Rectangle |
getMarkingConstraints()
Gets the rectangle marking constraints.
|
TerminalComposite |
getTerminalComposite()
Gets the terminal composite.
|
TreeViewer |
getViewer()
Gets the viewer.
|
protected void |
initEditor(PropCnr cnr)
The initialize editor method.
|
boolean |
isCursorPresent()
Cursor present (and blinking)?
|
boolean |
isHotSpotEnabled()
Check for hotspot enabled.
|
boolean |
isTooltipTextShown()
If tool tips are shown.
|
void |
onClose()
Called when the part is being closed but is not yet disposed but hidden.
|
void |
onDoubleClick(int x,
int y)
Marks the host field.
|
protected void |
onEditorActivated(boolean on)
Called when editor is activated.
|
void |
onTerminalFieldChanged(HostSession hostSession,
TerminalWindow tw)
Called when the screen needs updates due to field change.
|
void |
onTerminalStateUpdate(HostSession hostSession,
TerminalWindow tw)
Called when state probably needs update or check.
|
void |
paint(Graphics2D g,
int leftMargin,
int topMargin,
int cxFont,
int cyFont,
int cxFontReal,
int cyFontReal,
int cxScreen,
int cyScreen,
Rectangle clipRect)
Paints the Graphics once the screen is drawn, before the cursor.
|
protected void |
performPrint()
Performs Print.
|
protected void |
saveStateImpl(IMemento memento)
Saves the state.
|
protected void |
selectionChangedEx(SelectionChangedEvent event)
Selection changes in the tree.
|
protected void |
updateStatesEx()
Called to update the states.
|
void |
updateToolStates()
Updates tool states.
|
protected boolean |
usePasteBeforeAfter()
Override to return how paste before/after are processed.
|
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, onEditedPropertyChangedForVerify, 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, selectionChanged, setActionsUndoContext, setBlockViewerFocus, setFocus, setFocus, setInput, setPropertyAttrFlag, setPropertyError, setPropertyValue, setSelection, setTargetViewer, supportsCopyFullPath, supportsCopyReference, updateAllStates, updateStates, updateStatesPasteBeforeAfter, 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
getModuleModel, getMultiSelectionProvider, getUndoContext, getUndoRedo, isDisposed, removePropertyValue, setBlockViewerFocus, setPropertyAttrFlag, setPropertyError, setPropertyValue
getShell, getTargetViewer, getUndoContext, setTargetViewer, updateStates
getUndoContext
onComponentFocused
addPropertyListener, getSite, getTitle, removePropertyListener
public static final String ID
public static final QualifiedName sessionNameQualifier
public HostSession hostSession
public int xPopupOffset
public int yPopupOffset
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.protected void onEditorActivated(boolean on)
onEditorActivated
in class PropEditorPart
protected boolean usePasteBeforeAfter()
usePasteBeforeAfter
in class PropEditorPart
public boolean isTooltipTextShown()
isTooltipTextShown
in interface ITermEditor
public boolean isHotSpotEnabled()
isHotSpotEnabled
in interface ITermEditor
public boolean isCursorPresent()
isCursorPresent
in interface ITermEditor
public TreeViewer getViewer()
getViewer
in interface ITermEditor
public HostSession getHostSession()
getHostSession
in interface ITermEditor
public void onClose()
onClose
in interface IActivationListener
onClose
in class PropEditorPart
public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class PropEditorPart
protected void createEditorComposite(Composite parent)
createEditorComposite
in class PropEditorPart
parent
- The empty parent composite without initialized layout, with the widget background color.public Rectangle getMarkingConstraints()
getMarkingConstraints
in interface ITermEditor
protected void performPrint()
performPrint
in class PropEditorPart
public void onTerminalStateUpdate(HostSession hostSession, TerminalWindow tw)
onTerminalStateUpdate
in interface ITerminalStateListener
hostSession
- The host session, may be null.tw
- The TerminalWindow, may be null when hostSession is null, not otherwise.public void onTerminalFieldChanged(HostSession hostSession, TerminalWindow tw)
onTerminalFieldChanged
in interface ITerminalStateListener
hostSession
- The host session, may be null.tw
- The TerminalWindow, may be null when hostSession is null, not otherwise.public void updateToolStates()
updateToolStates
in interface ITermEditor
protected void saveStateImpl(IMemento memento)
saveStateImpl
in class PropEditorPart
memento
- The storage area for object's state.public TerminalComposite getTerminalComposite()
getTerminalComposite
in interface ITermEditor
protected void selectionChangedEx(SelectionChangedEvent event)
selectionChangedEx
in class PropEditorPart
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.public void onDoubleClick(int x, int y)
onDoubleClick
in interface ITermEditor
public void paint(Graphics2D g, int leftMargin, int topMargin, int cxFont, int cyFont, int cxFontReal, int cyFontReal, int cxScreen, int cyScreen, Rectangle clipRect)
paint
in interface ITermEditor
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.