edu.uky.rch.ept.projectexplorer
Class ProjectExplorer

java.lang.Object
  extended byedu.uky.rch.ept.projectexplorer.ProjectExplorer
All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionChangedListener

public class ProjectExplorer
extends Object
implements org.eclipse.jface.viewers.ISelectionChangedListener

This class defines API that enables applications to query the current selection in the project explorer tree and to register objects as listeners on the tree. It also provides methods to refresh all or part of the tree.

Author:
Sandeep Bodapati

Method Summary
 void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
           
 Object getFirstSelection()
           
static ProjectExplorer getInstance()
           
 org.eclipse.jface.viewers.IStructuredSelection getSelection()
           
static void refreshViewer()
           
static void refreshViewer(Object target)
           
 void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
           
 void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
           
static edu.uky.rch.ept.projectexplorer.internal.ProjectExplorerView showView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProjectExplorer getInstance()

selectionChanged

public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Specified by:
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener

getSelection

public org.eclipse.jface.viewers.IStructuredSelection getSelection()

getFirstSelection

public Object getFirstSelection()

showView

public static edu.uky.rch.ept.projectexplorer.internal.ProjectExplorerView showView()
                                                                             throws org.eclipse.ui.PartInitException
Throws:
org.eclipse.ui.PartInitException

addSelectionChangedListener

public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)

removeSelectionChangedListener

public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)

refreshViewer

public static void refreshViewer()

refreshViewer

public static void refreshViewer(Object target)