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 11958
Collapse All | Expand All

(-)Bundle.properties (+4 lines)
Line 89 Link Here
89
#ClassElementNodeFactory
90
CTL_Class_name_format={C}
91
Line 90 Link Here
93
##  5    src-jtulach1.4         4/1/99   Jan Jancura     Object browser support
(-)Bundle_ja.properties (-8 / +7 lines)
Line 13 Link Here
13
14
Line 14 Link Here
16
Line 22 Link Here
22
PROP_isExecutable=\u5b9f\u884c\u53ef\u80fd
25
PROP_isExecutable=\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3067\u3059
23
--
Line 58 Link Here
58
HINT_executionSetName=\u5b9f\u884c\u306b\u95a2\u4fc2\u3059\u308b\u5c5e\u6027\u3002
61
HINT_executionSetName=\u5b9f\u884c\u306b\u95a2\u4fc2\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3002
59
--
Line 60 Link Here
60
HINT_fileParams= main() \u30e1\u30bd\u30c3\u30c9 (\u7a7a\u767d\u533a\u5207\u308a\u6587\u5b57\u5217\u3068\u3057\u3066)\u3002
63
HINT_fileParams= main() \u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570 (\u7a7a\u767d\u533a\u5207\u308a\u6587\u5b57\u5217\u3068\u3057\u3066)\u3002
61
--
Line 87 Link Here
87
HINT_throws=\u30b9\u30ed\u30fc\u4f8b\u5916\u3002
90
HINT_throws=\u30b9\u30ed\u30fc\u3055\u308c\u305f\u4f8b\u5916\u3002
88
--
(-)ClassDataLoader.java (-6 / +6 lines)
Lines 114-115 Link Here
114
  protected MultiDataObject.Entry createPrimaryEntry (FileObject primaryFile) {
114
  protected MultiDataObject.Entry createPrimaryEntry (MultiDataObject obj, FileObject primaryFile) {
115
    return new FileEntry(primaryFile);
115
    return new FileEntry(obj, primaryFile);
116
--
Lines 124-125 Link Here
124
  protected MultiDataObject.Entry createSecondaryEntry (FileObject secondaryFile) {
124
  protected MultiDataObject.Entry createSecondaryEntry (MultiDataObject obj, FileObject secondaryFile) {
125
    return new FileEntry.Numb(secondaryFile);
125
    return new FileEntry.Numb(obj, secondaryFile);
126
--
Line 165 Link Here
165
 *  5    Gandalf   1.4         3/14/99  Jaroslav Tulach Change of 
166
 *       MultiDataObject.Entry.
(-)ClassDataLoaderBeanInfo.java (+2 lines)
Line 90 Link Here
90
*  5    src-jtulach1.4         10/23/99 Ian Formanek    NO SEMANTIC CHANGE - Sun 
91
*       Microsystems Copyright in File Comment
(-)ClassDataNode.java (-90 / +34 lines)
Line 30 Link Here
30
import com.netbeans.ide.src.ElementProperties;
Lines 40-43 Link Here
40
  private final static String PROP_ISINTERFACE      = "isInterface";
41
  private final static String PROP_CLASS_NAME = "className";
41
  private final static String PROP_SUPERCLASS       = "superclass";
42
  private final static String PROP_MODIFIERS        = "modifiers";
43
  private final static String PROP_CLASSNAME        = "className";
44
--
Line 45 Link Here
45
  private final static String PROPERTY_SET_NAME     = "Property";
43
  private final static String PROP_IS_JAVA_BEAN = "isJavaBean";
46
--
44
  private final static String PROP_IS_APPLET = "isApplet";
45
  private final static String PROP_IS_EXECUTABLE = "isExecutable";
46
  private final static String PROP_FILE_PARAMS = "fileParams";
47
  private final static String PROP_EXECUTION = "execution";
48
Lines 47-48 Link Here
47
  private final static String PROP_FILE_PARAMS      = "fileParams";
48
  private final static String PROP_EXECUTION        = "execution";
Line 145 Link Here
145
             PROP_MODIFIERS,
146
             PROP_CLASS_NAME,
146
--
Lines 151-157 Link Here
151
               Object result = null;
152
               return obj.getClassName();
152
               try {
153
                 result = obj.getClassName();
154
               } catch (IOException ex) {
155
               } catch (ClassNotFoundException ex) {
156
               }
157
               return result;
158
--
Line 161 Link Here
161
             PROP_MODIFIERS,
156
             ElementProperties.PROP_MODIFIERS,
162
--
Lines 170-172 Link Here
170
               } catch (ThreadDeath td) {
165
               } catch (IOException ex) {
171
                 throw td;
166
                 // ignore - return null
172
               } catch (Throwable t) {
167
               } catch (ClassNotFoundException ex) {
173
--
Line 179 Link Here
179
             PROP_SUPERCLASS,
174
             ElementProperties.PROP_SUPERCLASS,
180
--
Lines 188-190 Link Here
188
               } catch (ThreadDeath td) {
183
               } catch (IOException ex) {
189
                 throw td;
184
                 // ignore - return null
190
               } catch (Throwable t) {
185
               } catch (ClassNotFoundException ex) {
191
--
Line 197 Link Here
197
             PROP_SUPERCLASS,
192
             PROP_IS_EXECUTABLE,
198
--
Lines 199-200 Link Here
199
             bundle.getString ("PROP_hasMainMethod"),
194
             bundle.getString ("PROP_isExecutable"),
200
             bundle.getString ("HINT_hasMainMethod")
195
             bundle.getString ("HINT_isExecutable")
201
--
Lines 203-211 Link Here
203
               boolean result = false;
198
               return new Boolean(obj.isExecutable());
204
               try {
205
                 obj.getHasMainMethod();
206
               } catch (ThreadDeath td) {
207
                 throw td;
208
               } catch (Throwable t) {
209
                 // ignore - return null
210
               }
211
               return new Boolean (result);
212
--
Line 215 Link Here
215
             PROP_ISINTERFACE,
202
             ElementProperties.PROP_CLASS_OR_INTERFACE,
216
--
Lines 221-229 Link Here
221
               boolean result = false;
208
               return new Boolean (obj.isInterface());
222
               try {
223
                 obj.isInterface();
224
               } catch (ThreadDeath td) {
225
                 throw td;
226
               } catch (Throwable t) {
227
                 // ignore - return null
228
               }
229
               return new Boolean (result);
230
--
Line 233 Link Here
233
             PROP_SUPERCLASS,
212
             PROP_IS_APPLET,
234
--
Lines 239-247 Link Here
239
               boolean result = false;
218
               return new Boolean (obj.isApplet());
240
               try {
241
                 obj.isApplet();
242
               } catch (ThreadDeath td) {
243
                 throw td;
244
               } catch (Throwable t) {
245
                 // ignore - return null
246
               }
247
               return new Boolean (result);
248
--
Line 251 Link Here
251
             PROP_SUPERCLASS,
222
             PROP_IS_JAVA_BEAN,
252
--
Lines 257-265 Link Here
257
               boolean result = false;
228
               return new Boolean (obj.isJavaBean());
258
               try {
259
                 obj.isJavaBean();
260
               } catch (ThreadDeath td) {
261
                 throw td;
262
               } catch (Throwable t) {
263
                 // ignore - return null
264
               }
265
               return new Boolean (result);
266
--
Line 404 Link Here
404
        if (dataObj.getHasMainMethod ())
367
        if (dataObj.isExecutable ())
405
--
Line 409 Link Here
409
      if (dataObj.getHasMainMethod ())
372
      if (dataObj.isExecutable ())
410
--
Lines 413-415 Link Here
413
    } catch (ThreadDeath td) {
376
    } catch (IOException ex) {
414
      throw td;
377
      setIconBase(ERROR_BASE);
415
    } catch (Throwable t) {
378
    } catch (ClassNotFoundException ex) {
416
--
Line 469 Link Here
432
 *  5    Gandalf   1.4         1/20/99  David Simonek   rework of class DO
(-)ClassDataObject.java (-35 / +13 lines)
Lines 79-83 Link Here
79
  /** bundle to obtain text information from */
80
  //private static java.util.ResourceBundle bundle =
81
  //  NbBundle.getBundle ("com.netbeans.developer.modules.locales.LoadersClazzBundle");
82
83
Lines 119-122 Link Here
119
    } catch (ThreadDeath td) {
114
    } catch (IOException ex) {
120
      throw td;
115
      System.out.println ("Chytam IOExc....");
121
    } catch (Throwable t) {
116
      return;
122
      System.out.println ("Chytam vsechny excs.....");
117
    } catch (ClassNotFoundException ex) {
123
--
118
      System.out.println ("Chytam ClassNFExc...");
Lines 150-156 Link Here
150
    try {
146
    return isJavaBean ();
151
      return isJavaBean ();
152
    } catch (ThreadDeath td) {
153
    } catch (Throwable t) {
154
      // ignore and return false if some error
155
    }
156
    return false;
157
--
Lines 275-280 Link Here
275
    try {
265
    if (isApplet ()) return new AppletDebuggerInfo(getPrimaryFile());
276
      if (isApplet ()) return new AppletDebuggerInfo(getPrimaryFile());
277
    } catch (IOException ex) {
278
    } catch (ClassNotFoundException ex) {
279
      // ignore and return "normal" debugger info at least
280
    }
281
--
Line 302 Link Here
302
  public boolean isInterface () throws IOException, ClassNotFoundException {
287
  public boolean isInterface () {
303
--
Line 314 Link Here
314
  public String getClassName () throws IOException, ClassNotFoundException {
299
  public String getClassName () {
315
--
Line 322 Link Here
322
  public boolean getHasMainMethod () throws IOException, ClassNotFoundException {
307
  public boolean isExecutable () {
323
--
Line 326 Link Here
326
  public boolean isJavaBean () throws IOException, ClassNotFoundException {
311
  public boolean isJavaBean () {
327
--
Line 330 Link Here
330
  public boolean isApplet () throws IOException, ClassNotFoundException {
315
  public boolean isApplet () {
331
--
Line 460 Link Here
445
 *  5    Gandalf   1.4         1/20/99  David Simonek   rework of class DO
(-)ClassElementImpl.java (+4 lines)
Line 319 Link Here
319
  public Object readResolve() {
320
    return new ClassElement(this, (SourceElement)null);
321
  }
Line 324 Link Here
327
*  5    src-jtulach1.4         2/17/99  Petr Hamernik   serialization changed.
(-)ClassElementNodeFactory.java (-22 / +21 lines)
Lines 96-108 Link Here
96
    ClassElementNode n =
96
    ClassChildren ch = new ClassChildren(this, element);
97
      new ClassElementNode(element, tree ? Children.LEAF : createClassChildren(element), false);
97
  
98
    CookieSet cs = n.getCookieSet ();
98
    ClassElementNode n = new ClassElementNode(element, ch, false);
99
    cs.add (new ElementCookie () {
99
    
100
      public Node getElementsParent () {
100
    
101
        ClassElementNode nn = new ClassElementNode (element, createClassChildren(element), false);
101
    if (tree) {
102
        CookieSet css = nn.getCookieSet ();
102
      CookieSet css = n.getCookieSet ();
103
        css.add ((FilterCookie) nn.getChildren ());
103
      css.add ((FilterCookie) n.getChildren ());
104
        return nn;
105
      }
106
    });
107
    n.setActions(getDefaultActions());
108
    if (tree)
109
--
Line 112 Link Here
107
      
108
      // filter out inner classes
109
      ClassElementFilter cel = new ClassElementFilter ();
110
      cel.setOrder (new int[] {
111
        ClassElementFilter.CONSTRUCTOR + ClassElementFilter.METHOD,
112
        ClassElementFilter.FIELD,
113
      });
114
      ch.setFilter (cel);
115
    }
116
    
117
    n.setActions(getDefaultActions());
118
    
Lines 115-122 Link Here
115
  /** Method which creates children for class node.
116
  * @param element class element
117
  * @return children for the class element
118
  */
119
  protected Children createClassChildren(ClassElement element) {
120
    return new ClassChildren(getInstance(), element);
121
  }
122
Line 144 Link Here
143
*  5    src-jtulach1.4         5/16/99  Jaroslav Tulach New hiearchy.
(-)ClassException.java (-4 / +3 lines)
Lines 9-11 Link Here
9
 * The Original Code is Forte for Java, Community Edition. The Initial
9
 * The Original Code is NetBeans. The Initial Developer of the Original
10
 * Developer of the Original Code is Sun Microsystems, Inc. Portions
10
 * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11
 * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
11
 * Microsystems, Inc. All Rights Reserved.
12
--
(-)ClassJavaDocImpl.java (-115 / +109 lines)
Lines 24-31 Link Here
24
  
24
25
  private static final JavaDocTag[] TAGS_EMPTY = new JavaDocTag[] {};
25
    private static final JavaDocTag[] TAGS_EMPTY = new JavaDocTag[] {};
26
  private static final JavaDocTag.See[] SEE_TAGS_EMPTY = new JavaDocTag.See[] {};
26
    private static final JavaDocTag.See[] SEE_TAGS_EMPTY = new JavaDocTag.See[] {};
27
  private static final JavaDocTag.Param[] PARAM_TAGS_EMPTY = new JavaDocTag.Param[] {};
27
    private static final JavaDocTag.Param[] PARAM_TAGS_EMPTY = new JavaDocTag.Param[] {};
28
  private static final JavaDocTag.Throws[] THROWS_TAGS_EMPTY = new JavaDocTag.Throws[] {};
28
    private static final JavaDocTag.Throws[] THROWS_TAGS_EMPTY = new JavaDocTag.Throws[] {};
29
  private static final JavaDocTag.SerialField[] SERIALFIELD_TAGS_EMPTY = new JavaDocTag.SerialField[] {};
29
    private static final JavaDocTag.SerialField[] SERIALFIELD_TAGS_EMPTY = new JavaDocTag.SerialField[] {};
30
  
30
31
  /** Creates new ClassJavaDocImpl */
31
    /** Creates new ClassJavaDocImpl */
32
--
Lines 33-115 Link Here
33
  }
33
    }
34
  
34
35
  /** Get the entire text of the comment.
35
    /** Get the entire text of the comment.
36
   * @return the whole text
36
     * @return the whole text
37
   */
37
     */
38
  public String getRawText() {
38
    public String getRawText() {
39
    return ""; // NOI18N
39
        return ""; // NOI18N
40
  }
40
    }
41
  
41
42
  /** Set the raw text of the comment.
42
    /** Set the raw text of the comment.
43
   * @param s the whole text to set
43
     * @param s the whole text to set
44
   * @exception SourceException if the modification cannot be performed
44
     * @exception SourceException if the modification cannot be performed
45
   */
45
     */
46
  public void setRawText(String s) throws SourceException {
46
    public void setRawText(String s) throws SourceException {
47
    throw new SourceException();
47
        throw new SourceException();
48
  }
48
    }
49
  
49
50
  /** Get the actual text, cleared of all (non-inline) tags.
50
    /** Get the actual text, cleared of all (non-inline) tags.
51
   * @return the plain text
51
     * @return the plain text
52
   */
52
     */
53
  public String getText() {
53
    public String getText() {
54
    return ""; // NOI18N
54
        return ""; // NOI18N
55
  }
55
    }
56
  
56
57
  /** Set the actual text.
57
    /** Set the actual text.
58
   * @param s the actual text, without any (non-inline) tags
58
     * @param s the actual text, without any (non-inline) tags
59
   * @exception SourceException if the modification cannot be performed
59
     * @exception SourceException if the modification cannot be performed
60
   */
60
     */
61
  public void setText(String s) throws SourceException {
61
    public void setText(String s) throws SourceException {
62
    throw new SourceException();
62
        throw new SourceException();
63
  }
63
    }
64
  
64
65
  /** Clears the javadoc from the source.
65
    /** Clears the javadoc from the source.
66
   */
66
     */
67
  public void clearJavaDoc() throws SourceException {
67
    public void clearJavaDoc() throws SourceException {
68
    throw new SourceException();  
68
        throw new SourceException();
69
  }
69
    }
70
  
70
71
  /** Test if this javadoc is empty.
71
    /** Test if this javadoc is empty.
72
   * @return true if it is not generated to the source.
72
     * @return true if it is not generated to the source.
73
   */
73
     */
74
  public boolean isEmpty() {
74
    public boolean isEmpty() {
75
    return true;
75
        return true;
76
  }
76
    }
77
  
77
78
  /** Gets all tags from comment.
78
    /** Gets all tags from comment.
79
   */
79
     */
80
  public JavaDocTag[] getTags() {
80
    public JavaDocTag[] getTags() {
81
    return TAGS_EMPTY;
81
        return TAGS_EMPTY;
82
  }
82
    }
83
  
83
84
  /** Gets all tags of given name
84
    /** Gets all tags of given name
85
   */
85
     */
86
  public JavaDocTag[] getTags(String name) {
86
    public JavaDocTag[] getTags(String name) {
87
    return TAGS_EMPTY;
87
        return TAGS_EMPTY;
88
  }
88
    }
89
  
89
90
  /** Adds removes or sets tags used in this comment 
90
    /** Adds removes or sets tags used in this comment
91
   * @param elems the new initializers
91
     * @param elems the new initializers
92
   * @param action {@link #ADD}, {@link #REMOVE}, or {@link #SET}
92
     * @param action {@link #ADD}, {@link #REMOVE}, or {@link #SET}
93
   * @exception SourceException if impossible
93
     * @exception SourceException if impossible
94
   */
94
     */
95
  public void changeTags(JavaDocTag[] tags,int action) throws SourceException {
95
    public void changeTags(JavaDocTag[] tags,int action) throws SourceException {
96
    throw new SourceException();
96
        throw new SourceException();
97
  }
97
    }
98
  
98
99
  /** Gets all @see tags 
99
    /** Gets all @see tags
100
   */
100
     */
101
  public JavaDocTag.See[] getSeeTags() {
101
    public JavaDocTag.See[] getSeeTags() {
102
    return SEE_TAGS_EMPTY;
102
        return SEE_TAGS_EMPTY;
103
  }
103
    }
104
  
104
105
  /** The JavaDoc of a class.
105
    /** The JavaDoc of a class.
106
  * Class javadoc adds no special tags.
106
    * Class javadoc adds no special tags.
107
  */
108
  static class Class extends ClassJavaDocImpl implements JavaDoc.Class {    
109
      }
110
      
111
  /** The JavaDoc of a field.
112
  * <p>Currently adds special @SerialField tag
113
  */
114
  static class Field extends ClassJavaDocImpl implements JavaDoc.Field {  
115
    /** Gets SerialField tags.
116
--
Lines 117-126 Link Here
117
    public JavaDocTag.SerialField[] getSerialFieldTags() {
108
    static class Class extends ClassJavaDocImpl implements JavaDoc.Class {
118
      return SERIALFIELD_TAGS_EMPTY;
109
    }
119
    };
110
120
  }
111
    /** The JavaDoc of a field.
121
  
112
    * <p>Currently adds special @SerialField tag
122
  /** The JavaDoc of a method. Adds two special tags: @para tag and @throws tag.  
123
  */
124
  static class Method extends ClassJavaDocImpl implements JavaDoc.Method {
125
    
126
    /** Gets param tags.
127
--
Lines 128-130 Link Here
128
    public JavaDocTag.Param[] getParamTags() {
114
    static class Field extends ClassJavaDocImpl implements JavaDoc.Field {
129
      return PARAM_TAGS_EMPTY;
115
        /** Gets SerialField tags.
130
    };
116
        */
131
--
117
        public JavaDocTag.SerialField[] getSerialFieldTags() {
118
            return SERIALFIELD_TAGS_EMPTY;
119
        };
120
    }
Line 132 Link Here
132
    /** Gets throws tags.
122
    /** The JavaDoc of a method. Adds two special tags: @para tag and @throws tag.
133
--
Lines 134-137 Link Here
134
    public JavaDocTag.Throws[] getThrowsTags() {
124
    static class Method extends ClassJavaDocImpl implements JavaDoc.Method {
135
      return THROWS_TAGS_EMPTY;
125
136
    };
126
        /** Gets param tags.
137
  }
127
        */
138
--
128
        public JavaDocTag.Param[] getParamTags() {
129
            return PARAM_TAGS_EMPTY;
130
        };
131
132
        /** Gets throws tags.
133
        */
134
        public JavaDocTag.Throws[] getThrowsTags() {
135
            return THROWS_TAGS_EMPTY;
136
        };
137
    }
(-)ClassModule.java (-11 / +3 lines)
Line 28 Link Here
28
public class ClassModule implements ModuleInstall, ClassElement.Finder {
28
public class ClassModule extends ModuleInstall implements ClassElement.Finder {
29
--
Lines 37-41 Link Here
37
  /** Module installed for the first time. */
38
  public void installed() {
39
    restored ();
40
  }
41
Lines 52-55 Link Here
52
  /** Module is being closed. */
53
  public boolean closing () {
54
    return true; // agree to close
55
  }
Line 60 Link Here
51
 *  5    Gandalf   1.4         10/1/99  Petr Hrebejk    org.openide.modules.ModuleInstall
52
 *        changed to class + some methods added
(-)CompiledDataObject.java (+26 lines)
Line 24 Link Here
24
import java.util.Enumeration;
Line 38 Link Here
39
import org.openide.execution.Executor;
Line 265 Link Here
267
    
268
    private static class ExecSupport extends org.openide.loaders.ExecSupport {
269
        ExecSupport(MultiDataObject.Entry en) {
270
            super(en);
271
        }
272
        
273
        /**
274
         * Iterates through Execution service type, looking for some exec
275
         * service from the java module.
276
         */
277
        protected Executor defaultExecutor() {
278
            Enumeration servs = org.openide.TopManager.getDefault().getServices().
279
                services(Executor.class);
280
            while (servs.hasMoreElements()) {
281
                Object o = servs.nextElement();
282
                if (o.getClass().getName().startsWith(
283
                    "org.netbeans.modules.java.JavaProcessExecutor"
284
                    )) {
285
                    return (Executor)o;
286
                }
287
            }
288
            return super.defaultExecutor();
289
        }
290
    }
(-)ConstructorElementImpl.java (-10 / +6 lines)
Line 35 Link Here
35
  private Type[] exceptions;
35
  private Identifier[] exceptions;
36
--
Line 79 Link Here
79
  public Type[] getExceptions () {
79
  public Identifier[] getExceptions () {
80
--
Line 87 Link Here
87
      exceptions = new Type[reflEx.length];
87
      exceptions = new Identifier[reflEx.length];
88
--
Line 90 Link Here
90
        exceptions[i] = Type.createFromClass(reflEx[i]);
90
        exceptions[i] = Identifier.create(reflEx[i].getName());
91
--
Line 98 Link Here
98
  public void setExceptions (Type[] exceptions) throws SourceException {
98
  public void setExceptions (Identifier[] exceptions) throws SourceException {
99
--
Line 128 Link Here
128
*  5    src-jtulach1.4         3/15/99  Petr Hamernik   
(-)ElementImpl.java (-3 / +4 lines)
Lines 22-23 Link Here
22
import com.netbeans.ide.nodes.Node;
22
import org.openide.nodes.Node;
23
import com.netbeans.ide.src.Element;
23
import org.openide.src.Element;
24
--
Line 67 Link Here
67
*  5    src-jtulach1.4         6/9/99   Ian Formanek    ---- Package Change To 
68
*       org.openide ----
(-)FieldElementImpl.java (+3 lines)
Line 32 Link Here
32
static final long serialVersionUID =-4800326520399939102L;
Line 80 Link Here
81
*  5    src-jtulach1.4         8/9/99   Ian Formanek    Generated Serial Version 
82
*       UID
(-)MemberElementImpl.java (-7 / +7 lines)
Lines 68-73 Link Here
68
      if (data instanceof Class)
68
      String s = (data instanceof Class) ?
69
        // Class doesn't implement Member interface...
69
        Utilities.getClassName((Class)data) :
70
        name = Identifier.create(
70
        ((Member)data).getName();
71
          Utilities.getShortClassName((Class)data));
71
      
72
      else
72
      name = Identifier.create(s);
73
        name = Identifier.create(((Member)data).getName());
74
--
Line 95 Link Here
94
*  5    src-jtulach1.4         5/12/99  Petr Hamernik   ide.src.Identifier 
95
*       updated
(-)MethodElementImpl.java (+2 lines)
Line 59 Link Here
59
*  5    src-jtulach1.4         10/23/99 Ian Formanek    NO SEMANTIC CHANGE - Sun 
60
*       Microsystems Copyright in File Comment
(-)SerDataNode.java (-6 / +5 lines)
Line 35 Link Here
35
    "com/netbeans/developer/modules/resources/class/ser";
35
    "/com/netbeans/developer/modules/loaders/class/resources/ser";
36
--
Line 37 Link Here
37
    "com/netbeans/developer/modules/resources/class/serMain";
37
    "/com/netbeans/developer/modules/loaders/class/resources/serMain";
38
--
Line 39 Link Here
39
    "com/netbeans/developer/modules/resources/class/serError";
39
    "/com/netbeans/developer/modules/loaders/class/resources/serError";
40
--
Line 79 Link Here
79
 *  5    src-jtulach1.4         3/22/99  Ian Formanek    Icons moved from 
80
 *       modules/resources to this package
(-)SerDataObject.java (+11 lines)
Line 18 Link Here
18
import org.openide.loaders.InstanceSupport;
Line 20 Link Here
21
import org.openide.util.HelpCtx;
Line 56 Link Here
58
  public HelpCtx getHelpCtx () {
59
    HelpCtx test = InstanceSupport.findHelp (instanceSupport);
60
    if (test != null)
61
      return test;
62
    else
63
      return new HelpCtx (SerDataObject.class);
64
  }
65
Line 60 Link Here
70
 *  5    src-jtulach1.4         6/25/99  Jesse Glick     Instance context help.
(-)SourceElementImpl.java (-23 / +18 lines)
Line 28 Link Here
28
* @author Dafe Simonek
28
* @author Dafe Simonek, Jan Jancura
29
--
Lines 39-43 Link Here
39
  /** Soft reference to the map of class elements of
40
  * all classes and interfaces declared in the hierarchy tree under
41
  * the class which we are representing */
42
  private SoftReference classesMap;
43
Lines 100-106 Link Here
100
    Map allClassesMap = (Map)allClasses.get();
95
    return (ClassElement)getAllClassesMap ().get(name);
101
    if (allClassesMap == null) {
102
      // soft ref null, we must recreate
103
      allClassesMap = createClassesMap();
104
      allClasses = new SoftReference(allClassesMap);
105
    }
106
    return (ClassElement)allClassesMap.get(name);
107
--
Lines 113-119 Link Here
113
    Map allClassesMap = (Map)allClasses.get();
102
    return (ClassElement[])getAllClassesMap ().values().toArray (new ClassElement[0]);
114
    if (allClassesMap == null) {
115
      // soft ref null, we must recreate
116
      allClassesMap = createClassesMap();
117
      allClasses = new SoftReference(allClassesMap);
118
    }
119
    return (ClassElement[])allClassesMap.values().toArray();
120
--
Line 150 Link Here
133
  /** Returns map with all innerclasses.
134
  * @return map with all innerclasses.
135
  */
136
  private Map getAllClassesMap () {
137
    Map allClassesMap = (allClasses == null) ? null : (Map)allClasses.get();
138
    if (allClassesMap == null) {
139
      // soft ref null, we must recreate
140
      allClassesMap = createClassesMap();
141
      // remember it, please ...
142
      allClasses = new SoftReference(allClassesMap);
143
    }
144
    return allClassesMap;
145
  }
146
Line 187 Link Here
184
*  5    src-jtulach1.4         4/1/99   Jan Jancura     Object browser support

Return to bug 11958