mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +02:00
Improved description of checkUpdate()
This commit is contained in:
parent
dc245fce09
commit
57943f1c5d
1 changed files with 18 additions and 4 deletions
|
@ -61,10 +61,24 @@ abstract public class AbstractVMNode implements IVMNode {
|
||||||
protected boolean isDisposed() {
|
protected boolean isDisposed() {
|
||||||
return fDisposed;
|
return fDisposed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience method that returns a token value in case when the services
|
* Checks whether there are any fundamental roadblocks which will prevent
|
||||||
* that the layout node depends on, are not available.
|
* this request from being serviced. The base implementation simply checks
|
||||||
|
* to see if the request has been canceled or if this node has been
|
||||||
|
* disposed. Subclasses should override this if it can do additional checks,
|
||||||
|
* for example check that needed services are still available. Overrides
|
||||||
|
* should probably call the base implementation first; if the base
|
||||||
|
* determines the request is a no-go, there's no point in the subclass doing
|
||||||
|
* any further checking.
|
||||||
|
*
|
||||||
|
* <p>
|
||||||
|
* If a roadblock is found, the implementation should give the update
|
||||||
|
* request some appropriate default result (if applicable) and call its
|
||||||
|
* <code>done</code> method.
|
||||||
|
*
|
||||||
|
* @param update the update request
|
||||||
|
* @return false if a roadblock is found, otherwise true
|
||||||
*/
|
*/
|
||||||
protected boolean checkUpdate(IViewerUpdate update) {
|
protected boolean checkUpdate(IViewerUpdate update) {
|
||||||
if (update.isCanceled()) {
|
if (update.isCanceled()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue