Package org.openide.filesystems

Examples of org.openide.filesystems.FileObject.toURL()


                FileObject jar = getJarForSource(sourceRootObj);
                if (jar == null) {
                    return NO_ROOTS;
                }

                return new URL[]{jar.toURL()};
            }

            @Override
            public void addChangeListener(ChangeListener l) {
            }
View Full Code Here


        }
        int i = resourceName.indexOf('$');
        if (i > 0) {
            resourceName = resourceName.substring(0, i);
        }
        FileObject[] sRoots = SourceForBinaryQuery.findSourceRoots(root.toURL()).getRoots();
        ClassPath sourcePath = ClassPathSupport.createClassPath(sRoots);
        FileObject rfo = sourcePath.findResource(resourceName + ".java");
        if (rfo == null) {
            return null;
        }
View Full Code Here

        ClassPath sourcePath = ClassPathSupport.createClassPath(sRoots);
        FileObject rfo = sourcePath.findResource(resourceName + ".java");
        if (rfo == null) {
            return null;
        }
        return rfo.toURL().toExternalForm();
    }

    private DebugUtils() {
        throw new AssertionError();
    }
View Full Code Here

                FileObject javadoc = javadocForJar(binaryRootObj);
                if (javadoc == null) {
                    return NO_ROOTS;
                }

                return new URL[]{javadoc.toURL()};
            }

            @Override
            public void addChangeListener(ChangeListener l) {
            }
View Full Code Here

            // ...... \\HASH_OF_SOURCE\\binary-sources.XXX
            // ...... \\HASH_OF_BINARY\\binary.XXX

            FileObject binFile = NbFileUtils.getFileFromASubDir(artifactRoot, binFileName);
            return binFile != null
                    ? new URL[]{binFile.toURL()}
                    : NO_ROOTS;
        }

        @Override
        public void addChangeListener(ChangeListener l) {
View Full Code Here

                    continue;
                }

                FileObject binFile = NbFileUtils.getFileFromASubDir(binDir, binFileName);
                if (binFile != null) {
                    return new URL[]{binFile.toURL()};
                }
            }
            return NO_ROOTS;
        }
View Full Code Here

            final boolean resolveLinkUrls = renderOptions.contains(RenderOption.RESOLVE_LINK_URLS);
            if (resolveImageUrls || resolveLinkUrls) {
                RootNode rootNode = markdownProcessor.parseMarkdown(sourceText.toCharArray());
                FileObject sourceFile = context.getPrimaryFile();
                final PreviewSerializer htmlSerializer
                        = new PreviewSerializer(sourceFile.toURL(), resolveImageUrls, resolveLinkUrls);
                bodyText = htmlSerializer.toHtml(rootNode);
            }
            else {
                RootNode rootNode = markdownProcessor.parseMarkdown(sourceText.toCharArray());
                final ExportSerializer htmlSerializer
View Full Code Here

        if (object instanceof QuorumBreakpoint) {
            QuorumBreakpoint breakpoint = (QuorumBreakpoint) object;
            FileObject fileObject = breakpoint.getLine().getLookup().lookup(
                    FileObject.class);

            properties.setString(URL, fileObject.toURL().toString());
            properties.setInt(LINE_NUMBER, breakpoint.getLine()
                    .getLineNumber());
            properties.setBoolean(ENABED, breakpoint.isEnabled());
            properties.setString(GROUP_NAME, breakpoint.getGroupName());
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.