public interface ITargetLocationUpdater
ITargetLocation
to this interface.Modifier and Type | Field and Description |
---|---|
static int |
STATUS_CODE_NO_CHANGE
Status code that can be set on an OK status returned by
update(ITargetDefinition, ITargetLocation, IProgressMonitor)
If this status code is set, the target will not resolve the target after the update completes. |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdate(ITargetDefinition target,
ITargetLocation targetLocation)
Returns whether this updater can update the given target location.
|
IStatus |
update(ITargetDefinition target,
ITargetLocation targetLocation,
IProgressMonitor monitor)
Updates the given target location.
|
static final int STATUS_CODE_NO_CHANGE
update(ITargetDefinition, ITargetLocation, IProgressMonitor)
If this status code is set, the target will not resolve the target after the update completes.
boolean canUpdate(ITargetDefinition target, ITargetLocation targetLocation)
target
- the target definition being editedtargetLocation
- the target location to updateIStatus update(ITargetDefinition target, ITargetLocation targetLocation, IProgressMonitor monitor)
STATUS_CODE_NO_CHANGE
. If a non-OK status is returned
the message will be presented to the user.
This method may be called from a non-UI thread. A progress monitor is provided.
target
- the target definition being editedtargetLocation
- the target location to updatemonitor
- progress monitorSTATUS_CODE_NO_CHANGE
to indicate everything is up to date
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.