|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
org.eclipse.jdt.debug.ui.breakpoints.JavaBreakpointConditionEditor
public final class JavaBreakpointConditionEditor
Controls to edit a breakpoint's conditional expression, condition enabled state,
and suspend policy (suspend when condition is true
or when the value of the
conditional expression changes).
The controls are intended to be embedded in a composite provided by the client - for
example, in a dialog. Clients must call createControl(Composite)
as the first
life cycle method after instantiation. Clients may then call setInput(Object)
with the breakpoint object to be displayed/edited. Changes are not applied to the
breakpoint until doSave()
is called. The method isDirty()
may be used
to determine if any changes have been made in the editor, and getStatus()
may
be used to determine if the editor settings are valid. Clients can register for
property change notification (addPropertyListener(IPropertyListener)
). The editor
will fire a property change each time a setting is modified. The same editor can be
used to display different breakpoints by calling setInput(Object)
with different
breakpoint objects.
Field Summary | |
---|---|
static int |
PROP_CONDITION
Property id for breakpoint condition expression. |
static int |
PROP_CONDITION_ENABLED
Property id for breakpoint condition enabled state. |
static int |
PROP_CONDITION_SUSPEND_POLICY
Property id for breakpoint condition suspend policy. |
Constructor Summary | |
---|---|
JavaBreakpointConditionEditor()
Creates a new Java breakpoint condition editor. |
|
JavaBreakpointConditionEditor(IDialogSettings dialogSettings)
Creates a new Java breakpoint condition editor with a history drop-down list. |
Method Summary | |
---|---|
void |
addPropertyListener(IPropertyListener listener)
Adds the given property listener to this editor. |
Control |
createControl(Composite parent)
Creates the condition editor widgets and returns the top level control. |
protected void |
dispose()
Disposes this editor and its controls. |
void |
doSave()
Saves current settings to the breakpoint being edited. |
Object |
getInput()
Returns the breakpoint being edited or null if none. |
IStatus |
getStatus()
Returns a status describing whether the condition editor is in a valid state. |
boolean |
isDirty()
Returns whether the editor needs saving. |
void |
removePropertyListener(IPropertyListener listener)
Removes the property listener from this editor. |
void |
setFocus()
Gives focus to an appropriate control in the editor. |
void |
setInput(Object input)
Sets the breakpoint to editor or null if none. |
void |
setMnemonics(boolean mnemonics)
Sets whether mnemonics should be displayed in editor controls. |
Methods inherited from class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor |
---|
firePropertyChange, isMnemonics, processMnemonics, setDirty, setDirty, suppressPropertyChanges |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PROP_CONDITION
public static final int PROP_CONDITION_ENABLED
public static final int PROP_CONDITION_SUSPEND_POLICY
Constructor Detail |
---|
public JavaBreakpointConditionEditor()
public JavaBreakpointConditionEditor(IDialogSettings dialogSettings)
dialogSettings
- the dialog settings for the condition history or null
to
use the default settings (i.e. those used by JDT Debug)Method Detail |
---|
public void addPropertyListener(IPropertyListener listener)
addPropertyListener
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
listener
- listenerpublic void removePropertyListener(IPropertyListener listener)
removePropertyListener
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
listener
- listenerpublic void setInput(Object input) throws CoreException
null
if none.
setInput
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
input
- breakpoint or null
CoreException
- if unable to access breakpoint attributespublic Control createControl(Composite parent)
createControl
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
parent
- composite to embed the editor controls in
protected void dispose()
dispose
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
public void setFocus()
setFocus
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
public void doSave() throws CoreException
doSave
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
CoreException
- if unable to update the breakpoint.public IStatus getStatus()
getStatus
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
public boolean isDirty()
isDirty
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
public void setMnemonics(boolean mnemonics)
createControl(Composite)
is called. By default, mnemonics are displayed.
setMnemonics
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
mnemonics
- whether to display mnemonicspublic Object getInput()
null
if none.
getInput
in class org.eclipse.jdt.internal.debug.ui.breakpoints.AbstractJavaBreakpointEditor
null
|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.