Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2014-04-18 20:30:42 -0400
committerDavid Miller2014-04-23 16:11:42 -0400
commit12e0e49add1caeaa7ec6f6f7614a78ee60e929d1 (patch)
tree4aed62bce213a287093b5612095d2b49479ce8f8 /plugins/org.eclipse.osee.framework.jdk.core
parent2c90247fdb4d60df3a0c6223259637fb29830800 (diff)
downloadorg.eclipse.osee-12e0e49add1caeaa7ec6f6f7614a78ee60e929d1.tar.gz
org.eclipse.osee-12e0e49add1caeaa7ec6f6f7614a78ee60e929d1.tar.xz
org.eclipse.osee-12e0e49add1caeaa7ec6f6f7614a78ee60e929d1.zip
refinement: Simplify usage of ResourceToken
Diffstat (limited to 'plugins/org.eclipse.osee.framework.jdk.core')
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/ClassBasedResourceToken.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/ClassBasedResourceToken.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/ClassBasedResourceToken.java
index 1b042600e37..c541583b7b5 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/ClassBasedResourceToken.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/type/ClassBasedResourceToken.java
@@ -12,6 +12,7 @@
package org.eclipse.osee.framework.jdk.core.type;
import java.net.URL;
+import org.eclipse.osee.framework.jdk.core.util.Lib;
/**
* @author Ryan D. Brooks
@@ -28,7 +29,11 @@ public final class ClassBasedResourceToken extends ResourceToken {
}
public ClassBasedResourceToken(Long uuid, String name, Class<?> clazz) {
- this(uuid, name, clazz, "");
+ this(uuid, name, clazz, Lib.getExtension(name) + "/");
+ }
+
+ public ClassBasedResourceToken(String name, Class<?> clazz) {
+ this(-1L, name, clazz);
}
@Override

Back to the top