diff options
author | Uwe Stieber | 2012-02-12 14:29:41 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-02-12 14:29:41 +0000 |
commit | 85317552643627cb37c37456f9776d010724a3a5 (patch) | |
tree | cc277b8c22eea64a74404aff50ee11abbc814ee4 /target_explorer/plugins/org.eclipse.tcf.te.runtime.model | |
parent | fa2c1e67395a966938100d3f3d55274629a14e83 (diff) | |
download | org.eclipse.tcf-85317552643627cb37c37456f9776d010724a3a5.tar.gz org.eclipse.tcf-85317552643627cb37c37456f9776d010724a3a5.tar.xz org.eclipse.tcf-85317552643627cb37c37456f9776d010724a3a5.zip |
Target Explorer: Fix asserts and typos in javadoc
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.model')
2 files changed, 18 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ModelNode.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ModelNode.java index deb6ca238..356bc9b5d 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ModelNode.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ModelNode.java @@ -176,7 +176,14 @@ public class ModelNode extends PropertiesContainer implements IModelNode, IModel @Override protected boolean dropEvent(Object source, String key, Object oldValue, Object newValue) { boolean drop = super.dropEvent(source, key, oldValue, newValue); - if (drop) return true; + if (drop || PROPERTY_IS_GHOST.equals(key)) { + if (CoreBundleActivator.getTraceHandler().isSlotEnabled(0, ITraceIds.TRACE_EVENTS)) { + CoreBundleActivator.getTraceHandler().trace("Drop change event (hidden property)\n\t\t" + //$NON-NLS-1$ + "for eventId = " + key, //$NON-NLS-1$ + 0, ITraceIds.TRACE_EVENTS, IStatus.WARNING, this); + } + return true; + } // If the parent is null, it must be allowed to fire change events explicitly if (parent == null && suppressEventsOnNullParent) { diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/interfaces/IModelNode.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/interfaces/IModelNode.java index 0e727f6ad..01a96ab6a 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/interfaces/IModelNode.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/interfaces/IModelNode.java @@ -60,6 +60,16 @@ public interface IModelNode extends IPropertiesContainer, ISchedulingRule { public static final String PROPERTY_ERROR = "error"; //$NON-NLS-1$ /** + * Property: Model node is a ghost node. Ghost nodes may be used to add + * elements to the model without "committing" them. The creator + * of the ghost node is fully responsible for managing the life + * cycle of this node types! + * <p> + * <i>Change notifications for this property are suppressed!</i> + */ + public static final String PROPERTY_IS_GHOST = "isghost"; //$NON-NLS-1$ + + /** * Returns the parent model node. * * @return The model parent |