Lines 42-52
Link Here
|
42 |
static final long serialVersionUID =3149080169747384034L; |
42 |
static final long serialVersionUID =3149080169747384034L; |
43 |
/** Creates a new ClassDataLoader */ |
43 |
/** Creates a new ClassDataLoader */ |
44 |
public ClassDataLoader () { |
44 |
public ClassDataLoader () { |
45 |
super (ClassDataObject.class); |
45 |
super ("org.netbeans.modules.clazz.ClassDataObject"); |
|
|
46 |
//super (ClassDataObject.class); |
46 |
} |
47 |
} |
47 |
|
48 |
|
48 |
protected String defaultDisplayName() { |
49 |
protected String defaultDisplayName() { |
49 |
return Util.getString("PROP_ClassLoader_Name"); |
50 |
return NbBundle.getMessage (ClassDataLoader.class, "PROP_ClassLoader_Name"); |
50 |
} |
51 |
} |
51 |
|
52 |
|
52 |
protected synchronized SystemAction[] defaultActions() { |
53 |
protected synchronized SystemAction[] defaultActions() { |
Lines 104-114
Link Here
|
104 |
throws DataObjectExistsException, IOException { |
105 |
throws DataObjectExistsException, IOException { |
105 |
if (SER_EXT.equals(primaryFile.getExt())) { |
106 |
if (SER_EXT.equals(primaryFile.getExt())) { |
106 |
// serialized file, return bean data object |
107 |
// serialized file, return bean data object |
107 |
return new SerDataObject (primaryFile, this); |
108 |
return ClassDataObject.createSerDataObject (primaryFile, this); |
108 |
} |
109 |
} |
109 |
if (CLASS_EXT.equals(primaryFile.getExt())) { |
110 |
if (CLASS_EXT.equals(primaryFile.getExt())) { |
110 |
// class file, return class data object |
111 |
// class file, return class data object |
111 |
return new CompiledDataObject (primaryFile, this); |
112 |
return ClassDataObject.createCompiledDataObject (primaryFile, this); |
112 |
} |
113 |
} |
113 |
// otherwise |
114 |
// otherwise |
114 |
return null; |
115 |
return null; |