|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.view.View oracle.ide.log.AbstractLogPage oracle.jdeveloper.compiler.ProblemsPage
public class ProblemsPage
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int HIDE_NO_MENUS
public static int HIDE_COPY_MENU
public static int HIDE_SAVE_AS_MENU
public static int HIDE_GOTO_SOURCE_MENU
public static int HIDE_FIX_SOURCE_MENU
public static int HIDE_ALL_MENUS
protected static final int GOTO_SOURCE_CMD_ID
protected static final int FIX_SOURCE_CMD_ID
protected java.awt.event.KeyAdapter keyAdapter
Constructor Detail |
---|
public ProblemsPage()
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.#activateObject(Object)
public ProblemsPage(java.lang.String pageId, java.lang.String pageName, javax.swing.Icon icon)
public ProblemsPage(java.lang.String pageId, java.lang.String pageName, javax.swing.Icon icon, int menuOptions)
public ProblemsPage(ViewId id, javax.swing.Icon icon, boolean addPage, int menuOptions)
public ProblemsPage(ViewId id, javax.swing.Icon icon, boolean addPage)
Method Detail |
---|
public void update(java.lang.Object subject, UpdateMessage change)
Observer
update
in interface Observer
subject
- the subject whose state has changed.change
- what has changed.public java.lang.String getTitleName()
LogPage
getTitleName
in interface LogPage
getTitleName
in class AbstractLogPage
public java.awt.Component getGUI()
getGUI
in class View
protected void saveToFile(Context context)
public Controller getController()
ControllerProvider
Controller
associated with this view.
getController
in interface ControllerProvider
getController
in class AbstractLogPage
public ContextMenu getContextMenu()
getContextMenu
in class View
ContextMenu
, if any.public void clearAll()
clearAll
in interface LogPage
clearAll
in class AbstractLogPage
public void addMouseListener(java.awt.event.MouseListener listener)
addMouseListener
in interface LogPage
addMouseListener
in class AbstractLogPage
listener
- mouse listener responsible for displaying a context menu.public void removeMouseListener(java.awt.event.MouseListener listener)
removeMouseListener
in interface LogPage
removeMouseListener
in class AbstractLogPage
listener
- mouse listener responsible for displaying a context menu.public void addKeyListener(java.awt.event.KeyListener listener)
public void removeKeyListener(java.awt.event.KeyListener listener)
protected void logMsg(java.lang.Object msg)
logMsg
in class AbstractLogPage
msg
- the message to display.#updateTreeModel(Collection)
,
#logText(String)
public void startAsynchronousLogging()
public void cancelAsynchronousLogging()
public void finishAsynchronousLogging()
protected java.lang.String fixMessages(IdeLog.Message m)
protected final java.awt.Component getCurrentView()
protected final void setCurrentView(java.awt.Component view)
protected void fixObject(java.lang.Object obj)
public void activeViewChanged(ActiveViewEvent e)
ActiveViewListener
ActiveViewEvent
will have information about the
view that is becoming active and the view that became inactive.
activeViewChanged
in interface ActiveViewListener
protected void setOffsetMarkTable(java.net.URL url, java.util.Vector messages)
protected void clearUrlOffsetMarkNode(Node node, OffsetMark[] offsetMarks)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |