Commit a3f8d640 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

premature declaration


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 81ba8ae7
......@@ -51,8 +51,6 @@ public class ExtractDefinitionAction extends AbstractHandler {
return null;
}
final TextSelection textSelection = (TextSelection)sel;
//getting selected def
final ExtractDefinitionRefactoring refactoring = new ExtractDefinitionRefactoring();
final Definition selectedDef = refactoring.getSelection();
......@@ -64,7 +62,7 @@ public class ExtractDefinitionAction extends AbstractHandler {
}
final ExtractDefinitionWizard wiz = new ExtractDefinitionWizard(selectedDef.getIdentifier().getName());
//
final TextSelection textSelection = (TextSelection)sel;
final StructuredSelection ssel = new StructuredSelection(textSelection);
wiz.init(PlatformUI.getWorkbench(), ssel);
final WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wiz);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment