private FileObject findFile(String resourcePath) { return GlobalPathRegistry.getDefault().findResource(resourcePath); }
String className = classWithMethod.substring(0, firstDolarIdx > -1 ? firstDolarIdx : lastDotIdx); path = className.replace('.','/') + ".java"; // NOI18N accessible = globalPathReg.findResource(path) != null; if (className.startsWith("org.apache.jsp.") && context != null) { // NOI18N if (context != null) {
String className = classWithMethod.substring(0, firstDolarIdx > -1 ? firstDolarIdx : lastDotIdx); path = className.replace('.','/') + ".java"; // NOI18N accessible = globalPathRegistry.findResource(path) != null;
String className = classWithMethod.substring(0, firstDolarIdx > -1 ? firstDolarIdx : lastDotIdx); path = className.replace('.','/') + ".java"; // NOI18N accessible = globalPathReg.findResource(path) != null; if (className.startsWith("org.apache.jsp.") && context != null) { // NOI18N if (context != null) {
relativePath = normalize(relativePath); if (originalSourcePath == null) { fo = GlobalPathRegistry.getDefault().findResource(relativePath); } else { synchronized (this) {
fo = GlobalPathRegistry.getDefault().findResource(relativePath); fo = GlobalPathRegistry.getDefault().findResource(relativePath);
private Project getProjectFromAttributes(AntEvent event, TaskStructure taskStructure) { if (taskStructure.getName().equals("test")) { //NOI18N String attribute = taskStructure.getAttribute("name"); //NOI18N if (attribute != null) { String name = event.evaluate(attribute); String fileName = name.replace(".", "/").concat(".java"); //NOI18N FileObject fo = GlobalPathRegistry.getDefault().findResource(fileName); if (fo != null) { return FileOwnerQuery.getOwner(fo); } } } if (taskStructure.getName().equals("fileset")) { //NOI18N String attribute = taskStructure.getAttribute("dir"); //NOI18N if (attribute == null) { attribute = taskStructure.getAttribute("file"); //NOI18N } if (attribute != null) { String dir = event.evaluate(attribute); FileObject fo = FileUtil.toFileObject(new File(FileUtil.normalizePath(dir))); if (fo != null) { return FileOwnerQuery.getOwner(fo); } } } return null; }
FileObject sourceFile = GlobalPathRegistry.getDefault().findResource(path); if (sourceFile == null) { sourceFile = FileUtil.toFileObject(FileUtil.normalizeFile(new File(path)));
FileObject source = GlobalPathRegistry.getDefault().findResource(parse.resource); if (source != null) { parse.hyperlink(session, event, source, messageLevel, sessionLevel, data);
private static FileObject getFileObject(String classRelPath) { DebuggerEngine engine = DebuggerManager.getDebuggerManager ().getCurrentEngine(); if (engine != null) { SourcePathProvider sp = engine.lookupFirst(null, SourcePathProvider.class); if (sp != null) { String url = sp.getURL(classRelPath, false); if (url == null) { url = sp.getURL(classRelPath, true); } if (url != null) { try { FileObject fo = URLMapper.findFileObject(new URL(url)); if (fo != null) { return fo; } } catch (MalformedURLException ex) { ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex); } } } } classRelPath = SourcePathProviderImpl.normalize(classRelPath); FileObject fo = GlobalPathRegistry.getDefault().findResource(classRelPath); return fo; }
private static FileObject getFileObject(String classRelPath) { DebuggerEngine engine = DebuggerManager.getDebuggerManager ().getCurrentEngine(); if (engine != null) { SourcePathProvider sp = engine.lookupFirst(null, SourcePathProvider.class); if (sp != null) { String url = sp.getURL(classRelPath, false); if (url == null) { url = sp.getURL(classRelPath, true); } if (url != null) { try { FileObject fo = URLMapper.findFileObject(new URL(url)); if (fo != null) { return fo; } } catch (MalformedURLException ex) { ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex); } } } } classRelPath = SourcePathProviderImpl.normalize(classRelPath); FileObject fo = GlobalPathRegistry.getDefault().findResource(classRelPath); return fo; }
private static FileObject getFileObject(String classRelPath) { DebuggerEngine engine = DebuggerManager.getDebuggerManager ().getCurrentEngine(); if (engine != null) { SourcePathProvider sp = engine.lookupFirst(null, SourcePathProvider.class); if (sp != null) { String url = sp.getURL(classRelPath, false); if (url == null) { url = sp.getURL(classRelPath, true); } if (url != null) { try { FileObject fo = URLMapper.findFileObject(new URL(url)); if (fo != null) { return fo; } } catch (MalformedURLException ex) { ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex); } } } } classRelPath = SourcePathProviderImpl.normalize(classRelPath); FileObject fo = GlobalPathRegistry.getDefault().findResource(classRelPath); return fo; }
FileObject sourceFile = GlobalPathRegistry.getDefault().findResource(path); if (sourceFile == null) { sourceFile = FileUtil.toFileObject(FileUtil.normalizeFile(new File(path)));