Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-05-30 11:41:46 +0000
committerRoland Grunberg2013-05-30 13:28:15 +0000
commit0606f3804628ebe7cebe6796c6c464af2e97038c (patch)
tree25d1d94d20bdd83b2bfda02bf5f81f96ab682631
parent4dd744d88e91a2c27fa8c3974548a4dc0a48cec6 (diff)
downloadorg.eclipse.linuxtools-0606f3804628ebe7cebe6796c6c464af2e97038c.tar.gz
org.eclipse.linuxtools-0606f3804628ebe7cebe6796c6c464af2e97038c.tar.xz
org.eclipse.linuxtools-0606f3804628ebe7cebe6796c6c464af2e97038c.zip
callgraph: About in a view is useless.
Additionally the about action was not used at all. Change-Id: Iec51acb9e835df325b2a2358790aade6a75c404b Reviewed-on: https://git.eclipse.org/r/13394 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r--systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/SystemTapView.java64
-rw-r--r--systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/messages.properties1
2 files changed, 1 insertions, 64 deletions
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/SystemTapView.java b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/SystemTapView.java
index 951878fd64..585927921c 100644
--- a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/SystemTapView.java
+++ b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/SystemTapView.java
@@ -30,11 +30,6 @@ import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.linuxtools.tools.launch.core.factory.RuntimeProcessFactory;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.StyledText;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.FileDialog;
@@ -238,7 +233,7 @@ public abstract class SystemTapView extends ViewPart {
@Override
public void run() {
try {
- Process pr = RuntimeProcessFactory.getFactory().exec("stap -V", null);
+ Process pr = RuntimeProcessFactory.getFactory().exec("stap -V", null); //$NON-NLS-1$
BufferedReader buf = new BufferedReader(
new InputStreamReader(pr.getErrorStream()));
String line = ""; //$NON-NLS-1$
@@ -264,63 +259,6 @@ public abstract class SystemTapView extends ViewPart {
}
}
};
-
- Action helpAbout = new Action(Messages.getString("SystemTapView.AboutMenu")) { //$NON-NLS-1$
- @Override
- public void run() {
- Display disp = Display.getCurrent();
- if (disp == null){
- disp = Display.getDefault();
- }
-
-
- Shell sh = new Shell(disp, SWT.MIN | SWT.MAX);
- sh.setSize(425, 540);
- GridLayout gl = new GridLayout(1, true);
- sh.setLayout(gl);
-
- sh.setText(""); //$NON-NLS-1$
-
- Image img = new Image(disp, PluginConstants.getPluginLocation()+"systemtap.png"); //$NON-NLS-1$
- Composite cmp = new Composite(sh, sh.getStyle());
- cmp.setLayout(gl);
- GridData data = new GridData(415,100);
- cmp.setLayoutData(data);
- cmp.setBackgroundImage(img);
-
- Composite c = new Composite(sh, sh.getStyle());
- c.setLayout(gl);
- GridData gd = new GridData(415,400);
- c.setLayoutData(gd);
- c.setLocation(0,300);
- StyledText viewer = new StyledText(c, SWT.READ_ONLY | SWT.MULTI
- | SWT.V_SCROLL | SWT.WRAP | SWT.BORDER);
-
- GridData viewerGD = new GridData(SWT.FILL, SWT.FILL, true, true);
- viewer.setLayoutData(viewerGD);
- Font font = new Font(sh.getDisplay(), "Monospace", 11, SWT.NORMAL); //$NON-NLS-1$
- viewer.setFont(font);
- viewer.setText(
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" + //$NON-NLS-1$
- "" //$NON-NLS-1$
- );
-
-
-
- sh.open();
- }
- };
}
protected void createSaveAction() {
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/messages.properties b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/messages.properties
index 05d4338715..a6f4f9206b 100644
--- a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/messages.properties
+++ b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/messages.properties
@@ -32,7 +32,6 @@ SystemTapView.1=\n
SystemTapView.StopScript=Stop Script
SystemTapView.Version=Version
SystemTapView.StapVersion=Systemtap Version
-SystemTapView.AboutMenu=About
SystemTapView.FileMenu=File
SystemTapView.SaveMenu=Save
StapGraphParser.JobName=GraphUIJob instance \ No newline at end of file

Back to the top