public final class PinWatchUISupport extends Object
EditorPin
as the Watch.getPin()
and an implementation
of PinWatchUISupport.ValueProvider
needs to be register via DebuggerServiceRegistration
,
which acts as a supplier of the watch value.
Use PinWatchUISupport.pin(org.netbeans.api.debugger.Watch, java.lang.String)
to pin
the watch into editor where the corresponding EditorPin
points at
and provide valueProviderId
of the corresponding registered
PinWatchUISupport.ValueProvider
which handles the value updates.
Modifier and Type | Class and Description |
---|---|
static interface |
PinWatchUISupport.ValueProvider
Provider of pinned watch value.
|
Modifier and Type | Method and Description |
---|---|
static PinWatchUISupport |
getDefault()
Get the default instance of this class.
|
void |
pin(Watch watch,
String valueProviderId)
Pin the watch into an editor.
|
public static PinWatchUISupport getDefault()
PinWatchUISupport
class.public void pin(Watch watch, String valueProviderId) throws IllegalArgumentException
EditorPin
from Watch.getPin()
and a PinWatchUISupport.ValueProvider
needs to be registered for the provided
valueProviderId
.watch
- A watch to pin at the location determined by the EditorPin
.valueProviderId
- An id of a registered PinWatchUISupport.ValueProvider
.IllegalArgumentException
- is thrown when Watch.getPin()
does not return an EditorPin
, or
when we're not able to find the editor
where EditorPin
points at.