Package org.eclipse.epsilon.picto
Class PictoView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.epsilon.picto.PictoView
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.ui.IPersistable
,org.eclipse.ui.IViewPart
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IWorkbenchPartOrientation
public class PictoView
extends org.eclipse.ui.part.ViewPart
-
Field Summary
Modifier and TypeFieldDescriptionprotected ViewTree
protected BrowserContainer
protected List<PictoBrowserFunction>
protected List<PictoBrowserScript>
protected org.eclipse.ui.IEditorPart
protected FilteredViewTree
protected org.eclipse.epsilon.picto.PictoView.ToggleTreeViewerAction
static final String
protected org.eclipse.epsilon.picto.PictoView.EditorPropertyListener
protected boolean
protected boolean
protected org.eclipse.ui.IEditorPart
protected boolean
protected org.eclipse.swt.custom.SashForm
protected int[]
protected PictoSource
protected Collection<PictoSource>
protected int
protected org.eclipse.jface.viewers.TreeViewer
protected boolean
protected ViewRenderer
protected org.eclipse.core.runtime.jobs.JobGroup
Ensures we only render one view at a time, and allows us to cancel pending jobs if the selection changes.protected ViewTreeLabelProvider
protected ViewTreeSelectionHistory
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.swt.browser.Browser
createBrowser
(BrowserContainer container) void
createPartControl
(org.eclipse.swt.widgets.Composite parent) void
dispose()
<T> T
getAdapter
(Class<T> adapter) org.eclipse.ui.IEditorPart
protected PictoSource
getSource
(org.eclipse.ui.IEditorPart editorPart) boolean
isLocked()
boolean
isPinned()
protected boolean
void
render
(org.eclipse.ui.IEditorPart editor) void
renderView
(ViewTree view) void
runInUIThread
(RunnableWithException runnable) void
selectViewTree
(List<String> path) void
setFocus()
void
setLocked
(boolean locked) void
setPinned
(boolean pinned) protected void
setTreeViewerVisible
(boolean visible) void
setViewRenderer
(ViewRenderer viewRenderer) protected void
setViewTree
(ViewTree newViewTree, boolean rerender) protected boolean
supports
(org.eclipse.ui.IEditorPart editorPart) Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
ID
- See Also:
-
viewRenderer
-
browserContainer
-
editor
protected org.eclipse.ui.IEditorPart editor -
listener
protected org.eclipse.epsilon.picto.PictoView.EditorPropertyListener listener -
treeViewer
protected org.eclipse.jface.viewers.TreeViewer treeViewer -
sashForm
protected org.eclipse.swt.custom.SashForm sashForm -
sashFormWeights
protected int[] sashFormWeights -
renderedEditor
protected org.eclipse.ui.IEditorPart renderedEditor -
locked
protected boolean locked -
pinned
protected boolean pinned -
hideTreeAction
protected org.eclipse.epsilon.picto.PictoView.ToggleTreeViewerAction hideTreeAction -
activeViewHistory
-
activeView
-
source
-
sources
-
browserFunctions
-
browserScripts
-
viewTreeLabelProvider
-
filteredTree
-
renderVerbatimSources
protected boolean renderVerbatimSources -
viewTreeSelectionHistory
-
treePosition
protected int treePosition -
treeViewerShouldBeVisible
protected boolean treeViewerShouldBeVisible -
viewRenderingJobs
protected org.eclipse.core.runtime.jobs.JobGroup viewRenderingJobsEnsures we only render one view at a time, and allows us to cancel pending jobs if the selection changes.
-
-
Constructor Details
-
PictoView
public PictoView()
-
-
Method Details
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createPartControl
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in classorg.eclipse.ui.part.WorkbenchPart
-
createBrowser
-
render
public void render(org.eclipse.ui.IEditorPart editor) -
isTreeViewerVisible
protected boolean isTreeViewerVisible() -
setTreeViewerVisible
protected void setTreeViewerVisible(boolean visible) -
selectViewTree
-
runInUIThread
- Throws:
Exception
-
setViewTree
- Throws:
Exception
-
renderView
- Throws:
Exception
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in classorg.eclipse.ui.part.WorkbenchPart
-
supports
protected boolean supports(org.eclipse.ui.IEditorPart editorPart) -
getSource
-
getSource
- Returns:
- Since:
- 2.2
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.ui.part.WorkbenchPart
-
getEditor
public org.eclipse.ui.IEditorPart getEditor() -
isLocked
public boolean isLocked() -
setLocked
public void setLocked(boolean locked) -
getActiveView
-
getViewTree
-
getViewRenderer
-
setViewRenderer
-
getViewTreeSelectionHistory
-
isPinned
public boolean isPinned() -
setPinned
public void setPinned(boolean pinned)
-