Extension SDK

oracle.jdeveloper.compiler
Class CompilerPage

java.lang.Object
  extended byoracle.ide.addin.AbstractView
      extended byoracle.ide.log.AbstractLogPage
          extended byoracle.ide.log.DefaultLogPage
              extended byoracle.jdeveloper.compiler.CompilerPage
All Implemented Interfaces:
ActiveViewListener, java.util.EventListener, Helpable, LogPage, Observer, Subview, View

public class CompilerPage
extends DefaultLogPage
implements ActiveViewListener, Observer


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, PAGE_ID
 
Fields inherited from class oracle.ide.addin.AbstractView
owner, SEPARATOR, viewListeners, viewSelectionListeners
 
Fields inherited from interface oracle.ide.addin.View
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  void copy(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 finishAsynchronousLogging()
          Finish asynchronous logging
protected  void fixObject(java.lang.Object obj)
          Respond to a the fix command originating from the GUI.
protected  javax.swing.tree.DefaultMutableTreeNode getFileNode(javax.swing.tree.DefaultMutableTreeNode parent, Storage storage)
          Get the file node matching the given storage object
 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 setOffsetMarkTable(java.net.URL url, javax.swing.tree.DefaultMutableTreeNode treeNode)
           
 void startAsynchronousLogging()
          Start asynchronous logging
 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, getContextMenu, getController, getCurrentView, getGUI, getSelectedTreeNode, getTextArea, getTitleName, getTree, logText, removeKeyListener, removeMouseListener, saveToFile, setCurrentView, setModel
 
Methods inherited from class oracle.ide.log.AbstractLogPage
checkCommands, close, getContext, getTabIcon, getTabName, isVisible, requestShow, setOwner, show
 
Methods inherited from class oracle.ide.addin.AbstractView
activate, addViewListener, addViewSelectionListener, deactivate, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getContext, getId, getSelection, getToolbar, loadToolbar, loadToolbar, newId, owner, removeViewListener, removeViewSelectionListener, setId, setOwner, updateTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.ide.addin.View
activate, addViewListener, addViewSelectionListener, deactivate, getId, getSelection, getToolbar, removeViewListener, removeViewSelectionListener, updateTitle
 
Methods inherited from interface oracle.ide.addin.Subview
getContext, owner
 

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.

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.


copy

protected void copy(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:
copy in class DefaultLogPage

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

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 AbstractView

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
See Also:
DefaultLogPage.updateTreeModel(java.util.Collection), DefaultLogPage.logText(java.lang.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)
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

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.

Extension SDK

 

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