Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-01-09 08:12:58 -0500
committerAndrey Loskutov2017-01-13 15:56:39 -0500
commitebb2566c95427e5c7cffd5e27f1e910b0a187b17 (patch)
treef9b87db9c4ccf476dfb8c8d4b5fcfcfd3f871bbb /org.eclipse.core.variables
parent1c1d17b82a223fb8fcc69b4883a71b8744899ccb (diff)
downloadeclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.gz
eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.tar.xz
eclipse.platform.debug-ebb2566c95427e5c7cffd5e27f1e910b0a187b17.zip
Also enabled "cleanup whitespace on save" actions for debug.ui and debug.tests bundles. Change-Id: I755b879ab1d49144a1bec3f4318dbb8b29521bb3 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.core.variables')
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java4
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariable.java8
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariableResolver.java4
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariable.java8
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariableManager.java74
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariable.java20
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableInitializer.java4
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableListener.java14
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/variables/VariablesPlugin.java28
9 files changed, 82 insertions, 82 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java
index d6afcfda2..206b026d9 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/VariablesMessages.java
@@ -3,8 +3,8 @@
* 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:
+ *
+ * Contributors:
* IBM - Initial API and implementation
**********************************************************************/
package org.eclipse.core.internal.variables;
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariable.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariable.java
index b81fff749..7e127325a 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariable.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariable.java
@@ -20,7 +20,7 @@ import org.eclipse.core.runtime.CoreException;
* The following is a definition of a dynamic variable that resolves to the name of the selected resource:
* <pre>
* &lt;extension point="org.eclipse.core.variables.dynamicVariables"&gt;
- * &lt;variable
+ * &lt;variable
* name="resource_name"
* resolver="com.example.ResourceNameResolver"
* description="The name of the selected resource"
@@ -41,7 +41,7 @@ public interface IDynamicVariable extends IStringVariable {
/**
* Returns the value of this variable when referenced with the given
* argument, possibly <code>null</code>.
- *
+ *
* @param argument argument present in variable expression or <code>null</code>
* if none
* @return value of this variable when referenced with the given argument, possibly
@@ -49,11 +49,11 @@ public interface IDynamicVariable extends IStringVariable {
* @throws CoreException if unable to resolve a value for this variable
*/
public String getValue(String argument) throws CoreException;
-
+
/**
* Returns whether this variable supports an argument, as specified
* by this variable's extension definition in plug-in XML.
- *
+ *
* @return whether this variable supports an argument
*/
public boolean supportsArgument();
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariableResolver.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariableResolver.java
index b5cefaafb..334f6cf36 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariableResolver.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/IDynamicVariableResolver.java
@@ -4,7 +4,7 @@
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -26,7 +26,7 @@ public interface IDynamicVariableResolver {
/**
* Resolves and returns a value for the specified variable when referenced
* with the given argument, possibly <code>null</code>
- *
+ *
* @param variable variable to resolve a value for
* @param argument argument present in expression or <code>null</code> if none
* @return variable value, possibly <code>null</code>
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariable.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariable.java
index 70c3e25f0..128c907c9 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariable.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariable.java
@@ -42,16 +42,16 @@ public interface IStringVariable {
/**
* Returns the name of this variable. A variable is uniquely identified by
* its name.
- *
+ *
* @return variable name
*/
public String getName();
-
+
/**
* Returns a human readable description of this variable, possibly <code>null</code>
- *
+ *
* @return a description of this variable, or <code>null</code> if none
*/
public String getDescription();
-
+
}
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariableManager.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariableManager.java
index e3502e99b..73aef0bcb 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariableManager.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/IStringVariableManager.java
@@ -24,105 +24,105 @@ public interface IStringVariableManager {
* dynamic variables extension point.
*/
public static final String EXTENSION_POINT_DYNAMIC_VARIABLES = "dynamicVariables"; //$NON-NLS-1$
-
+
/**
* Simple identifier constant (value <code>"valueVariables"</code>) for the
* value variables extension point.
*/
public static final String EXTENSION_POINT_VALUE_VARIABLES = "valueVariables"; //$NON-NLS-1$
-
+
/**
* Returns all registered variables.
- *
+ *
* @return a collection of all registered variables
*/
public IStringVariable[] getVariables();
-
+
/**
* Returns all registered value variables.
- *
+ *
* @return a collection of all registered value variables
*/
public IValueVariable[] getValueVariables();
-
+
/**
* Returns the value variable with the given name, or <code>null</code>
* if none.
- *
+ *
* @param name variable name
* @return the value variable with the given name, or <code>null</code>
* if none
*/
public IValueVariable getValueVariable(String name);
-
+
/**
* Returns all registered dynamic variables.
- *
+ *
* @return a collection of all registered dynamic variables
*/
- public IDynamicVariable[] getDynamicVariables();
-
+ public IDynamicVariable[] getDynamicVariables();
+
/**
* Returns the dynamic variable with the given name or <code>null</code>
* if none.
- *
+ *
* @param name variable name
* @return the dynamic variable with the given name or <code>null</code>
* if none
*/
public IDynamicVariable getDynamicVariable(String name);
-
+
/**
* Returns the plug-in identifier of the plug-in that contributed the
* given variable via extension or <code>null</code> if the given
* variable wasn't contributed via extension.
- *
+ *
* @param variable the variable
* @return the plug-in identifier of the plug-in that contributed the
* given variable or <code>null</code>
* @since 3.1
*/
public String getContributingPluginId(IStringVariable variable);
-
+
/**
* Recursively resolves and replaces all variable references in the given
* expression with their corresponding values. Reports errors for references
* to undefined variables (equivalent to calling
* <code>performStringSubstitution(expression, true)</code>).
- *
+ *
* @param expression expression referencing variables
* @return expression with variable references replaced with variable values
* @throws CoreException if unable to resolve the value of one or more variables
*/
public String performStringSubstitution(String expression) throws CoreException;
-
+
/**
* Recursively resolves and replaces all variable references in the given
* expression with their corresponding values. Allows the client to control
* whether references to undefined variables are reported as an error (i.e.
- * an exception is thrown).
- *
+ * an exception is thrown).
+ *
* @param expression expression referencing variables
* @param reportUndefinedVariables whether a reference to an undefined variable
* is to be considered an error (i.e. throw an exception)
* @return expression with variable references replaced with variable values
* @throws CoreException if unable to resolve the value of one or more variables
*/
- public String performStringSubstitution(String expression, boolean reportUndefinedVariables) throws CoreException;
-
+ public String performStringSubstitution(String expression, boolean reportUndefinedVariables) throws CoreException;
+
/**
* Validates variables references in the given expression and reports errors
* for references to undefined variables.
- *
+ *
* @param expression expression referencing variables
* @throws CoreException if one or more referenced variables do not exist
*/
public void validateStringVariables(String expression) throws CoreException;
-
+
/**
* Returns a new read-write value variable with the given name and description
* with a <code>null</code> value.
- *
+ *
* @param name variable name, cannot be <code>null</code>
* @param description variable description, possibly <code>null</code>
* @return a new value variable
@@ -131,7 +131,7 @@ public interface IStringVariableManager {
/**
* Returns a new value variable with the given properties.
- *
+ *
* @param name variable name, cannot be <code>null</code>
* @param description variable description, possibly <code>null</code>
* @param readOnly whether this variable is to be a read only variable
@@ -141,51 +141,51 @@ public interface IStringVariableManager {
* @since 3.3
*/
public IValueVariable newValueVariable(String name, String description, boolean readOnly, String value);
-
+
/**
* Adds the given variables to the variable registry.
- *
+ *
* @param variables the variables to add
* @throws CoreException if one or more variables to add has a name collision with
- * an existing variable
+ * an existing variable
*/
public void addVariables(IValueVariable[] variables) throws CoreException;
-
+
/**
* Removes the given variables from the registry. Has no effect for unregistered
* variables.
- *
+ *
* @param variables variables to remove
*/
public void removeVariables(IValueVariable[] variables);
-
+
/**
* Registers the given listener for value variable notifications. Has no effect
* if an identical listener is already registered.
- *
+ *
* @param listener value variable listener to add
*/
public void addValueVariableListener(IValueVariableListener listener);
-
+
/**
* Removes the given listener from the list of registered value variable
* listeners. Has no effect if an identical listener is not already registered.
- *
+ *
* @param listener value variable listener to remove
*/
public void removeValueVariableListener(IValueVariableListener listener);
-
+
/**
* Convenience method that returns an expression referencing the given
* variable and optional argument. For example, calling the method with
* a <code>varName</code> of <code>my_var</code> and an <code>argument</code>
* of <code>my_arg</code> results in the string <code>$(my_var:my_arg}</code>.
- *
+ *
* @param varName variable name
* @param arg argument text or <code>null</code>
* @return an expression referencing the given variable and
* optional argument
*/
public String generateVariableExpression(String varName, String arg);
-
+
}
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariable.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariable.java
index ba4e1694b..a0118c455 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariable.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariable.java
@@ -58,34 +58,34 @@ public interface IValueVariable extends IStringVariable {
* @param value variable value
*/
public void setValue(String value);
-
+
/**
* Returns the value of this variable, or <code>null</code> if none.
- *
+ *
* @return the value of this variable, or <code>null</code> if none
*/
public String getValue();
-
+
/**
* Returns whether this variable was contributed by an extension.
- *
+ *
* @return whether this variable was contributed by an extension
*/
public boolean isContributed();
-
+
/**
* Returns whether this variable is read only.
- *
+ *
* @return whether this variable is read only
* @since 3.3
*/
public boolean isReadOnly();
-
+
/**
* Sets the description of this variable to the given value.
- *
+ *
* @param description variable description, possibly <code>null</code>
*/
- public void setDescription(String description);
-
+ public void setDescription(String description);
+
}
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableInitializer.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableInitializer.java
index 035a907db..f3169ebd7 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableInitializer.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableInitializer.java
@@ -22,8 +22,8 @@ package org.eclipse.core.variables;
*/
public interface IValueVariableInitializer {
/**
- * Initializes the specified variable.
- *
+ * Initializes the specified variable.
+ *
* @param variable variable to initialize
*/
public void initialize(IValueVariable variable);
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableListener.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableListener.java
index 37dac25df..8aa51da14 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableListener.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/IValueVariableListener.java
@@ -4,7 +4,7 @@
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -20,26 +20,26 @@ package org.eclipse.core.variables;
* @since 3.0
*/
public interface IValueVariableListener {
-
+
/**
* Notification the given variables have been added to the variable
* manager.
- *
+ *
* @param variables added variables
*/
public void variablesAdded(IValueVariable[] variables);
-
+
/**
* Notification the given variables have been removed from the variable
* manager.
- *
+ *
* @param variables removed variables
*/
public void variablesRemoved(IValueVariable[] variables);
-
+
/**
* Notification the given variables have been changed value.
- *
+ *
* @param variables changed variables
*/
public void variablesChanged(IValueVariable[] variables);
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/variables/VariablesPlugin.java b/org.eclipse.core.variables/src/org/eclipse/core/variables/VariablesPlugin.java
index 740e2afdb..e9e84ff8d 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/variables/VariablesPlugin.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/variables/VariablesPlugin.java
@@ -27,13 +27,13 @@ public class VariablesPlugin extends Plugin {
/**
* Status code indicating an unexpected internal error.
*/
- public static final int INTERNAL_ERROR = 120;
-
+ public static final int INTERNAL_ERROR = 120;
+
/**
* Status code indicating a variable reference cycle error.
*/
public static final int REFERENCE_CYCLE_ERROR = 130;
-
+
/**
* The single instance of this plug-in runtime class.
*/
@@ -46,10 +46,10 @@ public class VariablesPlugin extends Plugin {
public static final String PI_CORE_VARIABLES = "org.eclipse.core.variables"; //$NON-NLS-1$
- /**
+ /**
* Constructs an instance of this plug-in runtime class.
* <p>
- * An instance of this plug-in runtime class is automatically created
+ * An instance of this plug-in runtime class is automatically created
* when the facilities provided by the Variables plug-in are required.
* <b>Clients must never explicitly instantiate a plug-in runtime class.</b>
* </p>
@@ -67,16 +67,16 @@ public class VariablesPlugin extends Plugin {
public static VariablesPlugin getDefault() {
return plugin;
}
-
+
/**
* Logs the specified throwable with this plug-in's log.
- *
- * @param t throwable to log
+ *
+ * @param t throwable to log
*/
public static void log(Throwable t) {
log(new Status(IStatus.ERROR, PI_CORE_VARIABLES, INTERNAL_ERROR, "Error logged from Core Variables: ", t)); //$NON-NLS-1$
}
-
+
/**
* Logs the given message with this plug-in's log and the given
* throwable or <code>null</code> if none.
@@ -86,16 +86,16 @@ public class VariablesPlugin extends Plugin {
public static void logMessage(String message, Throwable throwable) {
log(new Status(IStatus.ERROR, getUniqueIdentifier(), INTERNAL_ERROR, message, throwable));
}
-
+
/**
* Logs the specified status with this plug-in's log.
- *
+ *
* @param status status to log
*/
public static void log(IStatus status) {
getDefault().getLog().log(status);
}
-
+
/**
* Convenience method which returns the unique identifier of this plug-in.
* @return the identifier of this plug-in
@@ -103,10 +103,10 @@ public class VariablesPlugin extends Plugin {
public static String getUniqueIdentifier() {
return PI_CORE_VARIABLES;
}
-
+
/**
* Returns the string variable manager.
- *
+ *
* @return the string variable manager
*/
public IStringVariableManager getStringVariableManager() {

Back to the top