Package org.erlide.engine.services.text

Examples of org.erlide.engine.services.text.IndentService


    protected static OtpErlangObject doIndentLines(final int offset, final int length,
            final String text, final boolean template, final String prefix)
            throws RpcException {

        final IndentService indentService = ErlangEngine.getInstance().getService(
                IndentService.class);

        final int tabw = AutoIndentStrategy.getTabWidthFromPreferences();
        final Map<String, String> prefs = new TreeMap<String, String>();
        IndentationPreferencePage.addKeysAndPrefs(prefs);
        SmartTypingPreferencePage.addAutoNLKeysAndPrefs(prefs);
        final boolean useTabs = AutoIndentStrategy.getUseTabsFromPreferences();
        if (template) {
            final OtpErlangObject r1 = indentService.templateIndentLines(prefix, text,
                    tabw, useTabs, prefs);
            return r1;
        }
        final OtpErlangObject r1 = indentService.indentLines(offset, length, text, tabw,
                useTabs, prefs);
        return r1;
    }
View Full Code Here

TOP

Related Classes of org.erlide.engine.services.text.IndentService

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.