java.lang.Object
|
+--org.eclipse.ui.part.WorkbenchPart
|
+--org.eclipse.ui.part.ViewPart
|
+--com.ibm.lab.soln.jdt.JavaMetricsView
This class will work with a JavaMetrics to enable the user
to see basic code metrics updated in real-time as the underlying Java model
is changed. This view shows the metrics of the currently selected ICompilationUnit,
whether it is in the Package Explorer, Outline, or Hierarchy view.
JavaMetrics| Field Summary |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
JavaMetricsView()
Return a new instance of JavaMetricsView. |
|
| Method Summary | |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Create a very simple view to display the Java metrics. |
void |
dispose()
|
void |
refresh(JavaMetrics unused)
Update the view to reflect changes in the metrics. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
Update the view to match the selection, if it is an ICompilationUnit. |
void |
setFocus()
|
| Methods inherited from class org.eclipse.ui.part.ViewPart |
getViewSite, init, init, saveState |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip |
| 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 |
| Constructor Detail |
public JavaMetricsView()
JavaMetricsView.
| Method Detail |
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.createPartControl(Composite)public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartpublic void refresh(JavaMetrics unused)
refresh in interface IJavaMetricsListenerunused - instance that has changed.IJavaMetricsListener.refresh(JavaMetrics)
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
ICompilationUnit.
selectionChanged in interface org.eclipse.ui.ISelectionListenerISelectionService.addSelectionListener(org.eclipse.ui.ISelectionListener)public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPart