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