Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbateman2007-09-25 00:38:33 +0000
committercbateman2007-09-25 00:38:33 +0000
commit40642ce88c60fbbfc3520e7e10e2793c9caaa8e3 (patch)
treeea9c59fad283bb2b3d2fd9e91b439438145a3ca7
parentf1d1a6bf30fcbeb9900d47fe12622f3c29ab98ed (diff)
downloadwebtools.jsf-40642ce88c60fbbfc3520e7e10e2793c9caaa8e3.tar.gz
webtools.jsf-40642ce88c60fbbfc3520e7e10e2793c9caaa8e3.tar.xz
webtools.jsf-40642ce88c60fbbfc3520e7e10e2793c9caaa8e3.zip
fixed up some dead code.
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/ConverterValidatorIdDialogField.java22
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/JSFAttributeCellEditorFactory.java20
2 files changed, 2 insertions, 40 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/ConverterValidatorIdDialogField.java b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/ConverterValidatorIdDialogField.java
index 07c7ce30d..a18eaa606 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/ConverterValidatorIdDialogField.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/ConverterValidatorIdDialogField.java
@@ -11,8 +11,6 @@
*******************************************************************************/
package org.eclipse.jst.pagedesigner.jsf.ui.celleditors;
-import java.util.Arrays;
-
import org.eclipse.jst.jsf.common.ui.internal.dialogfield.ComboDialogField;
import org.eclipse.jst.pagedesigner.properties.attrgroup.IElementContextable;
import org.eclipse.swt.SWT;
@@ -40,25 +38,7 @@ public class ConverterValidatorIdDialogField extends ComboDialogField implements
*/
public void setElementContext(IDOMNode ancester, IDOMElement element)
{
- String[] results = null;
- if ("validator-id".equalsIgnoreCase(_elementId))
- {
- //results = FacesUtil.getRegisteredConverterIds(project);
-
- }
- else
- {
- // results = FacesUtil.getRegisteredValidatorIds(project);
- }
- if (results != null)
- {
- Arrays.sort(results);
- setItems(results);
- }
- else
- {
- setItems(new String[0]);
- }
+ setItems(new String[0]);
}
/**
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/JSFAttributeCellEditorFactory.java b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/JSFAttributeCellEditorFactory.java
index e9931e619..aecbc4211 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/JSFAttributeCellEditorFactory.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner.jsf.ui/src/org/eclipse/jst/pagedesigner/jsf/ui/celleditors/JSFAttributeCellEditorFactory.java
@@ -46,33 +46,15 @@ public class JSFAttributeCellEditorFactory implements IAttributeCellEditorFactor
public CellEditor createCellEditor(Composite parent, IAttributeDescriptor attr, Element element)
{
String type = attr.getValueType();
- String[] results = null;
+
if (type.equalsIgnoreCase(CONVERTERID))
{
- // XXX
- // results = FacesUtil.getRegisteredConverterIds(project);
Map map = new HashMap();
- if (results != null)
- {
- for (int i = 0; i < results.length; i++)
- {
- map.put(results[i], results[i]);
- }
- }
return LabeledComboBoxCellEditor.newInstance(parent, map, SWT.NONE);
}
else if (type.equalsIgnoreCase(VALIDATORID))
{
- // XXX
- // results = FacesUtil.getRegisteredValidatorIds(project);
Map map = new HashMap();
- if (results != null)
- {
- for (int i = 0; i < results.length; i++)
- {
- map.put(results[i], results[i]);
- }
- }
return LabeledComboBoxCellEditor.newInstance(parent, map, SWT.NONE);
}
return null;

Back to the top