public class EclipseProject extends Object implements IBackgroundLoader, IReloadListener
RF_APPLICATION, RF_HELPID, RF_PANEL, RF_POPUP, RF_PROJECT, RF_TERMINAL, RF_TEXT, RF_TOOLTIP, RF_TRANSLATE
Modifier and Type | Method and Description |
---|---|
static void |
createEclipseProjectFiles(File projectDir,
int javaVersion)
Routine to create the Eclipse files in a NetPhantom project.
|
IOException |
getLoadError()
Gets a load error.
|
File |
getLocation()
Gets the location (directory) of the project.
|
String |
getProjectPath()
Gets the project path, i.e.
|
PhantomRuntime |
getRuntime()
Gets the runtime, forces loading if not done yet.
|
boolean |
hasCompletedLoading()
Checks if the project has completed loading, with or without error.
|
void |
informEclipse(boolean openInEclipse)
Inform Eclipse of project data if required.
|
boolean |
isCanceled()
If loading is canceled or not.
|
boolean |
isInEclipse()
Checks if project is in Eclipse.
|
boolean |
isOpen()
Checks if project is open (in Editor or Eclipse).
|
boolean |
isOpenInEditor()
Checks if this project is open in the Editor.
|
void |
onCloseEditor()
Called when Editor closes the project.
|
void |
onComplete()
Called when loading completed.
|
void |
onFileReloaded(int type,
String fileName)
Called when a file has been reloaded.
|
public static void createEclipseProjectFiles(File projectDir, int javaVersion) throws IOException
projectDir
- The project directory.javaVersion
- The JDK version 8...IOExeception
- For I/O errors creating files or directories.IOException
public boolean isInEclipse()
public boolean hasCompletedLoading()
public File getLocation()
public String getProjectPath()
public IOException getLoadError()
public boolean isCanceled()
isCanceled
in interface ICancel
public void onComplete()
onComplete
in interface IBackgroundLoader
public void informEclipse(boolean openInEclipse)
public PhantomRuntime getRuntime() throws IOException
IOException
public boolean isOpenInEditor()
public boolean isOpen()
public void onFileReloaded(int type, String fileName)
onFileReloaded
in interface IReloadListener
public void onCloseEditor()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.