|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.openide.windows.TopComponent
cz.cuni.amis.dash.DashWindow
public class DashWindow
Window that is informing us about debugged plan. It is working in phases: wait for connection - connected - plan recieved - show debugged scene - disconnect.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.openide.windows.TopComponent |
|---|
org.openide.windows.TopComponent.Cloneable, org.openide.windows.TopComponent.Description, org.openide.windows.TopComponent.NodeName, org.openide.windows.TopComponent.OpenActionRegistration, org.openide.windows.TopComponent.Registration, org.openide.windows.TopComponent.Registry |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class org.openide.windows.TopComponent |
|---|
CLOSE_EACH, CLOSE_LAST, PERSISTENCE_ALWAYS, PERSISTENCE_NEVER, PERSISTENCE_ONLY_OPENED, PROP_CLOSING_DISABLED, PROP_DND_COPY_DISABLED, PROP_DRAGGING_DISABLED, PROP_KEEP_PREFERRED_SIZE_WHEN_SLIDED_IN, PROP_MAXIMIZATION_DISABLED, PROP_SLIDING_DISABLED, PROP_UNDOCKING_DISABLED |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DashWindow(YaposhEngine engine,
String name)
Create new window displaying the debugged engine. |
|
| Method Summary | |
|---|---|
void |
breakpointAdded(LapBreakpoint breakpoint)
Do nothing, handled by individual presenters |
void |
breakpointRemoved(LapBreakpoint breakpoint)
Do nothing, handled by individual presenters |
protected void |
componentClosed()
Make sure to clean up after window will be closed, disconnect the engine. |
void |
connected()
Change content of the window to info panel saying that we are connected to the engine and waiting for the plan ( planRecieved(java.lang.String, cz.cuni.amis.pogamut.sposh.elements.PoshPlan)). |
void |
disconnected(String message,
boolean error)
When disconnected, display info panel at the top of the window with the message. |
void |
evaluationFinished()
Debugger is about to leave PoshEngine.evaluatePlan(cz.cuni.amis.pogamut.sposh.executor.IWorkExecutor). |
void |
evaluationReached()
When engine reaches evaluation, check if time since last repaint is longer than REDRAW_INTERVAL_MS and if it is, repaint the window. |
int |
getPersistenceType()
Debugger is never persistent |
void |
pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
Notify about path that is about to be fired. |
void |
planRecieved(String name,
cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
We got the plan, create the scene using DashPresenterFactory and
set the window to display it. |
| Methods inherited from class org.openide.windows.TopComponent |
|---|
addNotify, associateLookup, availableModes, cancelRequestAttention, canClose, canClose, close, close, closeNotify, componentActivated, componentDeactivated, componentHidden, componentOpened, componentShowing, getAccessibleContext, getActions, getActivatedNodes, getCloseOperation, getDisplayName, getHelpCtx, getHtmlDisplayName, getIcon, getLookup, getRegistry, getSystemActions, getTabPosition, getUndoRedo, isOpened, isOpened, open, open, openAction, openAtTabPosition, openNotify, preferredID, processKeyBinding, readExternal, requestActive, requestAttention, requestFocus, requestFocusInWindow, requestVisible, setActivatedNodes, setCloseOperation, setDisplayName, setHtmlDisplayName, setIcon, setName, setToolTipText, toFront, writeExternal, writeReplace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DashWindow(YaposhEngine engine,
String name)
connected()).
engine - Debugged engine.name - Display name of top component| Method Detail |
|---|
public void connected()
planRecieved(java.lang.String, cz.cuni.amis.pogamut.sposh.elements.PoshPlan)).
connected in interface IDebugEngineListener
public void planRecieved(String name,
cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
DashPresenterFactory and
set the window to display it. Also start crawlers that will notify
widgets about mapping of FQN to name in PrimitiveInfo through ShedPresenter.
planRecieved in interface IDebugEngineListenername - New display name of the windowplan - Plan to displaypublic void evaluationReached()
REDRAW_INTERVAL_MS and if it is, repaint the window.
evaluationReached in interface IDebugEngineListenerpublic void pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
IDebugEngineListener
pathReached in interface IDebugEngineListenerpublic void evaluationFinished()
IDebugEngineListenerPoshEngine.evaluatePlan(cz.cuni.amis.pogamut.sposh.executor.IWorkExecutor).
evaluationFinished in interface IDebugEngineListenerpublic void breakpointAdded(LapBreakpoint breakpoint)
breakpointAdded in interface IDebugEngineListenerbreakpoint - New breakpointpublic void breakpointRemoved(LapBreakpoint breakpoint)
breakpointRemoved in interface IDebugEngineListenerbreakpoint - removed breakpoint
public void disconnected(String message,
boolean error)
disconnected in interface IDebugEngineListenermessage - Optional message to display the user.error - Was debugger disconnected because of an error or was it OK.protected void componentClosed()
componentClosed in class org.openide.windows.TopComponentpublic int getPersistenceType()
getPersistenceType in class org.openide.windows.TopComponentTopComponent.PERSISTENCE_NEVER.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||