public static EveryNodeDebugAdapter getInstance() { if (singletonInstance == null) { singletonInstance = new EveryNodeDebugAdapter(); } return singletonInstance; }
protected INodeAdapter createAdapter(INodeNotifier target) { EveryNodeDebugAdapter result = null; result = EveryNodeDebugAdapter.getInstance(); return result; }
public void notifyChanged(INodeNotifier notifier, int eventType, Object changedFeature, Object oldValue, Object newValue, int pos) { if (notifier instanceof IDOMNode) { setModel(((IDOMNode) notifier).getModel()); } Debug.println("notifier: " + notifier + " " + INodeNotifier.EVENT_TYPE_STRINGS[eventType] + " changedFeature: " + changedFeature + " oldValue: " + oldValue + " newValue: " + newValue + " pos: " + pos); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ }