org.aspectj.ajde.ui
Class StructureViewManager

java.lang.Object
  extended by org.aspectj.ajde.ui.StructureViewManager

public class StructureViewManager
extends java.lang.Object


Field Summary
 IHierarchyListener VIEW_LISTENER
           
 
Constructor Summary
StructureViewManager(StructureViewNodeFactory nodeFactory)
           
 
Method Summary
 GlobalStructureView createGlobalView(GlobalViewProperties properties)
           
 FileStructureView createViewForSourceFile(java.lang.String sourceFilePath, StructureViewProperties properties)
           
 boolean deleteView(StructureView view)
           
 void fireNavigateBackAction(StructureView view)
           
 void fireNavigateForwardAction(StructureView view)
           
 void fireNavigationAction(IProgramElement pe, boolean isLink)
          History is recorded for LinkNode navigations.
 void fireNavigationAction(java.lang.String newFilePath, int lineNumber)
          Only navigations of the default view are registered with the history.
 java.util.List getAvailableRelations()
          Returns the list of all available relations.
 FileStructureView getDefaultFileView()
           
 StructureViewProperties getDefaultViewProperties()
           
 void refreshView(StructureView view)
           
 void setDefaultFileView(FileStructureView defaultFileView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_LISTENER

public final IHierarchyListener VIEW_LISTENER
Constructor Detail

StructureViewManager

public StructureViewManager(StructureViewNodeFactory nodeFactory)
Parameters:
nodeFactory - concrete factory for creating view nodes
Method Detail

fireNavigateBackAction

public void fireNavigateBackAction(StructureView view)

fireNavigateForwardAction

public void fireNavigateForwardAction(StructureView view)

fireNavigationAction

public void fireNavigationAction(java.lang.String newFilePath,
                                 int lineNumber)
Only navigations of the default view are registered with the history.

Parameters:
newFilePath - the canonicalized path to the new file

fireNavigationAction

public void fireNavigationAction(IProgramElement pe,
                                 boolean isLink)
History is recorded for LinkNode navigations.


refreshView

public void refreshView(StructureView view)

getDefaultViewProperties

public StructureViewProperties getDefaultViewProperties()

getAvailableRelations

public java.util.List getAvailableRelations()
Returns the list of all available relations.


createGlobalView

public GlobalStructureView createGlobalView(GlobalViewProperties properties)
Parameters:
properties - can not be null

createViewForSourceFile

public FileStructureView createViewForSourceFile(java.lang.String sourceFilePath,
                                                 StructureViewProperties properties)
Parameters:
sourceFilePath - full path to corresponding source file
properties - if null default properties will be used
Returns:
always returns a view intance

deleteView

public boolean deleteView(StructureView view)
Returns:
true if the view was found and removed, false otherwise

setDefaultFileView

public void setDefaultFileView(FileStructureView defaultFileView)

getDefaultFileView

public FileStructureView getDefaultFileView()