Skip navigation links

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

E13403-06


oracle.jdeveloper.compiler
Class ProblemsPage

java.lang.Object
  extended by oracle.ide.view.View
      extended by oracle.ide.log.AbstractLogPage
          extended by oracle.jdeveloper.compiler.ProblemsPage

All Implemented Interfaces:
java.util.EventListener, ControllerProvider, Helpable, LogPage, Observer, ActiveViewListener

public class ProblemsPage
extends AbstractLogPage
implements ActiveViewListener, Observer

This implementation of LogPage supports the logging of simple text messages. When logging a simple text message, it is written to a NiceTable within a JScrollPane.


Nested Class Summary
protected static class ProblemsPage.MsgWrapper
           

 

Field Summary
protected static int FIX_SOURCE_CMD_ID
           
protected static int GOTO_SOURCE_CMD_ID
          Go To Source command identifier.
static int HIDE_ALL_MENUS
           
static int HIDE_COPY_MENU
           
static int HIDE_FIX_SOURCE_MENU
           
static int HIDE_GOTO_SOURCE_MENU
           
static int HIDE_NO_MENUS
          Use these constants to indicate which popup menu items are hidden.
static int HIDE_SAVE_AS_MENU
           
protected  java.awt.event.KeyAdapter keyAdapter
           

 

Fields inherited from class oracle.ide.view.View
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP

 

Constructor Summary
ProblemsPage()
          Constructor.
ProblemsPage(java.lang.String pageId, java.lang.String pageName, javax.swing.Icon icon)
           
ProblemsPage(java.lang.String pageId, java.lang.String pageName, javax.swing.Icon icon, int menuOptions)
           
ProblemsPage(ViewId id, javax.swing.Icon icon, boolean addPage)
           
ProblemsPage(ViewId id, javax.swing.Icon icon, boolean addPage, int menuOptions)
           

 

Method Summary
 void activeViewChanged(ActiveViewEvent e)
          This method is called every time a view becomes the active view.
 void addKeyListener(java.awt.event.KeyListener listener)
          Add a KeyListener to the GUI.
 void addMouseListener(java.awt.event.MouseListener listener)
          Add a MouseListener to the GUI.
 void cancelAsynchronousLogging()
           
 void clearAll()
          Remove all messages from the GUI.
protected  void clearUrlOffsetMarkNode(Node node, OffsetMark[] offsetMarks)
           
 void finishAsynchronousLogging()
          Finish asynchronous logging
protected  java.lang.String fixMessages(IdeLog.Message m)
           
protected  void fixObject(java.lang.Object obj)
          Respond to a the fix command originating from the GUI.
 ContextMenu getContextMenu()
          Gets the ContextMenu object, if any, managed by this instance.
 Controller getController()
          Get the Controller associated with this view.
protected  java.awt.Component getCurrentView()
          Get the object currently being displayed within the JScrollPane.
 java.awt.Component getGUI()
          Get the GUI to be used to display the state of this page.
 java.lang.String getTitleName()
          Get the title to be displayed in the log window hosting this page.
protected  void logMsg(java.lang.Object msg)
          Display a message in the GUI.
 void removeKeyListener(java.awt.event.KeyListener listener)
          Remove a KeyListener from the GUI.
 void removeMouseListener(java.awt.event.MouseListener listener)
          Remove a MouseListener from the GUI.
protected  void saveToFile(Context context)
           
protected  void setCurrentView(java.awt.Component view)
          Set the object to be currently displayed within the JScrollPane.
protected  void setOffsetMarkTable(java.net.URL url, java.util.Vector messages)
           
 void startAsynchronousLogging()
           
 void update(java.lang.Object subject, UpdateMessage change)
          Notification message.

 

Methods inherited from class oracle.ide.log.AbstractLogPage
close, getBottomComponent, getLogPageView, getTabIcon, getTabName, getToolTip, getTopComponent, isDisplayComponentScrollable, isVisible, log, 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, getHelpInfo, 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

 

Field Detail

HIDE_NO_MENUS

public static int HIDE_NO_MENUS
Use these constants to indicate which popup menu items are hidden.

HIDE_COPY_MENU

public static int HIDE_COPY_MENU

HIDE_SAVE_AS_MENU

public static int HIDE_SAVE_AS_MENU

HIDE_GOTO_SOURCE_MENU

public static int HIDE_GOTO_SOURCE_MENU

HIDE_FIX_SOURCE_MENU

public static int HIDE_FIX_SOURCE_MENU

HIDE_ALL_MENUS

public static int HIDE_ALL_MENUS

GOTO_SOURCE_CMD_ID

protected static final int GOTO_SOURCE_CMD_ID
Go To Source command identifier.

FIX_SOURCE_CMD_ID

protected static final int FIX_SOURCE_CMD_ID

keyAdapter

protected java.awt.event.KeyAdapter keyAdapter

Constructor Detail

ProblemsPage

public ProblemsPage()
Constructor. Initializes the JTextArea and the JTree. The JTree is set to single selection and its display root node is set to false. A default MouseAdapter and KeyAdapter are added as listeners which calls the activateObject method whenever the user double clicks or type enter on a TreeNode in the JTree.
Parameters:
id - a unique id for this log page view.
icon - the icon to use for this log page. May be null.
addPage - whether to add the page to the log manager. If true then LogManager.getLogManager().addPage( this ) will be called in this constructor implementation. If false the page must be registered separately.
menuOptions - a bit mask specifying which context menu items to hide. May be any combination of HIDE_COPY_MENU, HIDE_SAVE_AS_MENU HIDE_GOTO_SOURCE_MENU, HIDE_FIX_SOURCE_MENU. HIDE_NO_MENUS specifies that all menu items should be present. HIDE_ALL_MENUS specifies that all menu items should be hidden.
See Also:
#activateObject(Object)

ProblemsPage

public ProblemsPage(java.lang.String pageId,
                    java.lang.String pageName,
                    javax.swing.Icon icon)

ProblemsPage

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

ProblemsPage

public ProblemsPage(ViewId id,
                    javax.swing.Icon icon,
                    boolean addPage,
                    int menuOptions)

ProblemsPage

public ProblemsPage(ViewId id,
                    javax.swing.Icon icon,
                    boolean addPage)

Method Detail

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.

getTitleName

public java.lang.String getTitleName()
Description copied from interface: LogPage
Get the title to be displayed in the log window hosting this page.
Specified by:
getTitleName in interface LogPage
Overrides:
getTitleName in class AbstractLogPage
Returns:
the title to display in the host's title bar.

getGUI

public java.awt.Component getGUI()
Get the GUI to be used to display the state of this page.
Specified by:
getGUI in class View
Returns:
the root graphical user interface component.

saveToFile

protected void saveToFile(Context context)

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 AbstractLogPage
Returns:
the Controller associated with this view.

getContextMenu

public ContextMenu getContextMenu()
Gets the ContextMenu object, if any, managed by this instance.
Overrides:
getContextMenu in class View
Returns:
the ContextMenu, if any.

clearAll

public void clearAll()
Remove all messages from the GUI.
Specified by:
clearAll in interface LogPage
Overrides:
clearAll in class AbstractLogPage

addMouseListener

public void addMouseListener(java.awt.event.MouseListener listener)
Add a MouseListener to the GUI.
Specified by:
addMouseListener in interface LogPage
Overrides:
addMouseListener in class AbstractLogPage
Parameters:
listener - mouse listener responsible for displaying a context menu.

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener listener)
Remove a MouseListener from the GUI.
Specified by:
removeMouseListener in interface LogPage
Overrides:
removeMouseListener in class AbstractLogPage
Parameters:
listener - mouse listener responsible for displaying a context menu.

addKeyListener

public void addKeyListener(java.awt.event.KeyListener listener)
Add a KeyListener to the GUI.

removeKeyListener

public void removeKeyListener(java.awt.event.KeyListener listener)
Remove a KeyListener from the GUI.

logMsg

protected void logMsg(java.lang.Object msg)
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 AbstractLogPage
Parameters:
msg - the message to display.
See Also:
#updateTreeModel(Collection), #logText(String)

startAsynchronousLogging

public void startAsynchronousLogging()

cancelAsynchronousLogging

public void cancelAsynchronousLogging()

finishAsynchronousLogging

public void finishAsynchronousLogging()
Finish asynchronous logging

fixMessages

protected java.lang.String fixMessages(IdeLog.Message m)

getCurrentView

protected final java.awt.Component getCurrentView()
Get the object currently being displayed within the JScrollPane.

setCurrentView

protected final void setCurrentView(java.awt.Component view)
Set the object to be currently displayed within the JScrollPane.

fixObject

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

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

setOffsetMarkTable

protected void setOffsetMarkTable(java.net.URL url,
                                  java.util.Vector messages)

clearUrlOffsetMarkNode

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

Skip navigation links

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

E13403-06


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