Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoratikhomirov2005-12-28 14:39:44 +0000
committeratikhomirov2005-12-28 14:39:44 +0000
commit832f3655c3ee4b8e8fca5f87140653ba016cedfa (patch)
treeb59904a81841e025a3b9c3f3280f24474d9d52f3 /tests
parenta615a4fb7a148c4a414896f8385b1774810fcdd6 (diff)
downloadorg.eclipse.gmf-tooling-832f3655c3ee4b8e8fca5f87140653ba016cedfa.tar.gz
org.eclipse.gmf-tooling-832f3655c3ee4b8e8fca5f87140653ba016cedfa.tar.xz
org.eclipse.gmf-tooling-832f3655c3ee4b8e8fca5f87140653ba016cedfa.zip
NPE
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/RuntimeDiagramTestBase.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/RuntimeDiagramTestBase.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/RuntimeDiagramTestBase.java
index 8d9facefc..48bf1023e 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/RuntimeDiagramTestBase.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/rt/RuntimeDiagramTestBase.java
@@ -55,12 +55,15 @@ import org.eclipse.gmf.tests.setup.LinksSessionSetup;
import org.eclipse.gmf.tests.setup.RTSetup;
import org.eclipse.gmf.tests.setup.RTSource;
import org.eclipse.gmf.tests.setup.SessionSetup;
+import org.eclipse.jface.preference.PreferenceStore;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
import org.osgi.framework.Bundle;
/**
+ * FIXME Merge with DiagramNodeTest. What's the reason to have this copied from DNT. Why viewer's superclass
+ * is DiagramGraphicalViewer, not GraphicalViewerImpl?
* Unit testcase base class with support for runtime-diagram editing.
*/
public abstract class RuntimeDiagramTestBase extends ConfiguredTestCase {
@@ -255,7 +258,9 @@ public abstract class RuntimeDiagramTestBase extends ConfiguredTestCase {
}
private static final class Viewer extends DiagramGraphicalViewer implements IDiagramGraphicalViewer {
+
private Viewer() {
+ super.hookWorkspacePreferenceStore(new PreferenceStore());
}
protected void createDefaultRoot() {

Back to the top