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:
Replace existing method
Create a duplicate method
Cancel
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodExistsDialog
public MethodExistsDialog()
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:
Replace existing method
Create a duplicate method
Cancel
- 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)