dk.lec.idea.plugin.generate
Class MethodExistsDialog

java.lang.Object
  |
  +--dk.lec.idea.plugin.generate.MethodExistsDialog

public class MethodExistsDialog
extends java.lang.Object

This is a dialog when the toString() method already exists.

The user now has the choices to either:


Constructor Summary
MethodExistsDialog()
           
 
Method Summary
static ConflictResolutionPolicy[] getOptions()
          Get's the options for this dialog.
static ConflictResolutionPolicy showDialog(javax.swing.JComponent parentComponent, ConflictResolutionPolicy initialOption)
          Shows this dialog.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodExistsDialog

public MethodExistsDialog()
Method Detail

getOptions

public static ConflictResolutionPolicy[] getOptions()
Get's the options for this dialog.

Returns:
the options.

showDialog

public static ConflictResolutionPolicy showDialog(javax.swing.JComponent parentComponent,
                                                  ConflictResolutionPolicy initialOption)
Shows this dialog.

The user now has the choices to either:

Parameters:
parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used.
initialOption - initial option selected.
Returns:
conflict resolution policy (never null)