org.acm.seguin.ide.jbuilder
Class JBuilderBrowser

java.lang.Object
  extended by org.acm.seguin.ide.common.SourceBrowser
      extended by org.acm.seguin.ide.jbuilder.JBuilderBrowser

public class JBuilderBrowser
extends SourceBrowser

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

Author:
Chris Seguin

Constructor Summary
JBuilderBrowser()
           
 
Method Summary
 boolean canBrowseSource()
          Determines if the system is in a state where it can browse the source code
 FileNode findSourceFileNode(java.io.File file)
          Get the FileNode that matches a File (in this project).
 void gotoLine(int lineNumber, FileNode sourceNode)
          Go to a specific line in a source file.
 void gotoSource(java.io.File file, int line)
          Actually browses to the file
 void showNode(FileNode node)
          Show a source file.
 
Methods inherited from class org.acm.seguin.ide.common.SourceBrowser
get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBuilderBrowser

public JBuilderBrowser()
Method Detail

canBrowseSource

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

Specified by:
canBrowseSource in class SourceBrowser
Returns:
true if the source code browsing is enabled

findSourceFileNode

public FileNode findSourceFileNode(java.io.File file)
Get the FileNode that matches a File (in this project).

Parameters:
file - File to look for in this project.
Returns:
FileNode The FileNode. *duh

gotoLine

public void gotoLine(int lineNumber,
                     FileNode sourceNode)
Go to a specific line in a source file.

Parameters:
lineNumber - Line number to go to.
sourceNode - Source file node.

gotoSource

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

Specified by:
gotoSource in class SourceBrowser
Parameters:
file - the file
line - the line in the file

showNode

public void showNode(FileNode node)
Show a source file.

Parameters:
node - Source file node to show.