aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamilo Bernal2013-01-28 13:16:26 (EST)
committerAlexander Kurtakov2013-01-30 15:49:21 (EST)
commit177a01b05b3ab190007b0b287f4bfc820fe5f638 (patch)
treefdc3ec7a969d0b5c39652aa24ccee73deb83ef95
parent3a0958c93c0fb85880bca7b6164d5ba1bf5cbf4b (diff)
downloadorg.eclipse.linuxtools-177a01b05b3ab190007b0b287f4bfc820fe5f638.zip
org.eclipse.linuxtools-177a01b05b3ab190007b0b287f4bfc820fe5f638.tar.gz
org.eclipse.linuxtools-177a01b05b3ab190007b0b287f4bfc820fe5f638.tar.bz2
Clean up o.e.l.systemtap.ui.ide.refs/changes/46/10046/2
* Add missing NON-NLS. * Remove uneeded imports. * Add since tags. * Remove commented code. Change-Id: I6eddceb8c58f4b74bfcc99273a2bc6ecb1446aa9 Reviewed-on: https://git.eclipse.org/r/10046 Tested-by: Hudson CI Reviewed-by: Alexander Kurtakov <akurtako@redhat.com> IP-Clean: Alexander Kurtakov <akurtako@redhat.com> Tested-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/Localization.java2
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/FunctionBrowserAction.java1
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/ProbeAliasAction.java1
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPEditor.java2
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java49
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPReconcilingStrategy.java4
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/CodeAssistPreferencePage.java14
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/ConditionalFilterPreferencePage.java4
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/EditorPreferencePage.java6
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferenceConstants.java33
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferencePage.java2
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/StapOptionsPreferencePage.java6
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/SyntaxColoringPreferencePage.java16
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/TapsetsPreferencePage.java4
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/FunctionBrowserView.java16
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/ProbeAliasBrowserView.java2
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/Messages.java3
17 files changed, 72 insertions, 93 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/Localization.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/Localization.java
index cee4a71..53119b5 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/Localization.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/Localization.java
@@ -4,7 +4,7 @@ import java.util.MissingResourceException;
import java.util.ResourceBundle;
public class Localization {
- private static final String BUNDLE_NAME = "org.eclipse.linuxtools.internal.systemtap.ui.ide.localization";
+ private static final String BUNDLE_NAME = "org.eclipse.linuxtools.internal.systemtap.ui.ide.localization"; //$NON-NLS-1$
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
.getBundle(BUNDLE_NAME);
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/FunctionBrowserAction.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/FunctionBrowserAction.java
index 5320762..7450d83 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/FunctionBrowserAction.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/FunctionBrowserAction.java
@@ -111,7 +111,6 @@ public class FunctionBrowserAction extends Action implements ISelectionListener,
IEditorPart ed = page.getActiveEditor();
if(ed == null) {
NewFileAction action = new NewFileAction();
- //action.init(page.getWorkbenchWindow());
action.run();
if (action.isSuccessful())
ed = page.getWorkbenchWindow().getActivePage().getActiveEditor();
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/ProbeAliasAction.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/ProbeAliasAction.java
index 22a0293..01540a0 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/ProbeAliasAction.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/ProbeAliasAction.java
@@ -91,7 +91,6 @@ public class ProbeAliasAction extends Action implements ISelectionListener, IDou
IEditorPart editor = page.getActiveEditor();
if(null == editor) {
NewFileAction action = new NewFileAction();
- //action.init(page.getWorkbenchWindow());
action.run();
editor = page.getWorkbenchWindow().getActivePage().getActiveEditor();
}
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPEditor.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPEditor.java
index fd7b97a..2ce6649 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPEditor.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPEditor.java
@@ -42,7 +42,7 @@ public class STPEditor extends SimpleEditor {
private Annotation[] stpOldAnnotations;
private ProjectionAnnotationModel stpAnnotationModel;
- public static final String ID="org.eclipse.linuxtools.internal.systemtap.ui.ide.editors.stp.STPEditor";
+ public static final String ID="org.eclipse.linuxtools.internal.systemtap.ui.ide.editors.stp.STPEditor"; //$NON-NLS-1$
public STPEditor() {
super();
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java
index 154b567..5c11f33 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPElementScanner.java
@@ -29,16 +29,14 @@ import org.eclipse.swt.SWT;
public class STPElementScanner extends BufferedRuleBasedScanner {
- private String[] keywordList= {"probe", "for", "else", "foreach", "exit", "printf", "in", "return",
- "break", "global", "next", "while", "if", "delete", "#include", "function", "do",
- "print", "error","log", "printd", "printdln", "println", "sprint", "sprintf", "system", "warn"};
+ private String[] keywordList = { "probe", "for", "else", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
+ "foreach", "exit", "printf", "in", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
+ "return", "break", "global", "next", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
+ "while", "if", "delete", "#include", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
+ "function", "do", "print", "error", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
+ "log", "printd", "printdln", "println", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
+ "sprint", "sprintf", "system", "warn" }; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
-
-// TODO: Not sure if we want these keywords or not. Defer for now.
-// "backtrace", "caller", "caller_addr", "cpu", "egid", "euid", "execname", "gid", "is_return",
-// "pexecname", "pid", "ppid", "tid", "uid", "print_backtrace", "print_regs", "print_stack",
-// "stack_size", "stack_unused", "stack_used", "stp_pid", "target"};
-
/**
*
* Build Element scanner for Syntax Highlighting for Systemtap Editor
@@ -88,23 +86,20 @@ public class STPElementScanner extends BufferedRuleBasedScanner {
for (int i=0; i<keywordList.length; i++)
keywordsRule.addWord(keywordList[i], keywordToken);
- setRules(new IRule[] {
- new MultiLineRule("/*", "*/", commentToken),
- new EndOfLineRule("/*", commentToken),
- new EndOfLineRule("#", commentToken),
- new EndOfLineRule("//", commentToken),
- new EndOfLineRule("#if", defaultToken),
- new EndOfLineRule("#else", defaultToken),
- new EndOfLineRule("#endif", defaultToken),
- new EndOfLineRule("#define", defaultToken),
- new SingleLineRule("\"", "\"", stringToken, '\\'),
- new SingleLineRule("'", "'", stringToken, '\\'),
- keywordsRule,
- new WhitespaceRule(new IWhitespaceDetector() {
- public boolean isWhitespace(char c) {
- return Character.isWhitespace(c);
- }
- }),
- });
+ setRules(new IRule[] { new MultiLineRule("/*", "*/", commentToken), //$NON-NLS-1$//$NON-NLS-2$
+ new EndOfLineRule("/*", commentToken), //$NON-NLS-1$
+ new EndOfLineRule("#", commentToken), //$NON-NLS-1$
+ new EndOfLineRule("//", commentToken), //$NON-NLS-1$
+ new EndOfLineRule("#if", defaultToken), //$NON-NLS-1$
+ new EndOfLineRule("#else", defaultToken), //$NON-NLS-1$
+ new EndOfLineRule("#endif", defaultToken), //$NON-NLS-1$
+ new EndOfLineRule("#define", defaultToken), //$NON-NLS-1$
+ new SingleLineRule("\"", "\"", stringToken, '\\'), //$NON-NLS-1$ //$NON-NLS-2$
+ new SingleLineRule("'", "'", stringToken, '\\'), //$NON-NLS-1$//$NON-NLS-2$
+ keywordsRule, new WhitespaceRule(new IWhitespaceDetector() {
+ public boolean isWhitespace(char c) {
+ return Character.isWhitespace(c);
+ }
+ }), });
}
}
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPReconcilingStrategy.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPReconcilingStrategy.java
index fb39e60..9138733 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPReconcilingStrategy.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/editors/stp/STPReconcilingStrategy.java
@@ -219,11 +219,11 @@ public class STPReconcilingStrategy implements IReconcilingStrategy,
}
private boolean isProbe() throws BadLocationException {
- return matchKeyWord("probe");
+ return matchKeyWord("probe"); //$NON-NLS-1$
}
private boolean isFunction() throws BadLocationException {
- return matchKeyWord("function");
+ return matchKeyWord("function"); //$NON-NLS-1$
}
private boolean matchKeyWord(String word) throws BadLocationException {
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/CodeAssistPreferencePage.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/CodeAssistPreferencePage.java
index dcf8d2b..29e56d9 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/CodeAssistPreferencePage.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/CodeAssistPreferencePage.java
@@ -26,7 +26,7 @@ public class CodeAssistPreferencePage extends FieldEditorPreferencePage implemen
public CodeAssistPreferencePage() {
super(GRID);
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
- setDescription(Localization.getString("CodeAssistPreferencePage.CodeAssistPreferenceDescription"));
+ setDescription(Localization.getString("CodeAssistPreferencePage.CodeAssistPreferenceDescription")); //$NON-NLS-1$
}
/**
@@ -40,25 +40,25 @@ public class CodeAssistPreferencePage extends FieldEditorPreferencePage implemen
addField(
new BooleanFieldEditor(
IDEPreferenceConstants.P_USE_CODE_ASSIST,
- Localization.getString("CodeAssistPreferencePage.UseCodeAssist"),
+ Localization.getString("CodeAssistPreferencePage.UseCodeAssist"), //$NON-NLS-1$
getFieldEditorParent()));
addField(new RadioGroupFieldEditor(
IDEPreferenceConstants.P_COMPLETION,
- Localization.getString("CodeAssistPreferencePage.HowCodeAdded"),
+ Localization.getString("CodeAssistPreferencePage.HowCodeAdded"), //$NON-NLS-1$
1,
new String[][] {
- {Localization.getString("CodeAssistPreferencePage.Insert"), IDEPreferenceConstants.P_COMPLETION_INSERT },
- {Localization.getString("CodeAssistPreferencePage.Overwrite"), IDEPreferenceConstants.P_COMPLETION_OVERWRITE }},
+ {Localization.getString("CodeAssistPreferencePage.Insert"), IDEPreferenceConstants.P_COMPLETION_INSERT }, //$NON-NLS-1$
+ {Localization.getString("CodeAssistPreferencePage.Overwrite"), IDEPreferenceConstants.P_COMPLETION_OVERWRITE }}, //$NON-NLS-1$
getFieldEditorParent()));
addField(
new IntegerFieldEditor(
IDEPreferenceConstants.P_ACTIVATION_DELAY,
- Localization.getString("CodeAssistPreferencePage.ActivationDelay"),
+ Localization.getString("CodeAssistPreferencePage.ActivationDelay"), //$NON-NLS-1$
getFieldEditorParent()));
addField(
new StringFieldEditor(
IDEPreferenceConstants.P_ACTIVATION_TRIGGER,
- Localization.getString("CodeAssistPreferencePage.ActivationTrigger"),
+ Localization.getString("CodeAssistPreferencePage.ActivationTrigger"), //$NON-NLS-1$
getFieldEditorParent()));
}
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/ConditionalFilterPreferencePage.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/ConditionalFilterPreferencePage.java
index a218b0b..bbfe9e6 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/ConditionalFilterPreferencePage.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/ConditionalFilterPreferencePage.java
@@ -25,13 +25,13 @@ public class ConditionalFilterPreferencePage extends FieldEditorPreferencePage i
public ConditionalFilterPreferencePage() {
super(GRID);
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
- setDescription(Localization.getString("ConditionalFilterPreferencePage.ConditiionalFilterSelector"));
+ setDescription(Localization.getString("ConditionalFilterPreferencePage.ConditiionalFilterSelector")); //$NON-NLS-1$
}
@Override
public void createFieldEditors() {
addField(new ListEditor(IDEPreferenceConstants.P_CONDITIONAL_FILTERS,
- Localization.getString("ConditionalFilterPreferencePage.ConditionalFilters"), Localization.getString("ConditionalFilterPreferencePage.NewFilter"), "if()", new ConditionalExpressionValidator(), getFieldEditorParent()));
+ Localization.getString("ConditionalFilterPreferencePage.ConditionalFilters"), Localization.getString("ConditionalFilterPreferencePage.NewFilter"), "if()", new ConditionalExpressionValidator(), getFieldEditorParent())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
public void init(IWorkbench workbench) {
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/EditorPreferencePage.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/EditorPreferencePage.java
index dd4ce9c..8c4fece 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/EditorPreferencePage.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/EditorPreferencePage.java
@@ -24,18 +24,18 @@ public class EditorPreferencePage extends FieldEditorPreferencePage implements I
public EditorPreferencePage() {
super(GRID);
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
- setDescription(Localization.getString("EditorPreferencePage.EditorPreferenceDescription"));
+ setDescription(Localization.getString("EditorPreferencePage.EditorPreferenceDescription")); //$NON-NLS-1$
}
@Override
public void createFieldEditors() {
addField(new ColorFieldEditor(
IDEPreferenceConstants.P_EDITOR_BACKGROUND,
- Localization.getString("EditorPreferencePage.BackgroundColor"), getFieldEditorParent()));
+ Localization.getString("EditorPreferencePage.BackgroundColor"), getFieldEditorParent())); //$NON-NLS-1$
addField(new BooleanFieldEditor(
IDEPreferenceConstants.P_SHOW_LINE_NUMBERS,
- Localization.getString("EditorPreferencePage.ShowLineNumbers"),
+ Localization.getString("EditorPreferencePage.ShowLineNumbers"), //$NON-NLS-1$
getFieldEditorParent()));
}
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferenceConstants.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferenceConstants.java
index ed5ab9f..4857a86 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferenceConstants.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferenceConstants.java
@@ -41,30 +41,25 @@ public class IDEPreferenceConstants {
//ide.stap.stapoptions
public static final String[][] P_STAP = new String[][] {
-// {"-h", "\tshow help", "hStapPreference"},
-// {"-V", "\tshow version", "VStapPreference"},
- {"-k", "\tkeep temporary directory", "kStapPreference"},
- {"-u", "\tunoptimized translation", "uStapPreference"},
-// {"-g", "\tguru mode", "gStapPreference"},
- {"-b", "\tbulk (relayfs) mode", "bStapPreference"},
- {"-t", "\tbenchmarking timing information", "tStapPreference"},
- {"-v", "\t\t\tincrease verbosity [0]", "vStapPreference"},
- {"-p NUM", "\t\tstop after pass NUM 1-5"/*, instead of 5 (parse, elaborate, translate, compile, run)"*/, "pStapPreference"},
- {"-s NUM", "\t\tbuffer size in megabytes", "sStapPreference"},
-// {"-I DIR", "\t\tlook in DIR for additional .stp script files, in addition to /usr/share/systemtap/tapset", "IStapPreference"},
- {"-D NM=VAL", "\temit macro definition into C code", "DStapPreference"},
- {"-R DIR", "\t\tlook in DIR for runtime", "RStapPreference"},
- {"-r RELEASE", "\tuse kernel RELEASE", "rStapPreference"},
- {"-m MODULE", "\tset probe module name", "mStapPreference"},
- {"-o FILE", "\t\tsend output to file", "oStapPreference"},
- {"-c CMD", "\t\tstart the probes, run CMD, and exit when it finishes", "cStapPreference"},
- {"-x PID", "\t\tsets target() to PID", "xStapPreference"}};
+ {"-k", "\tkeep temporary directory", "kStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-u", "\tunoptimized translation", "uStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-b", "\tbulk (relayfs) mode", "bStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-t", "\tbenchmarking timing information", "tStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-v", "\t\t\tincrease verbosity [0]", "vStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-p NUM", "\t\tstop after pass NUM 1-5", "pStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-s NUM", "\t\tbuffer size in megabytes", "sStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-D NM=VAL", "\temit macro definition into C code", "DStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-R DIR", "\t\tlook in DIR for runtime", "RStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-r RELEASE", "\tuse kernel RELEASE", "rStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-m MODULE", "\tset probe module name", "mStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-o FILE", "\t\tsend output to file", "oStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-c CMD", "\t\tstart the probes, run CMD, and exit when it finishes", "cStapPreference"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ {"-x PID", "\t\tsets target() to PID", "xStapPreference"}}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
public static final String[] P_STAP_OPTS = new String[] {
"vStapOptPreference", //$NON-NLS-1$
"pStapOptPreference", //$NON-NLS-1$
"sStapOptPreference", //$NON-NLS-1$
-// "IStapOptPreference", //$NON-NLS-1$
"DStapOptPreference", //$NON-NLS-1$
"RStapOptPreference", //$NON-NLS-1$
"rStapOptPreference", //$NON-NLS-1$
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferencePage.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferencePage.java
index 236cdc8..0b5425b 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferencePage.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/IDEPreferencePage.java
@@ -23,7 +23,7 @@ public class IDEPreferencePage extends FieldEditorPreferencePage implements IWor
public IDEPreferencePage() {
super(GRID);
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
- setDescription("Preferences when loading the IDE perspective");
+ setDescription("Preferences when loading the IDE perspective"); //$NON-NLS-1$
}
@Override
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/StapOptionsPreferencePage.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/StapOptionsPreferencePage.java
index d01dded..c91eaf2 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/StapOptionsPreferencePage.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/StapOptionsPreferencePage.java
@@ -24,7 +24,7 @@ public class StapOptionsPreferencePage extends FieldEditorPreferencePage impleme
public StapOptionsPreferencePage() {
super(GRID);
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
- setDescription(Localization.getString("StapOptionsPreferencePage.StapOptions"));
+ setDescription(Localization.getString("StapOptionsPreferencePage.StapOptions")); //$NON-NLS-1$
}
@Override
@@ -33,13 +33,13 @@ public class StapOptionsPreferencePage extends FieldEditorPreferencePage impleme
addField(
new BooleanFieldEditor(
IDEPreferenceConstants.P_STAP[i][2],
- IDEPreferenceConstants.P_STAP[i][0] + "\t" + IDEPreferenceConstants.P_STAP[i][1],
+ IDEPreferenceConstants.P_STAP[i][0] + "\t" + IDEPreferenceConstants.P_STAP[i][1], //$NON-NLS-1$
getFieldEditorParent()));
if(2 < IDEPreferenceConstants.P_STAP[i][0].length()) {
StringFieldEditor sfe = new StringFieldEditor(
IDEPreferenceConstants.P_STAP_OPTS[i-IDEPreferenceConstants.P_STAP.length+IDEPreferenceConstants.P_STAP_OPTS.length],
- "\t",
+ "\t", //$NON-NLS-1$
getFieldEditorParent());
addField(sfe);
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/SyntaxColoringPreferencePage.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/SyntaxColoringPreferencePage.java
index 97d534b..6b0c6c7 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/SyntaxColoringPreferencePage.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/SyntaxColoringPreferencePage.java
@@ -27,7 +27,7 @@ public class SyntaxColoringPreferencePage extends PreferencePage implements IWor
public SyntaxColoringPreferencePage() {
super();
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
- setDescription(Localization.getString("SyntaxColoringPreferencePage.SyntaxColoringOptions"));
+ setDescription(Localization.getString("SyntaxColoringPreferencePage.SyntaxColoringOptions")); //$NON-NLS-1$
}
public void init(IWorkbench workbench) {
@@ -41,25 +41,25 @@ public class SyntaxColoringPreferencePage extends PreferencePage implements IWor
stpDC = createColorFieldEditor(
IDEPreferenceConstants.P_STP_DEFAULT_COLOR,
- Localization.getString("SyntaxColoringPreferencePage.DefaultColor"), comp);
+ Localization.getString("SyntaxColoringPreferencePage.DefaultColor"), comp); //$NON-NLS-1$
stpKC = createColorFieldEditor(
IDEPreferenceConstants.P_STP_KEYWORD_COLOR,
- Localization.getString("SyntaxColoringPreferencePage.KeywordColor"), comp);
+ Localization.getString("SyntaxColoringPreferencePage.KeywordColor"), comp); //$NON-NLS-1$
stpEC = createColorFieldEditor(
IDEPreferenceConstants.P_STP_EMBEDDED_C_COLOR,
- Localization.getString("SyntaxColoringPreferencePage.EmbeddedCColor"), comp);
+ Localization.getString("SyntaxColoringPreferencePage.EmbeddedCColor"), comp); //$NON-NLS-1$
stpEE = createColorFieldEditor(
IDEPreferenceConstants.P_STP_EMBEDDED_COLOR,
- Localization.getString("SyntaxColoringPreferencePage.EmbeddedColor"), comp);
+ Localization.getString("SyntaxColoringPreferencePage.EmbeddedColor"), comp); //$NON-NLS-1$
stpCC = createColorFieldEditor(
IDEPreferenceConstants.P_STP_COMMENT_COLOR,
- Localization.getString("SyntaxColoringPreferencePage.CommentColor"), comp);
+ Localization.getString("SyntaxColoringPreferencePage.CommentColor"), comp); //$NON-NLS-1$
stpTC = createColorFieldEditor(
IDEPreferenceConstants.P_STP_TYPE_COLOR,
- Localization.getString("SyntaxColoringPreferencePage.TypeColor"), comp);
+ Localization.getString("SyntaxColoringPreferencePage.TypeColor"), comp); //$NON-NLS-1$
stpSC = createColorFieldEditor(
IDEPreferenceConstants.P_STP_STRING_COLOR,
- Localization.getString("SyntaxColoringPreferencePage.StringColor"), comp);
+ Localization.getString("SyntaxColoringPreferencePage.StringColor"), comp); //$NON-NLS-1$
return comp;
}
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/TapsetsPreferencePage.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/TapsetsPreferencePage.java
index 54db4e4..8a287bd 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/TapsetsPreferencePage.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/preferences/TapsetsPreferencePage.java
@@ -23,7 +23,7 @@ public class TapsetsPreferencePage extends FieldEditorPreferencePage implements
public TapsetsPreferencePage() {
super(GRID);
setPreferenceStore(IDEPlugin.getDefault().getPreferenceStore());
- setDescription(Localization.getString("TapsetsPreferencePage.AdditionalTapsetsCategory"));
+ setDescription(Localization.getString("TapsetsPreferencePage.AdditionalTapsetsCategory")); //$NON-NLS-1$
}
/**
@@ -35,7 +35,7 @@ public class TapsetsPreferencePage extends FieldEditorPreferencePage implements
@Override
public void createFieldEditors() {
addField(new PathEditor(IDEPreferenceConstants.P_TAPSETS,
- Localization.getString("TapsetsPreferencePage.AdditionalTapsets"), Localization.getString("TapsetsPreferencePage.TapsetDirectory"), getFieldEditorParent()));
+ Localization.getString("TapsetsPreferencePage.AdditionalTapsets"), Localization.getString("TapsetsPreferencePage.TapsetDirectory"), getFieldEditorParent())); //$NON-NLS-1$ //$NON-NLS-2$
}
public void init(IWorkbench workbench) {
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/FunctionBrowserView.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/FunctionBrowserView.java
index 4af9ef9..a84cf2a 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/FunctionBrowserView.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/FunctionBrowserView.java
@@ -11,15 +11,11 @@
package org.eclipse.linuxtools.internal.systemtap.ui.ide.views;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.Separator;
import org.eclipse.linuxtools.internal.systemtap.ui.ide.actions.hidden.FunctionBrowserAction;
import org.eclipse.linuxtools.systemtap.ui.ide.structures.TapsetLibrary;
import org.eclipse.linuxtools.systemtap.ui.structures.TreeNode;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Menu;
-import org.eclipse.ui.IWorkbenchActionConstants;
@@ -65,13 +61,13 @@ public class FunctionBrowserView extends BrowserView {
if(functions.getChildCount() > 0) {
TreeNode localFuncs = functions.getChildAt(0);
- if("<local>".equals(localFuncs.toString())) {
+ if("<local>".equals(localFuncs.toString())) { //$NON-NLS-1$
functions.remove(0);
}
if(null != localFunctions) {
localFunctions = localFunctionTree;
- localFunctions.setDisplay("<local>");
+ localFunctions.setDisplay("<local>"); //$NON-NLS-1$
functions.addAt(localFunctions, 0);
}
}
@@ -84,14 +80,6 @@ public class FunctionBrowserView extends BrowserView {
private void makeActions() {
doubleClickAction = new FunctionBrowserAction(getSite().getWorkbenchWindow(), this);
viewer.addDoubleClickListener(doubleClickAction);
-
- //This loads the menu from plugin.xml
-// MenuManager manager = new MenuManager("functionPopup");
-// Control control = this.viewer.getControl();
-// manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
-// Menu menu = manager.createContextMenu(control);
-// control.setMenu(menu);
-// getSite().registerContextMenu(manager, viewer);
}
@Override
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/ProbeAliasBrowserView.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/ProbeAliasBrowserView.java
index 4a7edcb..3f09e74 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/ProbeAliasBrowserView.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/views/ProbeAliasBrowserView.java
@@ -60,7 +60,7 @@ public class ProbeAliasBrowserView extends BrowserView {
doubleClickAction = new ProbeAliasAction(getSite().getWorkbenchWindow(), this);
viewer.addDoubleClickListener(doubleClickAction);
Control control = this.viewer.getControl();
- MenuManager manager = new MenuManager("probePopup");
+ MenuManager manager = new MenuManager("probePopup"); //$NON-NLS-1$
manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
Menu menu = manager.createContextMenu(control);
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/Messages.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/Messages.java
index 03e6c60..e2f64df 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/Messages.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/systemtap/ui/ide/structures/Messages.java
@@ -2,6 +2,9 @@ package org.eclipse.linuxtools.systemtap.ui.ide.structures;
import org.eclipse.osgi.util.NLS;
+/**
+ * @since 2.0
+ */
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.linuxtools.systemtap.ui.ide.structures.messages"; //$NON-NLS-1$
public static String TapsetParser_CannotRunStapMessage;