Package org.eclipse.compare

Examples of org.eclipse.compare.IStreamContentAccessor


     * implements the IStreamContentAccessor interface.
     */
    private static String getString(final Object input) {

        if (input instanceof IStreamContentAccessor) {
            final IStreamContentAccessor sca = (IStreamContentAccessor) input;
            try {
                return ErlangCompareUtilities.readString(sca);
            } catch (final CoreException ex) {
                ErlLogger.error(ex);
            }
View Full Code Here


        String contents = null;
        char[] buffer = null;
        IDocument doc = CompareUI.getDocument(input);
        if (doc == null) {
            if (input instanceof IStreamContentAccessor) {
                final IStreamContentAccessor sca = (IStreamContentAccessor) input;
                try {
                    contents = ErlangCompareUtilities.readString(sca);
                } catch (final CoreException ex) {
                    // return null indicates the error.
                    return null;
View Full Code Here

     * @see IStructureCreator#getContents
     */
    @Override
    public String getContents(final Object node, final boolean ignoreWhitespace) {
        if (node instanceof IStreamContentAccessor) {
            final IStreamContentAccessor sca = (IStreamContentAccessor) node;
            try {
                return readString(sca.getContents());
            } catch (final CoreException ex) {
            }
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.compare.IStreamContentAccessor

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.