Performance tuning.
diff --git a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartEditPart.java b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartEditPart.java
index a2a8127..3a16ae8 100644
--- a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartEditPart.java
+++ b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartEditPart.java
@@ -60,6 +60,7 @@
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.statushandlers.StatusManager;
import com.ibm.icu.util.ULocale;
@@ -142,7 +143,7 @@
* Instantiates a new chart model listener.
*/
public ChartModelListener() {
- super(null, "Chart Updated View", 5);
+ super(null, "Chart Updated View", 10000);
}
/**
@@ -198,6 +199,17 @@
dataProvider.removeListener(dataSource, dataListener);
model = null;
}
+
+ /**
+ * @return
+ * @see org.eclipse.amp.axf.view.SWTThreadModelListener#getWidget()
+ */
+ public Control getWidget() {
+ if (getViewer() != null) {
+ return getViewer().getControl();
+ }
+ return null;
+ }
};
IChartScriptContext csc = new IChartScriptContext() {
diff --git a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartViewPart.java b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartViewPart.java
index 7077acf..3fc7454 100644
--- a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartViewPart.java
+++ b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.chart/src/org/eclipse/amp/agf/chart/ChartViewPart.java
@@ -40,7 +40,7 @@
* @see org.eclipse.amp.agf.gef.EditPartViewPart#createModelListeners()
*/
public void createModelListeners() {
- super.createModelListeners();
+ // super.createModelListeners();
getRootListener().setWaitForUpdate(false);
}