de.hunsicker.jalopy.plugin
Interface Project


public interface Project

Provides access to the Java source files that make up a user's project.

Version:
$Revision: 1.2 $
Author:
Marco Hunsicker

Method Summary
 ProjectFile getActiveFile()
          Returns the currently active Java source file.
 java.util.Collection getAllFiles()
          Returns all Java source files that make up a project.
 java.util.Collection getOpenedFiles()
          Returns the Java source files that are currently opened (i.e.
 java.util.Collection getSelectedFiles()
          Returns the Java source files that are currently selected.
 

Method Detail

getActiveFile

public ProjectFile getActiveFile()
Returns the currently active Java source file. Active means that the file has an Editor opened and this editor has the focus.

Returns:
currently active file. Returns null if there is no active file or if the active file is no Java source file.

getAllFiles

public java.util.Collection getAllFiles()
Returns all Java source files that make up a project.

Returns:
the files of the project (of type <ProjectFile>). Returns an empty list if no files exist.

getOpenedFiles

public java.util.Collection getOpenedFiles()
Returns the Java source files that are currently opened (i.e. ProjectFile.getEditor() != null).

Returns:
currently opened files (of type <ProjectFile>). Returns an empty list if no files are opened.

getSelectedFiles

public java.util.Collection getSelectedFiles()
Returns the Java source files that are currently selected.

Returns:
currently selected files (of type <ProjectFile>). Returns an empty list if no files are selected.


Copyright © 1997-2005 Jalopy. All Rights Reserved.