Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdeveloper.compiler
Class CompilerPage

java.lang.Object
  extended by oracle.ide.view.View
      extended by oracle.ide.log.AbstractLogPage
          extended by oracle.ide.log.DefaultLogPage
              extended by oracle.jdeveloper.compiler.CompilerPage
All Implemented Interfaces:
java.util.EventListener, ControllerProvider, Helpable, LogPage, Observer, ActiveViewListener

public class CompilerPage
extends DefaultLogPage
implements ActiveViewListener, Observer


Nested Class Summary
protected static class CompilerPage.MsgTreeNode
           
 
Field Summary
 
Fields inherited from class oracle.ide.log.DefaultLogPage
FIX_SOURCE_CMD_ID, GOTO_SOURCE_CMD_ID, HIDE_ALL_MENUS, HIDE_COPY_MENU, HIDE_FIX_SOURCE_MENU, HIDE_GOTO_SOURCE_MENU, HIDE_NO_MENUS, HIDE_SAVE_AS_MENU, keyAdapter, mouseAdapter
 
Fields inherited from class oracle.ide.view.View
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP
 
Constructor Summary
CompilerPage()
           
CompilerPage(java.lang.String pageId, java.lang.String pageName, javax.swing.Icon icon)
           
CompilerPage(java.lang.String pageId, java.lang.String pageName, javax.swing.Icon icon, int menuOptions)
           
 
Method Summary
protected  void activateObject(java.lang.Object obj)
          Respond to a message object activation originating from the GUI.
 void activeViewChanged(ActiveViewEvent e)
          This method is called every time a view becomes the active view.
 void cancelAsynchronousLogging()
          Cancel asynchronous logging immediately.
protected  boolean canFixObject(javax.swing.tree.DefaultMutableTreeNode node)
          Return true if the violation associated with the node can be fixed.
 void clearAll()
          Remove all messages from the GUI.
protected  void clearUrlOffsetMarkNode(Node node, OffsetMark[] offsetMarks)
           
protected  void clearUrlOffsetMarkTable()
           
protected  javax.swing.JTree createTree()
           
 void finishAsynchronousLogging()
          Finish asynchronous logging
protected  java.lang.String fixMessages(IdeLog.Message m)
          For all messages, remove non printable characters and for partially used import warnings, slightly modify the message to guide the user how to easily fix the message.
protected  void fixObject(java.lang.Object obj)
          Respond to a the fix command originating from the GUI.
 Controller getController()
          Get the Controller associated with this view.
protected  javax.swing.tree.DefaultMutableTreeNode getFileNode(javax.swing.tree.DefaultMutableTreeNode parent, Storage storage, boolean insert)
          Get the file node matching the given storage object
protected  java.net.URL getFileStorageURL(Storage storage)
           
 HelpInfo getHelpInfo()
           
protected  javax.swing.Icon getLeafIcon(IdeLog.Message msg)
          getLeafIcon will return the icon that must be used in the leaf tree node of the JTree.
 java.lang.String getToolTip()
          Get the tooltip to display when this page is tabbed.
 boolean isShowingTree()
          Determine if the log page is showing the tree view
 void log(java.lang.Object msg)
          Display the specified msg.
protected  void logMsg(java.lang.Object msg)
          Display a message in the GUI.
protected  void setCreateProjectNodes(boolean value)
          Set to true if the tree hierarchy should create nodes for projects; false otherwise
protected  void setCreateWorkspaceNodes(boolean value)
          Set to true if the tree hierarchy should create nodes for workspaces; false otherwise.
protected  void setOffsetMarkTable(java.net.URL url, javax.swing.tree.DefaultMutableTreeNode treeNode)
           
 void startAsynchronousLogging()
          Start asynchronous logging
protected  java.lang.String treeNodeToString(java.lang.Object treeNode)
          Copy the contents of the object to the clipboard, the message displayed in the tree might be slightly modified, the one we are getting here is the original unmodified version.
 void update(java.lang.Object subject, UpdateMessage change)
          Notification message.
protected  void updateTreeModel(java.util.Collection message)
          Update the model of the JTree based on the new Collection message object.
 
Methods inherited from class oracle.ide.log.DefaultLogPage
addKeyListener, addMouseListener, forceResizeNotification, getContextMenu, getCurrentView, getGUI, getSelectedTreeNode, getTextArea, getTitleName, getTree, logText, removeKeyListener, removeMouseListener, saveToFile, setCurrentView, setModel
 
Methods inherited from class oracle.ide.log.AbstractLogPage
close, getBottomComponent, getLogPageView, getTabIcon, getTabName, getTopComponent, isDisplayComponentScrollable, isVisible, log, logQuietly, requestShow, requestShow, setOwner, show, tabNameUpdated
 
Methods inherited from class oracle.ide.view.View
activate, addViewListener, addViewSelectionListener, addViewStateListener, deactivate, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getContext, getId, getSelection, getSelectionFromUI, getToolbar, getViewWithoutDecoration, loadLayout, loadManifestToolbar, loadManifestToolbar, newId, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, saveLayout, scheduleUpdateSelection, setId, setOwner, setToolbarVisible, toString, updateSelection, updateSelectionImpl, updateTitle, updateToolbarActions, updateVisibleActions, updateVisibleActions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompilerPage

public CompilerPage()

CompilerPage

public CompilerPage(java.lang.String pageId,
                    java.lang.String pageName,
                    javax.swing.Icon icon,
                    int menuOptions)

CompilerPage

public CompilerPage(java.lang.String pageId,
                    java.lang.String pageName,
                    javax.swing.Icon icon)
Method Detail

log

public void log(java.lang.Object msg)
Description copied from class: AbstractLogPage
Display the specified msg. This method first makes sure that the page is visible and then calls the logMsg method to do the actual displaying of the message. Subclasses should not override this method. Instead they should override the logMsgmethod.

Specified by:
log in interface LogPage
Overrides:
log in class AbstractLogPage
Parameters:
msg - the message to display.

getController

public Controller getController()
Description copied from interface: ControllerProvider
Get the Controller associated with this view.

Specified by:
getController in interface ControllerProvider
Overrides:
getController in class DefaultLogPage
Returns:
the Controller associated with this view.

setCreateWorkspaceNodes

protected void setCreateWorkspaceNodes(boolean value)
Set to true if the tree hierarchy should create nodes for workspaces; false otherwise.

Parameters:
value -

setCreateProjectNodes

protected void setCreateProjectNodes(boolean value)
Set to true if the tree hierarchy should create nodes for projects; false otherwise

Parameters:
value -

getLeafIcon

protected javax.swing.Icon getLeafIcon(IdeLog.Message msg)
getLeafIcon will return the icon that must be used in the leaf tree node of the JTree.


treeNodeToString

protected java.lang.String treeNodeToString(java.lang.Object treeNode)
Copy the contents of the object to the clipboard, the message displayed in the tree might be slightly modified, the one we are getting here is the original unmodified version.

Overrides:
treeNodeToString in class DefaultLogPage
Parameters:
treeNode - the userdata of a tree node.
Returns:
a human readable string representation of the data stored in the node.

fixMessages

protected java.lang.String fixMessages(IdeLog.Message m)
For all messages, remove non printable characters and for partially used import warnings, slightly modify the message to guide the user how to easily fix the message. TBD: This will not work for NLS, it will need to be done differently but it was worth inserting that temporary hack NOTE that nothing bad will happen on non-english version, the method will simply return the original string


getFileStorageURL

protected java.net.URL getFileStorageURL(Storage storage)

fixObject

protected void fixObject(java.lang.Object obj)
Description copied from class: DefaultLogPage
Respond to a the fix command originating from the GUI. Default implementation does nothing.

Overrides:
fixObject in class DefaultLogPage

canFixObject

protected boolean canFixObject(javax.swing.tree.DefaultMutableTreeNode node)
Description copied from class: DefaultLogPage
Return true if the violation associated with the node can be fixed. Default return value is false.

Overrides:
canFixObject in class DefaultLogPage

createTree

protected javax.swing.JTree createTree()
Overrides:
createTree in class DefaultLogPage

activateObject

protected void activateObject(java.lang.Object obj)
Description copied from class: DefaultLogPage
Respond to a message object activation originating from the GUI. Default implementation does nothing.

Overrides:
activateObject in class DefaultLogPage

getHelpInfo

public HelpInfo getHelpInfo()
Specified by:
getHelpInfo in interface Helpable
Overrides:
getHelpInfo in class View

logMsg

protected void logMsg(java.lang.Object msg)
Description copied from class: DefaultLogPage
Display a message in the GUI. If the message provided is a Collection, the JTree will be set as the current view and updateTreeModel will be called to allow the setting of a new TreeModel. Otherwise, logText will be called with the result of the message's toString() method.

Overrides:
logMsg in class DefaultLogPage
Parameters:
msg - the message to display.
See Also:
DefaultLogPage.updateTreeModel(Collection), DefaultLogPage.logText(String)

startAsynchronousLogging

public void startAsynchronousLogging()
Start asynchronous logging


cancelAsynchronousLogging

public void cancelAsynchronousLogging()
Cancel asynchronous logging immediately. Does not display any messages that may be in the queue.


finishAsynchronousLogging

public void finishAsynchronousLogging()
Finish asynchronous logging


isShowingTree

public boolean isShowingTree()
Determine if the log page is showing the tree view

Returns:
true if the log page is showing the tree, false otherwise

getFileNode

protected javax.swing.tree.DefaultMutableTreeNode getFileNode(javax.swing.tree.DefaultMutableTreeNode parent,
                                                              Storage storage,
                                                              boolean insert)
Get the file node matching the given storage object

Parameters:
parent - the parent node to search
storage - the storage to search for
Returns:
the file node, or null if not found

updateTreeModel

protected void updateTreeModel(java.util.Collection message)
Description copied from class: DefaultLogPage
Update the model of the JTree based on the new Collection message object. Default implementation creates and invokes a Runnable to construct a new DefaultTreeModel containing DefaultMutableTreeNode instances for each element in the Collection where the Collection element is set as the user data of the DefaultMutableTreeNode instance.

Overrides:
updateTreeModel in class DefaultLogPage

setOffsetMarkTable

protected void setOffsetMarkTable(java.net.URL url,
                                  javax.swing.tree.DefaultMutableTreeNode treeNode)

clearUrlOffsetMarkNode

protected void clearUrlOffsetMarkNode(Node node,
                                      OffsetMark[] offsetMarks)

clearUrlOffsetMarkTable

protected void clearUrlOffsetMarkTable()

clearAll

public void clearAll()
Description copied from class: DefaultLogPage
Remove all messages from the GUI.

Specified by:
clearAll in interface LogPage
Overrides:
clearAll in class DefaultLogPage

getToolTip

public java.lang.String getToolTip()
Description copied from interface: LogPage
Get the tooltip to display when this page is tabbed.

Specified by:
getToolTip in interface LogPage
Overrides:
getToolTip in class AbstractLogPage
Returns:
the tooltip to display when tabbed.

activeViewChanged

public void activeViewChanged(ActiveViewEvent e)
Description copied from interface: ActiveViewListener
This method is called every time a view becomes the active view. The ActiveViewEvent will have information about the view that is becoming active and the view that became inactive.

Specified by:
activeViewChanged in interface ActiveViewListener

update

public void update(java.lang.Object subject,
                   UpdateMessage change)
Description copied from interface: Observer
Notification message. Subjects call this method when they notify their observers that the subjects state has changed.

Specified by:
update in interface Observer
Parameters:
subject - the subject whose state has changed.
change - what has changed.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.