Package org.eclipse.xtext.util

Examples of org.eclipse.xtext.util.LineFilterOutputStream


                @Override
                public Adapter createGenClassAdapter() {
                  return new GenClassGeneratorAdapter(this) {
                    @Override
                    protected OutputStream createOutputStream(URI workspacePath) throws Exception {
                      return new LineFilterOutputStream(getURIConverter().createOutputStream(workspacePath),
                          " * $Id" + "$");
                    }

                    @Override
                    protected URI toURI(String pathName) {
                      return URI.createFileURI(uri);
                    }
                  };
                }

                @Override
                public Adapter createGenPackageAdapter() {
                  return new GenPackageGeneratorAdapter(this) {
                    @Override
                    protected URI toURI(String pathName) {
                      return URI.createFileURI(uri);
                    }

                    @Override
                    protected OutputStream createOutputStream(URI workspacePath) throws Exception {
                      return new LineFilterOutputStream(getURIConverter().createOutputStream(workspacePath),
                          " * $Id" + "$");
                    }

                  };
                }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.util.LineFilterOutputStream

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.