Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharley Wang2009-11-12 15:46:38 +0000
committerCharley Wang2009-11-12 15:46:38 +0000
commitbde9df3150fd5e29cf01ac68688b0000c869792a (patch)
treeddeaceffdbc90697f2e6e97c4f7e6ec61316399e /systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/callgraph/core
parente24c207f1b66195dd09d0c1c71a28f0b42779ad8 (diff)
downloadorg.eclipse.linuxtools-bde9df3150fd5e29cf01ac68688b0000c869792a.tar.gz
org.eclipse.linuxtools-bde9df3150fd5e29cf01ac68688b0000c869792a.tar.xz
org.eclipse.linuxtools-bde9df3150fd5e29cf01ac68688b0000c869792a.zip
2009-11-12 Charley Wang <chwang@redhat.com>
* src/org/eclipse/linuxtools/callgraph/core/SystemTapCommandGenerator.java (buildScript): CommandGenerator no longer extends action or IWindow...Delegate. None of those functions were being used.
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/callgraph/core')
-rw-r--r--systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/callgraph/core/SystemTapCommandGenerator.java30
1 files changed, 1 insertions, 29 deletions
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/callgraph/core/SystemTapCommandGenerator.java b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/callgraph/core/SystemTapCommandGenerator.java
index 137a44b9bc..553a14c9dd 100644
--- a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/callgraph/core/SystemTapCommandGenerator.java
+++ b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/callgraph/core/SystemTapCommandGenerator.java
@@ -13,18 +13,15 @@ package org.eclipse.linuxtools.callgraph.core;
import java.util.ArrayList;
-import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.IWorkbenchWindowActionDelegate;
/**
* This <code>Action</code> is used to run a SystemTap script that is currently open in the editor.
* @author Ryan Morse
*/
-public class SystemTapCommandGenerator extends Action implements IWorkbenchWindowActionDelegate {
+public class SystemTapCommandGenerator {
private boolean needsToSendCommand;
private boolean needsArguments;
@@ -33,7 +30,6 @@ public class SystemTapCommandGenerator extends Action implements IWorkbenchWindo
protected String commands;
protected boolean isGuru;
private String binaryPath = null;
- protected IWorkbenchWindow actionWindow = null;
private IAction act;
private String executeCommand;
private String binaryArguments;
@@ -43,22 +39,6 @@ public class SystemTapCommandGenerator extends Action implements IWorkbenchWindo
super();
}
- public void dispose() {
- actionWindow= null;
- }
-
- public void init(IWorkbenchWindow window) {
- actionWindow= window;
- }
-
- public void run(IAction action) {
- System.out.println("Not implemented"); //$NON-NLS-1$
- }
-
- public void run() {
- System.out.println("Calling run() without parameters not implemented"); //$NON-NLS-1$
- }
-
public String generateCommand(String scrPath, String binPath, String cmds, boolean needBinary, boolean needsArgs, String arg, String binArguments) {
needsToSendCommand = needBinary;
needsArguments = needsArgs;
@@ -139,13 +119,5 @@ public class SystemTapCommandGenerator extends Action implements IWorkbenchWindo
public String getExecuteCommand(){
return this.executeCommand;
}
-
-
- /**
- * Convenience method to return the current window
- */
- public IWorkbenchWindow getWindow() {
- return actionWindow;
- }
}

Back to the top