Package org.netbeans.modules.parsing.api

Examples of org.netbeans.modules.parsing.api.Source


                        }
                    }
                    if (mainClassFo == null) {
                        return;
                    }
                    Source source = Source.create(mainClassFo);
                    final FileObject sourceFo = mainClassFo;
                    ParserManager.parse(Collections.singleton(source), new UserTask() {

                        @Override
                        public void run(ResultIterator resultIterator) throws Exception {
View Full Code Here


     */
    public static FileObject getFileObject(Document doc) {
        if (doc == null) {
            return null;
        }
        Source source = Source.create(doc);
        return source.getFileObject();
    }
View Full Code Here

    is.close();
    fos.close();
  }

  public static File getFile(JTextComponent textComp) {
    Source source = Source.create(textComp.getDocument());

    return FileUtil.toFile(source.getFileObject());
  }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.parsing.api.Source

Copyright © 2018 www.massapicom. 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.