Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.core.variables/src/org/eclipse/core/internal/variables/ValueVariable.java')
-rw-r--r--org.eclipse.core.variables/src/org/eclipse/core/internal/variables/ValueVariable.java22
1 files changed, 13 insertions, 9 deletions
diff --git a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/ValueVariable.java b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/ValueVariable.java
index 3bac3d076..b10b82a6c 100644
--- a/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/ValueVariable.java
+++ b/org.eclipse.core.variables/src/org/eclipse/core/internal/variables/ValueVariable.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This 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
@@ -16,21 +16,21 @@ import org.eclipse.core.variables.IValueVariable;
* Implementation of a value variable.
*/
public class ValueVariable extends StringVariable implements IValueVariable {
-
+
/**
- * Variable value or <code>null</code> if none
+ * Variable value or <code>null</code> if none
*/
private String fValue;
-
+
/**
* Whether this variable is read only. If true, users cannot change the value.
*/
private boolean fReadOnly;
-
+
/**
* Constructs a new value variable with the given name, description, read only
* property and string value. Value can be null.
- *
+ *
* @param name variable name
* @param description variable description or <code>null</code>
* @param readOnly whether the variable should be a read only variable
@@ -41,20 +41,22 @@ public class ValueVariable extends StringVariable implements IValueVariable {
fReadOnly = readOnly;
fValue = value;
}
-
+
/* (non-Javadoc)
* @see org.eclipse.core.variables.IValueVariable#setValue(java.lang.String)
*/
+ @Override
public void setValue(String value) {
if (!isReadOnly()){
fValue = value;
StringVariableManager.getDefault().notifyChanged(this);
}
}
-
+
/* (non-Javadoc)
* @see org.eclipse.core.variables.IValueVariable#getValue()
*/
+ @Override
public String getValue() {
return fValue;
}
@@ -62,13 +64,15 @@ public class ValueVariable extends StringVariable implements IValueVariable {
/* (non-Javadoc)
* @see org.eclipse.core.variables.IValueVariable#isReadOnly()
*/
+ @Override
public boolean isReadOnly() {
return fReadOnly;
}
-
+
/* (non-Javadoc)
* @see org.eclipse.core.variables.IValueVariable#isContributed()
*/
+ @Override
public boolean isContributed() {
return false;
}

Back to the top