Author: scabanovich
Date: 2007-10-25 12:11:26 -0400 (Thu, 25 Oct 2007)
New Revision: 4517
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/SelectionNotifier.java
Log:
JBIDE-1184
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/SelectionNotifier.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/SelectionNotifier.java 2007-10-25
16:06:10 UTC (rev 4516)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/SelectionNotifier.java 2007-10-25
16:11:26 UTC (rev 4517)
@@ -12,12 +12,13 @@
import java.util.ArrayList;
+import org.eclipse.jface.viewers.IPostSelectionProvider;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.SelectionChangedEvent;
-public class SelectionNotifier implements ISelectionProvider, ISelectionChangedListener
{
+public class SelectionNotifier implements ISelectionProvider, ISelectionChangedListener,
IPostSelectionProvider {
private ArrayList<ISelectionChangedListener> listeners = new
ArrayList<ISelectionChangedListener>(3);
private ArrayList<ISelectionChangedListener> fires = new
ArrayList<ISelectionChangedListener>(3);
private SelectionChangedEvent event;
@@ -62,4 +63,14 @@
for (int i=0;i<fires.size();++i)
((ISelectionChangedListener)fires.get(i)).selectionChanged(event);
fires.clear();
}
+
+ public void addPostSelectionChangedListener(
+ ISelectionChangedListener listener) {
+ // do nothing - workaround for dali
+ }
+
+ public void removePostSelectionChangedListener(
+ ISelectionChangedListener listener) {
+ // do nothing - workaround for dali
+ }
}
Show replies by date