Updated ParameterValuesXViewerConverter wrt API changes in Nebula
XViewerConverter
diff --git a/examples/org.eclipse.sphinx.examples.hummingbird20.editors.nebula/src/org/eclipse/sphinx/examples/hummingbird20/editors/nebula/factory/ParameterValuesXViewerConverter.java b/examples/org.eclipse.sphinx.examples.hummingbird20.editors.nebula/src/org/eclipse/sphinx/examples/hummingbird20/editors/nebula/factory/ParameterValuesXViewerConverter.java
index 8e154c4..478c119 100644
--- a/examples/org.eclipse.sphinx.examples.hummingbird20.editors.nebula/src/org/eclipse/sphinx/examples/hummingbird20/editors/nebula/factory/ParameterValuesXViewerConverter.java
+++ b/examples/org.eclipse.sphinx.examples.hummingbird20.editors.nebula/src/org/eclipse/sphinx/examples/hummingbird20/editors/nebula/factory/ParameterValuesXViewerConverter.java
@@ -1,15 +1,15 @@
/**
* <copyright>
- *
+ *
* Copyright (c) 2012 itemis 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
* http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
+ *
+ * Contributors:
* itemis - Initial API and implementation
- *
+ *
* </copyright>
*/
package org.eclipse.sphinx.examples.hummingbird20.editors.nebula.factory;
@@ -43,7 +43,7 @@
}
}
- public void getInput(Control c, CellEditDescriptor ced, Object selObject) {
+ public Object getInput(Control c, CellEditDescriptor ced, Object selObject) {
if (c instanceof Text) {
Text textField = (Text) c;
if (selObject instanceof ParameterValue) {
@@ -58,7 +58,9 @@
}
}
}
+ return selObject;
}
+ return null;
}
protected boolean isPropertyValueChanged(Object newValue, Object oldValue) {
@@ -102,4 +104,9 @@
PlatformLogUtil.logAsError(Activator.getPlugin(), ex);
}
}
+
+ @Override
+ public boolean isValid(CellEditDescriptor ced, Object selObject) {
+ return true;
+ }
}