|
Jalopy 1.0b11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectFile
Represents a Java source file that is part of a project.
Method Summary | |
---|---|
Editor |
getEditor()
Returns an editor view to modify the file. |
java.lang.String |
getEncoding()
Returns the encoding used to read and write this file. |
java.io.File |
getFile()
Returns the underlying physical file. |
java.lang.String |
getName()
Returns the name of the file. |
Project |
getProject()
Returns the project this file is attached to. |
boolean |
isOpened()
Determines whether the file is currently opened. |
boolean |
isReadOnly()
Determines whether the file can be changed. |
Method Detail |
---|
Editor getEditor()
if (projectFile.isOpened()) { return projectFile.getEditor(); } else { // do whatever you want ... }
null
if the file is currently closed.isOpened()
java.lang.String getEncoding()
null
to indicate the platform's
default encoding.java.io.File getFile()
null
.
java.lang.String getName()
boolean isOpened()
true
if the file is currently opened, i.e. has an editor to
modify its contents.getEditor()
Project getProject()
boolean isReadOnly()
true
if the file can be changed by the user.
|
Jalopy 1.0b11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |