org.pentaho.di.ui.spoon
Class BreadcrumbManager

java.lang.Object
  extended by org.pentaho.di.ui.spoon.BreadcrumbManager

public class BreadcrumbManager
extends Object

A class to manage breadcrumbing so that we know which document/tab/perspective opened a given document.

Author:
jamesdixon

Constructor Summary
BreadcrumbManager()
           
 
Method Summary
 void addCaller(String caller, String callee)
          Adds a link between a caller id a callee id.
 String getCaller(String callee)
          Returns the id of the caller for a given callee id.
static BreadcrumbManager getInstance()
           
 void removeCaller(String callee)
          Removes the caller id of the callee from the breadcrumb manager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreadcrumbManager

public BreadcrumbManager()
Method Detail

getInstance

public static BreadcrumbManager getInstance()

addCaller

public void addCaller(String caller,
                      String callee)
Adds a link between a caller id a callee id.

Parameters:
caller -
callee -

getCaller

public String getCaller(String callee)
Returns the id of the caller for a given callee id. Will return null if there is no caller registered for the callee id.

Parameters:
callee -
Returns:

removeCaller

public void removeCaller(String callee)
Removes the caller id of the callee from the breadcrumb manager

Parameters:
callee -