|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectprojectManager.PIDEFile
public abstract class PIDEFile
This class is the parent class of all file types used bu PIDE.
Field Summary | |
---|---|
static int |
ASM
|
static int |
ASM_HEADER
|
static int |
ASM_PLUS_PLUS
|
static int |
DEBUG
|
protected boolean |
dirty
The value that indicates if the file is modified since the last save operation |
protected java.lang.String |
fileBuffer
The buffer that holds a partial content of the file |
protected java.lang.String |
fileName
Name of the file without extension |
protected java.lang.String |
filePath
The full path of the directory where the file resides |
protected int |
fileType
Indicates the file's extension |
static int |
HEX
|
static int |
PROJECT
|
static int |
SYSTEM_SETTINGS
|
static int |
TEST
|
Constructor Summary | |
---|---|
PIDEFile()
Default constructor. |
|
PIDEFile(int fileType,
java.lang.String fileName,
java.lang.String filePath)
Main constructor for an abstract PIDE file |
Method Summary | |
---|---|
int |
closeFile()
This method closes the file. |
java.lang.String |
getFileBuffer()
|
java.lang.String |
getFileName()
|
java.lang.String |
getFilePath()
|
int |
getFileType()
|
boolean |
isDirty()
Returns if the file is modified |
abstract void |
load()
This method loads the actual file into the fileBuffer. |
abstract void |
save()
This method saves the content of the fileBuffer into actual file defined by class attributes. |
void |
setDirty(boolean dirty)
Method to change file's dirty status |
void |
setFileName(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SYSTEM_SETTINGS
public static final int PROJECT
public static final int ASM_PLUS_PLUS
public static final int ASM
public static final int ASM_HEADER
public static final int HEX
public static final int TEST
public static final int DEBUG
protected int fileType
protected java.lang.String fileName
protected java.lang.String filePath
protected java.lang.String fileBuffer
protected boolean dirty
Constructor Detail |
---|
public PIDEFile()
public PIDEFile(int fileType, java.lang.String fileName, java.lang.String filePath)
fileType
- fileName
- filePath
- Method Detail |
---|
public abstract void save()
public abstract void load()
public int closeFile()
public boolean isDirty()
public void setDirty(boolean dirty)
dirty
- public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- the fileName to setpublic java.lang.String getFilePath()
public int getFileType()
public java.lang.String getFileBuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |