* @param values
* the possible values of this variable
*/
- public void setValues(Object set, String[] values) {
- Assert.isNotNull(set);
- Assert.isTrue(values.length > 0);
- fValueMap.put(set, values);
- if (fDefaultKey == null) {
- fDefaultKey = set;
- fSet = getDefaultValue();
- }
- }
+// public void setValues(Object set, String[] values) {
+// Assert.isNotNull(set);
+// Assert.isTrue(values.length > 0);
+// fValueMap.put(set, values);
+// if (fDefaultKey == null) {
+// fDefaultKey = set;
+// fSet = getDefaultValue();
+// }
+// }
/*
* @see org.eclipse.jface.text.templates.TemplateVariable#setValues(java.lang.String[])
*******************************************************************************/
package net.sourceforge.phpdt.internal.ui.text.template.contentassist;
-import java.text.MessageFormat;
+//import java.text.MessageFormat;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
* @param key
* the string used to get the bundle value, must not be null
*/
- public static String getFormattedString(String key, Object arg) {
- return MessageFormat.format(getString(key), new Object[] { arg });
- }
+// public static String getFormattedString(String key, Object arg) {
+// return MessageFormat.format(getString(key), new Object[] { arg });
+// }
/**
* Gets a string from the resource bundle and formats it with arguments
*/
- public static String getFormattedString(String key, Object[] args) {
- return MessageFormat.format(getString(key), args);
- }
+// public static String getFormattedString(String key, Object[] args) {
+// return MessageFormat.format(getString(key), args);
+// }
}
return fDisplayString;
}
- public void setDisplayString(String displayString) {
- fDisplayString = displayString;
- }
+// public void setDisplayString(String displayString) {
+// fDisplayString = displayString;
+// }
/*
* @see ICompletionProposal#getImage()
return fRelevance;
}
- public void setRelevance(int relevance) {
- fRelevance = relevance;
- }
+// public void setRelevance(int relevance) {
+// fRelevance = relevance;
+// }
- public Template getTemplate() {
- return fTemplate;
- }
+// public Template getTemplate() {
+// return fTemplate;
+// }
/*
* @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getInformationControlCreator()
*******************************************************************************/
package net.sourceforge.phpdt.internal.ui.text.template.preferences;
-import java.text.MessageFormat;
+//import java.text.MessageFormat;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
* @param key
* the string used to get the bundle value, must not be null
*/
- public static String getFormattedString(String key, Object arg) {
- return MessageFormat.format(getString(key), new Object[] { arg });
- }
+// public static String getFormattedString(String key, Object arg) {
+// return MessageFormat.format(getString(key), new Object[] { arg });
+// }
/**
* Gets a string from the resource bundle and formats it with arguments
*/
- public static String getFormattedString(String key, Object[] args) {
- return MessageFormat.format(getString(key), args);
- }
+// public static String getFormattedString(String key, Object[] args) {
+// return MessageFormat.format(getString(key), args);
+// }
}