Author: scabanovich
Date: 2012-01-26 16:03:50 -0500 (Thu, 26 Jan 2012)
New Revision: 38224
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java
Log:
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java 2012-01-26
21:02:10 UTC (rev 38223)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/editor/XMLContentDescriber.java 2012-01-26
21:03:50 UTC (rev 38224)
@@ -19,7 +19,6 @@
import org.jboss.tools.common.CommonPlugin;
import org.jboss.tools.common.meta.impl.XModelMetaDataImpl;
import org.jboss.tools.common.model.loaders.EntityRecognizerContext;
-import org.jboss.tools.common.model.options.PreferenceModelUtilities;
import org.jboss.tools.common.util.FileUtil;
/**
@@ -31,7 +30,7 @@
super.describe(contents, description);
contents.reset();
String text = FileUtil.readStream(contents);
- if(!"".equals(text.trim())) {
+ if(text.trim().length() > 0) {
return describe(text, description);
}
return INDETERMINATE;
Show replies by date