Package org.erlide.engine.services.text

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


            final Map<String, String> prefs = new TreeMap<String, String>();
            IndentationPreferencePage.addKeysAndPrefs(prefs);
            SmartTypingPreferencePage.addAutoNLKeysAndPrefs(prefs);
            final boolean useTabs = getUseTabsFromPreferences();
            final IndentResult res = ErlangEngine.getInstance()
                    .getService(IndentService.class)
                    .indentLine(oldLine, txt, c.text, tabw, useTabs, prefs);

            if (res.isAddNewLine()) {
                c.text += "\n";
            }
            c.text += res.getText();
            c.length += res.getRemoveNext();
        } catch (final Exception e) {
            ErlLogger.warn(e);
        }
    }
View Full Code Here


            final String insertedText, final int tabw, final boolean useTabs,
            final Map<String, String> prefs) throws RpcException, OtpErlangRangeException {
        // ErlLogger.debug("indentLine '%s'", txt);
        final OtpErlangObject o = backend.call("erlide_indent", "indent_line", "sssiox",
                txt, oldLine, insertedText, tabw, useTabs, fixIndentPrefs(prefs));
        return new IndentResult(o);
    }
View Full Code Here

TOP

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

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.