Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2004-12-05 05:27:07 +0000
committerslewis2004-12-05 05:27:07 +0000
commit3436ffedb196640665ae8e8bdb8e5c8f5d282905 (patch)
tree08d904923b4152ef8b303bfa79097bf686b72478
parent7de026443882ff03dfceafd7e185445ee4752070 (diff)
downloadorg.eclipse.ecf-3436ffedb196640665ae8e8bdb8e5c8f5d282905.tar.gz
org.eclipse.ecf-3436ffedb196640665ae8e8bdb8e5c8f5d282905.tar.xz
org.eclipse.ecf-3436ffedb196640665ae8e8bdb8e5c8f5d282905.zip
Added constructors to SharedObjectDescription class
-rw-r--r--framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/SharedObjectDescription.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/SharedObjectDescription.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/SharedObjectDescription.java
index 31798db76..cd9c8de43 100644
--- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/SharedObjectDescription.java
+++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/SharedObjectDescription.java
@@ -48,6 +48,9 @@ public class SharedObjectDescription implements Serializable {
public SharedObjectDescription(ClassLoader loader, ID id, String className, Map dict, long ident) {
this(loader, id, null, className, dict, ident);
}
+ public SharedObjectDescription(ID id, Class clazz, Map dict, long ident) {
+ this(clazz.getClassLoader(),id,clazz.getName(),dict,ident);
+ }
public SharedObjectDescription(ClassLoader loader, ID id, String className, Map dict) {
this(loader, id, null, className, dict, getNextUniqueIdentifier());
}
@@ -60,12 +63,21 @@ public class SharedObjectDescription implements Serializable {
public SharedObjectDescription(ID id, String className, Map dict) {
this(null, id, null, className, dict, getNextUniqueIdentifier());
}
+ public SharedObjectDescription(ID id, Class clazz, Map dict) {
+ this(id,clazz,dict,getNextUniqueIdentifier());
+ }
public SharedObjectDescription(ID id, String className, long ident) {
this(null, id, null, className, null, ident);
}
+ public SharedObjectDescription(ID id, Class clazz, long ident) {
+ this(id,clazz,null,ident);
+ }
public SharedObjectDescription(ID id, String className) {
this(id, className, getNextUniqueIdentifier());
}
+ public SharedObjectDescription(ID id, Class clazz) {
+ this(id,clazz,null);
+ }
public ID getID() {
return id;
}

Back to the top