|
Extension SDK 10.1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.compiler.Compiler
oracle.jdeveloper.compiler.JCompiler
The JCompiler manages compiling.
| Field Summary | |
static java.lang.String |
BUILD_PROJECT_CMD
|
static int |
BUILD_PROJECT_CMD_ID
|
static int |
BUILD_SELECTED_CMD_ID
|
static java.lang.String |
BUILD_WORKSPACE_CMD
|
static int |
BUILD_WORKSPACE_CMD_ID
|
static java.lang.String |
CANCEL_BUILD_CMD
|
static int |
CANCEL_BUILD_CMD_ID
|
static java.lang.String |
COMPILER_CONFIG_DATA_KEY
|
static java.lang.String |
MAKE_FOLDER_CMD
|
static int |
MAKE_FOLDER_CMD_ID
|
static java.lang.String |
MAKE_PROJECT_CMD
|
static int |
MAKE_PROJECT_CMD_ID
|
static java.lang.String |
MAKE_SELECTED_CMD
|
static int |
MAKE_SELECTED_CMD_ID
|
static java.lang.String |
MAKE_WORKSPACE_CMD
|
static int |
MAKE_WORKSPACE_CMD_ID
|
| Constructor Summary | |
JCompiler()
Constructor. |
|
| Method Summary | |
boolean |
addBuildSystemListener(BuildSystemListener bsl)
addBuildSystemListener method adds a build system listener instance implementation to the build system, see BuildSystemListener
for more information. |
boolean |
addCopyListener(CopyListener cl)
addCopyListener method adds a copy listener instance implementation to the build system, see CopyListener for more information. |
boolean |
canShutdown()
This method is called by the IDE to confirm that the ide can shutdown |
boolean |
compile(Context context,
boolean rebuild,
boolean wait)
Will compile the specified node. |
boolean |
compile(Context context,
boolean rebuild,
boolean wait,
boolean save)
|
void |
compile(Context context,
boolean rebuild,
PostBuilder postBuild,
boolean save)
compile -- compile the context (may be project, workspace, file, ...) on a background thread and call the specified worker object once compilation is completed with build successful or not as the postBuild method input parameter. |
boolean |
forceRebuildOnProject(JProject prj)
|
LogPage |
getErrorLog()
|
static JCompiler |
getInstance()
The Debugger folder is a singleton class. |
LogPage |
getOutputLog()
get{Output|Error}Log gets the default compiler output/error log. |
java.net.URL |
getURLFromClassName(Context context,
java.lang.String className)
|
boolean |
handleDefaultAction(Context context)
Called when the user double clicks on an item that has a popup menu |
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a View
triggers the execution of a command. |
float |
ideVersion()
This method is called to determine the ide version number for which this feature was implemented. |
void |
initialize()
This method is called by the IDE to request that the feature be initialize |
boolean |
isBusy(Context context)
Will return true if the build system is already busy building and not currently available. |
boolean |
lock(Context context,
boolean wait)
lock/unlock the context (may be project, workspace, file, ...) and return true if the opeartion was successful. |
void |
logOutMsg(java.lang.String msg)
logOutMsg log a message on the default compiler output log |
void |
poppingDown(ContextMenu popup)
|
void |
poppingUp(ContextMenu popup)
Called just before the context menu is popping up. |
void |
registerNavigable(Navigable navigable)
Registers a Navigable as a child of the Compiler
Navigable in the Project Settings Dialog. |
void |
registerTranslator(Translator translator)
Entry point to register compiler translators |
boolean |
removeBuildSystemListener(BuildSystemListener bsl)
removeBuildSystemListener method removes a build system listener instance implementation from the build system, see BuildSystemListener
for more information. |
boolean |
removeCopyListener(CopyListener cl)
removeCopyListener method removes a copy listener instance implementation from the build system, see CopyListener for more information. |
void |
shutdown()
This method is called by the IDE to request that the feature release any resources held before the ide shuts down.. |
void |
stopBuild(Context context)
Will return true if the build system is already busy building and not currently available. |
boolean |
unlock(Context context)
|
void |
unregisterTranslator(Translator translator)
Entry point to remove compiler translators |
boolean |
update(IdeAction action,
Context context)
This method is called when the availability of a specific command needs to be determined. |
void |
update(java.lang.Object observed,
UpdateMessage change)
Notification message. |
float |
version()
This method is called to determine the feature version number, i.e. |
| Methods inherited from class oracle.ide.compiler.Compiler |
getCompiler, setCompiler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MAKE_SELECTED_CMD_ID
public static final java.lang.String MAKE_SELECTED_CMD
public static final int BUILD_SELECTED_CMD_ID
public static final int MAKE_PROJECT_CMD_ID
public static final java.lang.String MAKE_PROJECT_CMD
public static final int BUILD_PROJECT_CMD_ID
public static final java.lang.String BUILD_PROJECT_CMD
public static final int MAKE_WORKSPACE_CMD_ID
public static final java.lang.String MAKE_WORKSPACE_CMD
public static final int BUILD_WORKSPACE_CMD_ID
public static final java.lang.String BUILD_WORKSPACE_CMD
public static final int MAKE_FOLDER_CMD_ID
public static final java.lang.String MAKE_FOLDER_CMD
public static final int CANCEL_BUILD_CMD_ID
public static final java.lang.String CANCEL_BUILD_CMD
public static final java.lang.String COMPILER_CONFIG_DATA_KEY
| Constructor Detail |
public JCompiler()
| Method Detail |
public static JCompiler getInstance()
Debugger folder is a singleton class. This method
gets this folder's single instance.
Debugger folder single instance.
public boolean handleEvent(IdeAction action,
Context context)
View
triggers the execution of a command.
handleEvent in interface Controlleraction - action whose command is to be executed.
public boolean update(IdeAction action,
Context context)
update in interface Controlleraction - the action associated with this command. Call the
action's setEnabled method to set the appropriate
command sensitivity.context - the current context
public void update(java.lang.Object observed,
UpdateMessage change)
Observer
update in interface Observerobserved - the subject whose state has changed.change - what has changed.public boolean forceRebuildOnProject(JProject prj)
public void initialize()
initialize in interface AddinAddinManagerpublic void shutdown()
shutdown in interface Addinpublic boolean canShutdown()
canShutdown in interface Addinpublic float version()
version in interface Addinpublic float ideVersion()
ideVersion in interface Addinpublic void poppingUp(ContextMenu popup)
poppingUp in interface ContextMenuListenerpublic void poppingDown(ContextMenu popup)
poppingDown in interface ContextMenuListenerpublic boolean handleDefaultAction(Context context)
handleDefaultAction in interface ContextMenuListenercontext - the current contextpublic boolean isBusy(Context context)
isBusy in class Compilerpublic void stopBuild(Context context)
public boolean compile(Context context,
boolean rebuild,
boolean wait)
compile in class Compilercontext - -- workspace, project or file to compilerebuild - -- if true, unconditionally rebuild sourceswait - -- if true, wait for compile to terminate
public boolean compile(Context context,
boolean rebuild,
boolean wait,
boolean save)
compile in class Compiler
public void compile(Context context,
boolean rebuild,
PostBuilder postBuild,
boolean save)
Compiler
compile in class Compilercontext - -- workspace, project or file to compilerebuild - -- if true, unconditionally rebuild sourcessave - -- if true, will save files before compiling if the IDE
setting is enabled; if false, will never save files,
regardless of the IDE setting. The compile method
without the save parameter will never save files.
public java.net.URL getURLFromClassName(Context context,
java.lang.String className)
public boolean addCopyListener(CopyListener cl)
CopyListener for more information.
addCopyListener in class Compilercl - -- copy listener to add
public boolean removeCopyListener(CopyListener cl)
CopyListener for more information.
removeCopyListener in class Compilercl - -- copy listener to remove
public boolean addBuildSystemListener(BuildSystemListener bsl)
BuildSystemListener
for more information.
addBuildSystemListener in class Compilerbsl - build system listener to add
public boolean removeBuildSystemListener(BuildSystemListener bsl)
BuildSystemListener
for more information.
removeBuildSystemListener in class Compilerbsl - build system listener to remove
public boolean lock(Context context,
boolean wait)
Compiler
lock in class Compilercontext - -- workspace, project or file to lock/unlockwait - -- if true, wait for compilation to terminate
public boolean unlock(Context context)
unlock in class Compilerpublic LogPage getOutputLog()
Compiler
getOutputLog in class Compilerpublic void logOutMsg(java.lang.String msg)
Compiler
logOutMsg in class Compilermsg - -- msg to print on the logpublic LogPage getErrorLog()
getErrorLog in class Compilerpublic void registerTranslator(Translator translator)
public void unregisterTranslator(Translator translator)
public void registerNavigable(Navigable navigable)
Navigable as a child of the Compiler
Navigable in the Project Settings Dialog.
navigable - The child Navigable to add.
|
Extension SDK | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.