org.prorefactor.refactor
Class ReviewChangesDialog

java.lang.Object
  extended by org.prorefactor.refactor.ReviewChangesDialog

public class ReviewChangesDialog
extends java.lang.Object

Application modal dialog for previewing, changing, and then either accepting or rejecting a change proposed by an automated refactoring routine.


Constructor Summary
ReviewChangesDialog(java.lang.String inFilename1, java.lang.String inFilename2)
           
 
Method Summary
 int getUserInput()
          Wait for the user to close the dialog.
 void open()
           
 void setChangedLines(int[] inChangedLines)
          Set changed lines tells this dialog which lines have been changed for purposes of highlighting and "go to".
 void showMessage(java.lang.String theMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReviewChangesDialog

public ReviewChangesDialog(java.lang.String inFilename1,
                           java.lang.String inFilename2)
Method Detail

open

public void open()

getUserInput

public int getUserInput()
Wait for the user to close the dialog. Sets up the readAndDispatch loop.

Returns:
1 on Accept, 0 on Reject.

setChangedLines

public void setChangedLines(int[] inChangedLines)
Set changed lines tells this dialog which lines have been changed for purposes of highlighting and "go to".

Parameters:
inChangedLines - Array of four integer line numbers: original file to/from and changed file to/from. Pass in line numbers with count starting at 1 (converted internally for line count from zero where necessary).

showMessage

public void showMessage(java.lang.String theMessage)


Copyright © 2008 Joanju Software. All Rights Reserved.