diff options
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.local.callgraph.tests/src/org/eclipse/linuxtools/systemtap/local/callgraph/tests/MouseListenerTest.java')
-rw-r--r-- | systemtap/org.eclipse.linuxtools.systemtap.local.callgraph.tests/src/org/eclipse/linuxtools/systemtap/local/callgraph/tests/MouseListenerTest.java | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.local.callgraph.tests/src/org/eclipse/linuxtools/systemtap/local/callgraph/tests/MouseListenerTest.java b/systemtap/org.eclipse.linuxtools.systemtap.local.callgraph.tests/src/org/eclipse/linuxtools/systemtap/local/callgraph/tests/MouseListenerTest.java deleted file mode 100644 index c2657ad33f..0000000000 --- a/systemtap/org.eclipse.linuxtools.systemtap.local.callgraph.tests/src/org/eclipse/linuxtools/systemtap/local/callgraph/tests/MouseListenerTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009 Red Hat, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat - initial API and implementation - *******************************************************************************/ -package org.eclipse.linuxtools.systemtap.local.callgraph.tests; - -import junit.framework.TestCase; - -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.linuxtools.systemtap.local.callgraph.CallgraphView; -import org.eclipse.linuxtools.systemtap.local.callgraph.GraphUIJob; -import org.eclipse.linuxtools.systemtap.local.callgraph.StapGraph; -import org.eclipse.linuxtools.systemtap.local.callgraph.StapGraphParser; -import org.eclipse.linuxtools.systemtap.local.callgraph.graphlisteners.StapGraphKeyListener; -import org.eclipse.linuxtools.systemtap.local.callgraph.graphlisteners.StapGraphMouseListener; -import org.eclipse.linuxtools.systemtap.local.callgraph.graphlisteners.StapGraphMouseWheelListener; -import org.eclipse.zest.core.widgets.GraphItem; - - -public class MouseListenerTest extends TestCase{ - - public void test() { - StapGraphParser parse = new StapGraphParser(); - parse.setFile(Activator.PLUGIN_LOCATION + "eag.graph"); - parse.testRun(new NullProgressMonitor()); - - CallgraphView.forceDisplay(); - - GraphUIJob j = new GraphUIJob("Test Graph UI Job", parse); - j.runInUIThread(new NullProgressMonitor()); - - - StapGraphMouseListener mListener = CallgraphView.getGraph().getMouseListener(); - StapGraphKeyListener kListener = CallgraphView.getGraph().getKeyListener(); - StapGraphMouseWheelListener mwListener = CallgraphView.getGraph().getMouseWheelListener(); - - StapGraph g = (StapGraph) CallgraphView.getGraph(); - g.setProject(parse.project); - - - GraphItem[] nodes = {g.getNode(g.getFirstUsefulNode())}; - g.setSelection(nodes); - - - System.out.println(mListener.controlDoubleClick()); - mListener.mouseDownEvent(0, 0); - g.draw(StapGraph.CONSTANT_DRAWMODE_TREE, StapGraph.CONSTANT_ANIMATION_FASTEST, - g.getFirstUsefulNode()); - mListener.mouseUpEvent(); - - System.out.println("TEST"); - - } -} |