This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 12585
Collapse All | Expand All

(-)src/org/netbeans/modules/clazz/ClassDataLoader.java (-4 / +5 lines)
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;
(-)src/org/netbeans/modules/clazz/ClassDataObject.java (+11 lines)
Lines 45-50 Link Here
45
45
46
import org.openide.util.HelpCtx;
46
import org.openide.util.HelpCtx;
47
import org.openide.util.WeakListener;
47
import org.openide.util.WeakListener;
48
import org.openide.loaders.DataObjectExistsException;
48
49
49
50
50
/** This DataObject loads sourceless classes and provides a common framework
51
/** This DataObject loads sourceless classes and provides a common framework
Lines 96-101 Link Here
96
    public ClassDataObject(final FileObject fo,final MultiFileLoader loader) 
97
    public ClassDataObject(final FileObject fo,final MultiFileLoader loader) 
97
        throws org.openide.loaders.DataObjectExistsException {
98
        throws org.openide.loaders.DataObjectExistsException {
98
        super(fo, loader);
99
        super(fo, loader);
100
    }
101
    
102
    static ClassDataObject createSerDataObject( FileObject fo, ClassDataLoader dl )
103
                throws DataObjectExistsException, IOException {
104
        return new SerDataObject (fo, dl);
105
    }
106
107
    static ClassDataObject createCompiledDataObject( FileObject fo, ClassDataLoader dl )
108
                throws DataObjectExistsException, IOException {
109
        return new CompiledDataObject (fo, dl);
99
    }
110
    }
100
    
111
    
101
    private class PropL extends FileChangeAdapter implements PropertyChangeListener, Runnable {
112
    private class PropL extends FileChangeAdapter implements PropertyChangeListener, Runnable {

Return to bug 12585