Lines 7-13
Link Here
|
7 |
* http://www.sun.com/ |
7 |
* http://www.sun.com/ |
8 |
* |
8 |
* |
9 |
* The Original Code is NetBeans. The Initial Developer of the Original |
9 |
* The Original Code is NetBeans. The Initial Developer of the Original |
10 |
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun |
10 |
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun |
11 |
* Microsystems, Inc. All Rights Reserved. |
11 |
* Microsystems, Inc. All Rights Reserved. |
12 |
*/ |
12 |
*/ |
13 |
|
13 |
|
Lines 40-50
Link Here
|
40 |
} |
40 |
} |
41 |
}; |
41 |
}; |
42 |
|
42 |
|
43 |
/** Well known capability of being compiled */ |
43 |
/** Well known capability of being compiled. |
|
|
44 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
45 |
*/ |
44 |
public static final FileSystemCapability COMPILE = new FileSystemCapability (); |
46 |
public static final FileSystemCapability COMPILE = new FileSystemCapability (); |
45 |
/** Well known ability to be executed */ |
47 |
/** Well known ability to be executed. |
|
|
48 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
49 |
*/ |
46 |
public static final FileSystemCapability EXECUTE = new FileSystemCapability (); |
50 |
public static final FileSystemCapability EXECUTE = new FileSystemCapability (); |
47 |
/** Well known ability to be debugged */ |
51 |
/** Well known ability to be debugged. |
|
|
52 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
53 |
*/ |
48 |
public static final FileSystemCapability DEBUG = new FileSystemCapability (); |
54 |
public static final FileSystemCapability DEBUG = new FileSystemCapability (); |
49 |
/** Well known ability to contain documentation files */ |
55 |
/** Well known ability to contain documentation files */ |
50 |
public static final FileSystemCapability DOC = new FileSystemCapability (); |
56 |
public static final FileSystemCapability DOC = new FileSystemCapability (); |
Lines 65-70
Link Here
|
65 |
|
71 |
|
66 |
/** All filesystems that are capable of this capability. |
72 |
/** All filesystems that are capable of this capability. |
67 |
* @return enumeration of FileSystems that satifies this capability |
73 |
* @return enumeration of FileSystems that satifies this capability |
|
|
74 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
68 |
*/ |
75 |
*/ |
69 |
public Enumeration fileSystems () { |
76 |
public Enumeration fileSystems () { |
70 |
return new FilterEnumeration (ExternalUtil.getRepository ().fileSystems ()) { |
77 |
return new FilterEnumeration (ExternalUtil.getRepository ().fileSystems ()) { |
Lines 77-82
Link Here
|
77 |
|
84 |
|
78 |
/** Find a resource in repository, ignoring not capable filesystems. |
85 |
/** Find a resource in repository, ignoring not capable filesystems. |
79 |
* @param resName name of the resource |
86 |
* @param resName name of the resource |
|
|
87 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
80 |
*/ |
88 |
*/ |
81 |
public FileObject findResource (String resName) { |
89 |
public FileObject findResource (String resName) { |
82 |
Enumeration en = fileSystems (); |
90 |
Enumeration en = fileSystems (); |
Lines 95-100
Link Here
|
95 |
* that satifies this capability, returning all matches. |
103 |
* that satifies this capability, returning all matches. |
96 |
* @param name name of the resource |
104 |
* @param name name of the resource |
97 |
* @return enumeration of {@link FileObject}s |
105 |
* @return enumeration of {@link FileObject}s |
|
|
106 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
98 |
*/ |
107 |
*/ |
99 |
public Enumeration findAllResources(String name) { |
108 |
public Enumeration findAllResources(String name) { |
100 |
Vector v = new Vector(8); |
109 |
Vector v = new Vector(8); |
Lines 122-127
Link Here
|
122 |
* |
131 |
* |
123 |
* @return {@link FileObject} that represents file with given name or |
132 |
* @return {@link FileObject} that represents file with given name or |
124 |
* <CODE>null</CODE> if the file does not exist |
133 |
* <CODE>null</CODE> if the file does not exist |
|
|
134 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
125 |
*/ |
135 |
*/ |
126 |
public final FileObject find (String aPackage, String name, String ext) { |
136 |
public final FileObject find (String aPackage, String name, String ext) { |
127 |
Enumeration en = fileSystems (); |
137 |
Enumeration en = fileSystems (); |
Lines 147-152
Link Here
|
147 |
* a package and not a file name |
157 |
* a package and not a file name |
148 |
* |
158 |
* |
149 |
* @return enumeration of {@link FileObject}s |
159 |
* @return enumeration of {@link FileObject}s |
|
|
160 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
150 |
*/ |
161 |
*/ |
151 |
public final Enumeration findAll (String aPackage, String name, String ext) { |
162 |
public final Enumeration findAll (String aPackage, String name, String ext) { |
152 |
Enumeration en = fileSystems (); |
163 |
Enumeration en = fileSystems (); |
Lines 220-231
Link Here
|
220 |
} |
231 |
} |
221 |
|
232 |
|
222 |
/** Getter for value of compiling capability. |
233 |
/** Getter for value of compiling capability. |
|
|
234 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
223 |
*/ |
235 |
*/ |
224 |
public boolean getCompile () { |
236 |
public boolean getCompile () { |
225 |
return compilation; |
237 |
return compilation; |
226 |
} |
238 |
} |
227 |
|
239 |
|
228 |
/** Setter for allowing compiling capability. |
240 |
/** Setter for allowing compiling capability. |
|
|
241 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
229 |
*/ |
242 |
*/ |
230 |
public void setCompile(boolean val) { |
243 |
public void setCompile(boolean val) { |
231 |
if (val != compilation) { |
244 |
if (val != compilation) { |
Lines 237-248
Link Here
|
237 |
} |
250 |
} |
238 |
|
251 |
|
239 |
/** Getter for value of executiong capability. |
252 |
/** Getter for value of executiong capability. |
|
|
253 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
240 |
*/ |
254 |
*/ |
241 |
public boolean getExecute () { |
255 |
public boolean getExecute () { |
242 |
return execution; |
256 |
return execution; |
243 |
} |
257 |
} |
244 |
|
258 |
|
245 |
/** Setter for allowing executing capability. |
259 |
/** Setter for allowing executing capability. |
|
|
260 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
246 |
*/ |
261 |
*/ |
247 |
public void setExecute (boolean val) { |
262 |
public void setExecute (boolean val) { |
248 |
if (val != execution) { |
263 |
if (val != execution) { |
Lines 254-265
Link Here
|
254 |
} |
269 |
} |
255 |
|
270 |
|
256 |
/** Getter for value of debugging capability. |
271 |
/** Getter for value of debugging capability. |
|
|
272 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
257 |
*/ |
273 |
*/ |
258 |
public boolean getDebug () { |
274 |
public boolean getDebug () { |
259 |
return debug; |
275 |
return debug; |
260 |
} |
276 |
} |
261 |
|
277 |
|
262 |
/** Setter for allowing debugging capability. |
278 |
/** Setter for allowing debugging capability. |
|
|
279 |
* @deprecated Please use the <a href="http://www.netbeans.org/download/dev/javadoc/JavaSupportAPIs/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. |
263 |
*/ |
280 |
*/ |
264 |
public void setDebug (boolean val) { |
281 |
public void setDebug (boolean val) { |
265 |
if (val != debug) { |
282 |
if (val != debug) { |
Lines 287-294
Link Here
|
287 |
} |
304 |
} |
288 |
} |
305 |
} |
289 |
|
306 |
|
290 |
/** Adds listener. |
|
|
291 |
*/ |
292 |
public synchronized void addPropertyChangeListener (PropertyChangeListener l) { |
307 |
public synchronized void addPropertyChangeListener (PropertyChangeListener l) { |
293 |
if (supp == null) { |
308 |
if (supp == null) { |
294 |
supp = new PropertyChangeSupport (this); |
309 |
supp = new PropertyChangeSupport (this); |
Lines 296-303
Link Here
|
296 |
supp.addPropertyChangeListener (l); |
311 |
supp.addPropertyChangeListener (l); |
297 |
} |
312 |
} |
298 |
|
313 |
|
299 |
/** Removes listener. |
|
|
300 |
*/ |
301 |
public void removePropertyChangeListener (PropertyChangeListener l) { |
314 |
public void removePropertyChangeListener (PropertyChangeListener l) { |
302 |
if (supp != null) { |
315 |
if (supp != null) { |
303 |
supp.removePropertyChangeListener (l); |
316 |
supp.removePropertyChangeListener (l); |