org.acm.seguin.ide.elixir
Class ElixirExtractMethod

java.lang.Object
  extended by ExtractMethodDialog
      extended by org.acm.seguin.ide.elixir.ElixirExtractMethod

public class ElixirExtractMethod
extends ExtractMethodDialog

ExtractMethod for the elixir editor.

Author:
Chris Seguin

Constructor Summary
ElixirExtractMethod()
          Create an ElixirPrettyPrinter object
 
Method Summary
static void extractMethod()
          Reformats the current source code
protected  java.lang.String getSelectionFromIDE()
          Gets the SelectionFromIDE attribute of the ElixirExtractMethod object
protected  java.lang.String getStringFromIDE()
          Gets the initial string from the IDE
 java.lang.String removeCR(java.lang.String input)
          Remove \r from buffer
protected  void setStringInIDE(java.lang.String value)
          Sets the string in the IDE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElixirExtractMethod

public ElixirExtractMethod()
                    throws RefactoringException
Create an ElixirPrettyPrinter object

Throws:
RefactoringException - Description of the Exception
Method Detail

setStringInIDE

protected void setStringInIDE(java.lang.String value)
Sets the string in the IDE

Parameters:
value - The new file contained in a string

getSelectionFromIDE

protected java.lang.String getSelectionFromIDE()
Gets the SelectionFromIDE attribute of the ElixirExtractMethod object

Returns:
The SelectionFromIDE value

getStringFromIDE

protected java.lang.String getStringFromIDE()
Gets the initial string from the IDE

Returns:
The file in string format

extractMethod

public static void extractMethod()
Reformats the current source code


removeCR

public java.lang.String removeCR(java.lang.String input)
Remove \r from buffer

Parameters:
input - Description of Parameter
Returns:
a string containing the results