Author: DartPeng
Date: 2009-11-29 04:43:36 -0500 (Sun, 29 Nov 2009)
New Revision: 18912
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksReaderFormPage.java
Log:
JBIDE-5280
Analyze the config file when it dosen't contain the input type <param>
information.
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksReaderFormPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksReaderFormPage.java 2009-11-28
22:05:23 UTC (rev 18911)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksReaderFormPage.java 2009-11-29
09:43:36 UTC (rev 18912)
@@ -327,10 +327,30 @@
for (int i = 0; i < readerTypeList.size(); i++) {
Object r = readerTypeList.get(i);
if (r instanceof EObject) {
- if (r.getClass() == reader.getClass()) {
- readerCombo.select(i);
- break;
+ if (CsvReader.class.isInstance(reader) || CSV12Reader.class.isInstance(reader)) {
+ if (CsvReader.class.isInstance(r) || CSV12Reader.class.isInstance(r)) {
+ readerCombo.select(i);
+ break;
+ }
}
+ if (EDIReader.class.isInstance(reader) || EDI12Reader.class.isInstance(reader)) {
+ if (EDIReader.class.isInstance(r) || EDI12Reader.class.isInstance(r)) {
+ readerCombo.select(i);
+ break;
+ }
+ }
+ if (JsonReader.class.isInstance(reader) || Json12Reader.class.isInstance(reader)) {
+ if (JsonReader.class.isInstance(r) || Json12Reader.class.isInstance(r)) {
+ readerCombo.select(i);
+ break;
+ }
+ }
+ if (ReaderType.class.isInstance(reader)) {
+ if (ReaderType.class.isInstance(r)) {
+ readerCombo.select(i);
+ break;
+ }
+ }
}
}
}
Show replies by date