public interface ProjectFile
Modifier and Type | Method and Description |
---|---|
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.
|
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.
Submit a bug or feature.
For further information and documentation, visit the official Jalopy website.
This page generated: March 30 2013