Author: dsakovich
Date: 2008-10-20 08:47:39 -0400 (Mon, 20 Oct 2008)
New Revision: 10982
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java
Log:
Code adjustment
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java 2008-10-20
10:32:11 UTC (rev 10981)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/Constants.java 2008-10-20
12:47:39 UTC (rev 10982)
@@ -24,4 +24,5 @@
public static final String PIXEL = "px"; //$NON-NLS-1$
public static final String PERCENT = "%"; //$NON-NLS-1$
public static final String COMMA = ","; //$NON-NLS-1$
+ public static final String FILE_PREFIX = "file://"; //$NON-NLS-1$
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java 2008-10-20
10:32:11 UTC (rev 10981)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/DocTypeUtil.java 2008-10-20
12:47:39 UTC (rev 10982)
@@ -339,7 +339,7 @@
File file = new File(attr.getValue());
if (!file.exists()) {
// corrected path
- attr.setValue(initFile.getParent()
+ attr.setValue(Constants.FILE_PREFIX + initFile.getParent()
+ File.separator + attr.getValue());
}
Show replies by date