Author: snjeza
Date: 2012-02-01 16:55:39 -0500 (Wed, 01 Feb 2012)
New Revision: 38378
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java
Log:
JBIDE-10763 Project examples cache logic is faulty
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java
===================================================================
---
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java 2012-02-01
21:05:44 UTC (rev 38377)
+++
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/model/ProjectUtil.java 2012-02-01
21:55:39 UTC (rev 38378)
@@ -80,6 +80,8 @@
public static final String CHEATSHEETS = "cheatsheets"; //$NON-NLS-1$
public static final String PROTOCOL_FILE = "file"; //$NON-NLS-1$
+
+ public static final String PROTOCOL_PLATFORM = "platform"; //$NON-NLS-1$
private static final String PROJECT_EXAMPLES_XML_EXTENSION_ID =
"org.jboss.tools.project.examples.projectExamplesXml"; //$NON-NLS-1$
@@ -519,7 +521,7 @@
public static File getProjectExamplesFile(URL url, String prefix,
String suffix, IProgressMonitor monitor) {
File file = null;
- if (PROTOCOL_FILE.equals(url.getProtocol())) {
+ if (PROTOCOL_FILE.equals(url.getProtocol()) ||
PROTOCOL_PLATFORM.equalsIgnoreCase(url.getProtocol())) {
try {
// assume all illegal characters have been properly encoded, so
// use URI class to unencode
Show replies by date