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

(-)freeform/src/org/netbeans/modules/web/freeform/WebModules.java (-3 / +6 lines)
Lines 249-257 Link Here
249
        public ClassPath findClassPath (FileObject file, String type) {
249
        public ClassPath findClassPath (FileObject file, String type) {
250
           int fileType = getType(file);
250
           int fileType = getType(file);
251
            
251
            
252
           if (fileType == 0)
252
           if (fileType == 0) {
253
                return javaSourcesClassPath;
253
               if (type != ClassPath.SOURCE)
254
            else 
254
                   return null;
255
               else
256
                   return javaSourcesClassPath;
257
            } else 
255
                if (fileType == 1){
258
                if (fileType == 1){
256
                    if (composedClassPath == null) {
259
                    if (composedClassPath == null) {
257
                        FileObject [] all = new FileObject [sourcesFOs.length+webClassPath.getRoots().length+1];
260
                        FileObject [] all = new FileObject [sourcesFOs.length+webClassPath.getRoots().length+1];

Return to bug 59031