Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/PluginConstants.java')
-rw-r--r--systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/PluginConstants.java29
1 files changed, 17 insertions, 12 deletions
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/PluginConstants.java b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/PluginConstants.java
index 96a25f96d0..cb33ddad85 100644
--- a/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/PluginConstants.java
+++ b/systemtap/org.eclipse.linuxtools.callgraph.core/src/org/eclipse/linuxtools/internal/callgraph/core/PluginConstants.java
@@ -4,14 +4,14 @@
* 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.internal.callgraph.core;
public final class PluginConstants {
-
+
private static String PLUGIN_LOCATION = ""; //$NON-NLS-1$
public static final String CONFIGURATION_TYPE_ID = "org.eclipse.linuxtools.callgraph.launch.systemtapLaunch"; //$NON-NLS-1$
public static final String PARSER_CLASS = "org.eclipse.linuxtools.callgraph.core.parser"; //$NON-NLS-1$
@@ -23,21 +23,21 @@ public final class PluginConstants {
public static final String ATTR_CLASS = "class"; //$NON-NLS-1$
public static final String ATTR_REALTIME = "realtime"; //$NON-NLS-1$
public static final String VAL_TRUE = "true"; //$NON-NLS-1$
-
+
public static final String NEW_LINE = "\n"; //$NON-NLS-1$
public static final int MAX_ERRORS = 500; //Maximum number of errors to tolerate
public static int SYSTEMTAP_OPTIONS_TAB_HORIZONTAL_SPACING = 30;
public static String STAP_PATH = "stap"; //$NON-NLS-1$
-
+
public static final String DEFAULT_VIEW_ID = "org.eclipse.linuxtools.callgraph.core.staptextview"; //$NON-NLS-1$
public static final String DEFAULT_PARSER_ID = "org.eclipse.linuxtools.callgraph.core.systemtaptextparser"; //$NON-NLS-1$
private static String DEFAULT_OUTPUT = ""; //$NON-NLS-1$
private static String STAP_GRAPH_DEFAULT_IO_PATH = ""; //$NON-NLS-1$
-
+
/**
* Sets the absolute path of the Plugin folder and updates
* the PLUGIN_LOCATION.
- *
+ *
* @param loc
*/
public static void setPluginLocation(String loc) {
@@ -45,23 +45,28 @@ public final class PluginConstants {
}
public static String getPluginLocation() {
- if (PLUGIN_LOCATION.length() < 1)
+ if (PLUGIN_LOCATION.length() < 1) {
PluginConstants.setPluginLocation(CallgraphCorePlugin.getPluginLocation());
-
+ }
+
return PLUGIN_LOCATION;
}
public static String getDefaultOutput() {
- if (DEFAULT_OUTPUT.length() < 1)
+ if (DEFAULT_OUTPUT.length() < 1){
DEFAULT_OUTPUT = CallgraphCorePlugin.getDefault().getStateLocation().toString()+"/"; //$NON-NLS-1$
+ }
+
return DEFAULT_OUTPUT;
}
-
+
public static String getDefaultIOPath() {
if (STAP_GRAPH_DEFAULT_IO_PATH.length() < 1)
+ {
STAP_GRAPH_DEFAULT_IO_PATH = CallgraphCorePlugin.getDefault().getStateLocation().toString()+"/callgraph.out"; //$NON-NLS-1$
+ }
return STAP_GRAPH_DEFAULT_IO_PATH;
}
-
-
+
+
}

Back to the top