public class ProjectsLoaded
extends java.lang.Object
Constructor and Description |
---|
ProjectsLoaded() |
Modifier and Type | Method and Description |
---|---|
Project |
add(boolean addNew)
Adding (Creating or Opening) a new Project to the Application.
|
Project |
add(boolean addNew,
java.lang.String selectedProjectFolder,
MApplication mApplication,
EPartService ePartService,
EModelService eModelService)
Adding (Creating or Opening) a new Project to the Application.
|
Project |
add(java.lang.String selectedProjectFolder)
Open a project corresponding to specified project folder.
|
boolean |
closeAll()
This method will try to close all open projects.
|
boolean |
closeAll(java.awt.Component parentComponent)
This method will try to close all open projects.
|
boolean |
closeAll(java.awt.Component parentComponent,
boolean isSkipSaving)
This method will try to close all open projects.
|
int |
count()
Counts the actual open projects
|
Project |
get(int indexOfProject)
Returns the Project-instance given by its index
|
Project |
get(java.lang.String projectName)
Returns the Project-instance given by its project name
|
int |
getIndexByFolderName(java.lang.String projectFolderName)
Identifies a Project by its Root-Folder-Name and returns the Array-/Window-Index
|
int |
getIndexByName(java.lang.String projectName)
Identifies a Project by its name and returns the Array-/Window-Index
|
java.util.ArrayList<Project> |
getProjectsOpen()
Returns the list of currently open projects.
|
void |
projectDelete()
Can be used in order to delete a project.
|
void |
projectDelete(java.io.File projectSubDirectory)
Deletes the specified project sub directory
|
void |
projectDelete(java.lang.String projectSubDirectory)
Deletes the specified project sub directory (the last element in the path is enough).
|
void |
projectExport()
Exports a project to a file
|
void |
projectExportToRepository()
Exports the currently focused Project to the local repository.
|
void |
projectImport()
Imports a project, which is packed in Agent.GUI project file (*.agui)
|
void |
remove(Project project2Remove)
Removes a single Project
|
void |
removeAll()
Removes all Projects from the (Array) ProjectList
|
void |
setProjectView()
Configures the appearance of the application, depending on the current project configuration
|
public java.util.ArrayList<Project> getProjectsOpen()
public Project add(boolean addNew)
addNew
- the add new. If set false, the user dialog for selecting a project to open will be shownnull
.public Project add(java.lang.String selectedProjectFolder)
selectedProjectFolder
- the selected project folder from the projects directorypublic Project add(boolean addNew, java.lang.String selectedProjectFolder, MApplication mApplication, EPartService ePartService, EModelService eModelService)
addNew
- the add newselectedProjectFolder
- the selected project foldermApplication
- the eclipse MApplicationePartService
- the eclipse EPpartServiceeModelService
- the eclipse EMmodelServicepublic boolean closeAll()
parentComponent
- the parent componentpublic boolean closeAll(java.awt.Component parentComponent)
parentComponent
- the parent component (for messages by using the JOptionPane
)public boolean closeAll(java.awt.Component parentComponent, boolean isSkipSaving)
parentComponent
- the parent component (for messages by using the JOptionPane
)isSkipSaving
- set true, if you want to skip user interactions for saving a projectpublic Project get(java.lang.String projectName)
projectName
- public Project get(int indexOfProject)
indexOfProject
- public void remove(Project project2Remove)
project2Remove
- public void removeAll()
public int getIndexByName(java.lang.String projectName)
projectName
- public int getIndexByFolderName(java.lang.String projectFolderName)
projectFolderName
- public int count()
public void setProjectView()
public void projectImport()
public void projectExport()
public void projectExportToRepository()
public void projectDelete()
public void projectDelete(java.lang.String projectSubDirectory)
projectSubDirectory
- the project sub directorypublic void projectDelete(java.io.File projectSubDirectory)
projectSubDirectory
- the project sub directory