org.acm.seguin.ide.common
Class SourceBrowser

java.lang.Object
  extended by org.acm.seguin.ide.common.SourceBrowser
Direct Known Subclasses:
CommandLineSourceBrowser, ElixirSourceBrowser, JBuilderBrowser, NoSourceBrowser, PluginSourceBrowser

public abstract class SourceBrowser
extends java.lang.Object

Base class for source browsing. This is the generic base class.

Author:
Chris Seguin

Constructor Summary
SourceBrowser()
           
 
Method Summary
abstract  boolean canBrowseSource()
          Determines if the system is in a state where it can browse the source code
static SourceBrowser get()
          Gets the singleton source browser
abstract  void gotoSource(java.io.File file, int line)
          Actually browses to the file
static void set(SourceBrowser value)
          Sets the singleton source browser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceBrowser

public SourceBrowser()
Method Detail

set

public static void set(SourceBrowser value)
Sets the singleton source browser

Parameters:
value - the new singleton

get

public static SourceBrowser get()
Gets the singleton source browser

Returns:
the current source browser

canBrowseSource

public abstract boolean canBrowseSource()
Determines if the system is in a state where it can browse the source code

Returns:
true if the source code browsing is enabled

gotoSource

public abstract void gotoSource(java.io.File file,
                                int line)
Actually browses to the file

Parameters:
line - the line in the file
file - Description of Parameter