Author: scabanovich
Date: 2007-09-13 09:55:43 -0400 (Thu, 13 Sep 2007)
New Revision: 3608
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLDoctypeHyperlink.java
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLRootHyperlinkPartitioner.java
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/util/TextScanner.java
Log:
JBIDE-893
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLDoctypeHyperlink.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLDoctypeHyperlink.java 2007-09-13
13:51:44 UTC (rev 3607)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLDoctypeHyperlink.java 2007-09-13
13:55:43 UTC (rev 3608)
@@ -10,12 +10,14 @@
******************************************************************************/
package org.jboss.tools.common.text.ext.hyperlink.xml;
+import org.eclipse.jdt.internal.core.ModelUpdater;
import org.eclipse.jface.text.IRegion;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.DocumentType;
import org.w3c.dom.Node;
+import org.jboss.tools.common.text.ext.ExtensionsPlugin;
import org.jboss.tools.common.text.ext.util.StructuredModelWrapper;
import org.jboss.tools.common.text.ext.util.Utils;
@@ -42,7 +44,9 @@
String text = "";
try {
text = getDocument().get(start, end - start);
- } catch (Exception x) {};
+ } catch (Exception x) {
+ ExtensionsPlugin.getPluginLog().logError(x);
+ };
String publicId = (node.getPublicId() == null ? "" : node.getPublicId());
String systemId = (node.getSystemId() == null ? "" : node.getSystemId());
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLRootHyperlinkPartitioner.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLRootHyperlinkPartitioner.java 2007-09-13
13:51:44 UTC (rev 3607)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xml/XMLRootHyperlinkPartitioner.java 2007-09-13
13:55:43 UTC (rev 3608)
@@ -19,6 +19,7 @@
import org.w3c.dom.Element;
import org.w3c.dom.Node;
+import org.jboss.tools.common.text.ext.ExtensionsPlugin;
import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlinkPartitioner;
import org.jboss.tools.common.text.ext.hyperlink.HyperlinkRegion;
import org.jboss.tools.common.text.ext.hyperlink.IHyperlinkPartitionRecognizer;
@@ -76,6 +77,7 @@
}
}
} catch (Exception x) {
+ ExtensionsPlugin.getPluginLog().logError(x);
} finally {
smw.dispose();
}
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/util/TextScanner.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/util/TextScanner.java 2007-09-13
13:51:44 UTC (rev 3607)
+++
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/util/TextScanner.java 2007-09-13
13:55:43 UTC (rev 3608)
@@ -222,6 +222,7 @@
count++;
}
} catch (BadLocationException ex) {
+ //ignore
}
return count;
}
Show replies by date