|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
edu.wpi.ebob.views.PropertiesView
public class PropertiesView
This view represents the result of inspecting an instance.
Field Summary | |
---|---|
private Instance |
currentInstance
|
private org.eclipse.ui.part.DrillDownAdapter |
drillDownAdapter
|
private EditPublicFieldAction |
editFieldsAction
|
private org.eclipse.swt.widgets.Label |
emptySelectionLabel
shown when there is no selection in the Object Bench View. |
private static int |
LABEL_MARGIN_HEIGHT
the margin height to use when displaying emptySelectionLabel . |
private static int |
LABEL_MARGIN_WIDTH
the margin width to use when displaying emptySelectionLabel . |
private org.eclipse.swt.custom.StackLayout |
layout
the layout for the view. |
private org.eclipse.swt.widgets.Composite |
panel
a reference to the parent composite. |
private org.eclipse.core.runtime.Preferences.IPropertyChangeListener |
prefChangeListener
|
private org.eclipse.jface.viewers.TreeViewer |
viewer
the viewer for the view. |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
PropertiesView()
|
Method Summary | |
---|---|
private void |
createEmptySelectionLabel()
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it. |
private void |
createViewer()
creates the TableTreeViewer for this view. |
void |
dispose()
removes the selection listener and the preference listener. |
private void |
fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
|
private void |
hookContextMenu()
|
void |
init(org.eclipse.ui.IViewSite site)
|
void |
refresh()
Refreshes the view. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
listens to changes in the ObjBenchView . |
void |
setFocus()
Passing the focus request to the viewer's control. |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
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 |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
private static final int LABEL_MARGIN_HEIGHT
emptySelectionLabel
.
private static final int LABEL_MARGIN_WIDTH
emptySelectionLabel
.
private org.eclipse.ui.part.DrillDownAdapter drillDownAdapter
private EditPublicFieldAction editFieldsAction
private org.eclipse.swt.widgets.Label emptySelectionLabel
private final org.eclipse.swt.custom.StackLayout layout
private org.eclipse.swt.widgets.Composite panel
private org.eclipse.jface.viewers.TreeViewer viewer
private Instance currentInstance
private org.eclipse.core.runtime.Preferences.IPropertyChangeListener prefChangeListener
Constructor Detail |
---|
public PropertiesView()
Method Detail |
---|
private void createEmptySelectionLabel()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
private void createViewer()
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.dispose()
private void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
private void hookContextMenu()
public void init(org.eclipse.ui.IViewSite site) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IViewPart
init
in class org.eclipse.ui.part.ViewPart
org.eclipse.ui.PartInitException
IViewPart.init(org.eclipse.ui.IViewSite)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
ObjBenchView
. If an instance is
selected, the tree is displayed; otherwise, a label is displayed.
selectionChanged
in interface org.eclipse.ui.ISelectionListener
part
- must be an instance of ObjBenchView
.selection
- the currently selected instance in the ObjBenchView
.ISelectionListener.selectionChanged(IWorkbenchPart, ISelection)
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void refresh()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |