Search in sources :

Example 6 with IErlRange

use of org.erlide.wrangler.refactoring.util.IErlRange in project erlide_eclipse by erlang.

the class RenameFunctionRefactoring method run.

@Override
public IRefactoringRpcMessage run(final IErlSelection selection) {
    final IErlMemberSelection sel = (IErlMemberSelection) selection;
    final IErlRange memberRange = sel.getSelectionRange();
    return WranglerBackendManager.getRefactoringBackend().call("rename_fun_eclipse", "siisxi", sel.getFilePath(), memberRange.getStartLine(), memberRange.getStartCol(), userInput, sel.getSearchPath(), GlobalParameters.getTabWidth());
}
Also used : IErlRange(org.erlide.wrangler.refactoring.util.IErlRange) IErlMemberSelection(org.erlide.wrangler.refactoring.selection.IErlMemberSelection)

Aggregations

IErlRange (org.erlide.wrangler.refactoring.util.IErlRange)6 IErlMemberSelection (org.erlide.wrangler.refactoring.selection.IErlMemberSelection)4 ErlRange (org.erlide.wrangler.refactoring.util.ErlRange)3 OtpErlangException (com.ericsson.otp.erlang.OtpErlangException)1 OtpErlangObject (com.ericsson.otp.erlang.OtpErlangObject)1 OtpErlangTuple (com.ericsson.otp.erlang.OtpErlangTuple)1 HashMap (java.util.HashMap)1 IDocument (org.eclipse.jface.text.IDocument)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Button (org.eclipse.swt.widgets.Button)1 Composite (org.eclipse.swt.widgets.Composite)1 Label (org.eclipse.swt.widgets.Label)1 IErlMember (org.erlide.engine.model.erlang.IErlMember)1 ExpressionCheckButtonListener (org.erlide.wrangler.refactoring.ui.ExpressionCheckButtonListener)1 Range (org.erlide.wrangler.refactoring.util.Range)1