projectManager
Class ProjectFile
java.lang.Object
projectManager.PIDEFile
projectManager.ProjectFile
public class ProjectFile
- extends PIDEFile
This class holds information of a PIDE project.
- Author:
- maho
Fields inherited from class projectManager.PIDEFile |
ASM, ASM_HEADER, ASM_PLUS_PLUS, DEBUG, dirty, fileBuffer, fileName, filePath, fileType, HEX, PROJECT, SYSTEM_SETTINGS, TEST |
Constructor Summary |
ProjectFile(int fileType,
java.lang.String fileName,
java.lang.String filePath,
java.lang.String projectDescription)
This constructor is invoked by system when a new project
is created. |
ProjectFile(Project project)
This constructor is invoked by a project. |
Method Summary |
void |
load()
This method loads the actual file into the fileBuffer. |
void |
save()
This method saves the content of the fileBuffer
into actual file defined by class attributes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
project
public Project project
projectDescription
public java.lang.String projectDescription
fileList
public java.util.ArrayList<java.lang.String> fileList
ProjectFile
public ProjectFile(int fileType,
java.lang.String fileName,
java.lang.String filePath,
java.lang.String projectDescription)
- This constructor is invoked by system when a new project
is created. The constructor creates a project file into project folder.
- Parameters:
fileType
- fileName
- filePath
- project
-
ProjectFile
public ProjectFile(Project project)
- This constructor is invoked by a project.
The constructor loads data from the existing
project file.
- Parameters:
project
-
load
public void load()
- Description copied from class:
PIDEFile
- This method loads the actual file into the fileBuffer.
If the specified file is active and dirty, then method
asks the user if s/he wants to discard changes.
- Specified by:
load
in class PIDEFile
save
public void save()
- Description copied from class:
PIDEFile
- This method saves the content of the fileBuffer
into actual file defined by class attributes.
Also clears the dirty flag.
- Specified by:
save
in class PIDEFile