Package org.aspectj.ajde
Klasse Ajde
java.lang.Object
org.aspectj.ajde.Ajde
Singleton class used to initialize the Ajde ui as well as the properties required to run the compiler. Users must call
"Ajde.init(...)" before doing anything else. There are getter methods for the various properties that are set in the
initialization.
This also defines the factory for getting new AjCompiler instances.
- Autor:
- Mik Kersten, Andy Clement
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
Ajde()
This class can only be constructured by itself (as a singleton) or by sub-classes. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetCompilerForConfigFile
(String configFile) If the provided configFile is the same as the id for the last compiler then returns that, otherwise clears the state for the saved compiler and creates a new one for the provided configFilestatic Ajde
getModel()
getModelForConfigFile
(String configFile) void
init
(ICompilerConfiguration compilerConfig, IUIBuildMessageHandler uiBuildMessageHandler, IBuildProgressMonitor monitor, EditorAdapter editorAdapter, IdeUIAdapter ideUIAdapter, IconRegistry iconRegistry, Frame rootFrame, IRuntimeProperties runtimeProperties, boolean useFileView) Initializes the ajde ui and sets up the compilerboolean
void
runBuildInDifferentThread
(String configFile, boolean buildFresh) Set the build off in a different thread.void
runBuildInSameThread
(String configFile, boolean buildFresh) Set the build off in the same threadUtility to run the project main class from the project properties in a new VM.Utility to run the project main class from the project properties in the same VM using a class loader populated with the classpath and output path or jar.void
-
Felddetails
-
INSTANCE
-
-
Konstruktordetails
-
Ajde
protected Ajde()This class can only be constructured by itself (as a singleton) or by sub-classes.
-
-
Methodendetails
-
getModel
-
init
public void init(ICompilerConfiguration compilerConfig, IUIBuildMessageHandler uiBuildMessageHandler, IBuildProgressMonitor monitor, EditorAdapter editorAdapter, IdeUIAdapter ideUIAdapter, IconRegistry iconRegistry, Frame rootFrame, IRuntimeProperties runtimeProperties, boolean useFileView) Initializes the ajde ui and sets up the compiler -
showOptionsFrame
public void showOptionsFrame() -
isInitialized
public boolean isInitialized()- Gibt zurück:
- true if init(..) has been run, false otherwise
-
runInSameVM
Utility to run the project main class from the project properties in the same VM using a class loader populated with the classpath and output path or jar. Errors are logged to the ErrorHandler.- Gibt zurück:
- Thread running with process, or null if unable to start
-
runInNewVM
Utility to run the project main class from the project properties in a new VM. Errors are logged to the ErrorHandler.- Gibt zurück:
- LangUtil.ProcessController running with process, or null if unable to start
-
runBuildInSameThread
Set the build off in the same thread- Parameter:
configFile
-buildFresh
- - true if want to do a full build, false otherwise
-
runBuildInDifferentThread
Set the build off in a different thread. Would need to set the build off in a different thread if using a swing application to display the build progress.- Parameter:
configFile
-buildFresh
- - true if want to do a full build, false otherwise
-
getDefault
- Gibt zurück:
- the singleton instance
-
getViewManager
- Gibt zurück:
- the BrowserViewManager
-
getRootFrame
- Gibt zurück:
- the main frame
-
getOptionsFrame
- Gibt zurück:
- the parent frame for the options panel
-
getIdeUIAdapter
- Gibt zurück:
- the IdeUIAdapter
-
getEditorAdapter
- Gibt zurück:
- the EditorAdapter
-
getBuildConfigEditor
- Gibt zurück:
- the TreeViewBuildConfigEditor
-
getFileStructurePanel
- Gibt zurück:
- the StructureViewPanel
-
getIconRegistry
- Gibt zurück:
- the IconRegistry
-
getStructureViewManager
- Gibt zurück:
- the StructureViewManager
-
getStructureSearchManager
- Gibt zurück:
- the StructureSearchManager
-
getBuildConfigManager
- Gibt zurück:
- the BuildConfigManager
-
getCompilerConfig
- Gibt zurück:
- the ICompilerConfiguration
-
getMessageHandler
- Gibt zurück:
- the IUIBuildMessageHandler
-
getBuildProgressMonitor
- Gibt zurück:
- the IBuildProgressMonitor
-
getCompilerForConfigFile
If the provided configFile is the same as the id for the last compiler then returns that, otherwise clears the state for the saved compiler and creates a new one for the provided configFile- Parameter:
configFile
-- Gibt zurück:
- the AjCompiler with the id of the given configFile
-
getModelForConfigFile
-