Commit 0e874800 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

actually local variables.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent c1d905c0
......@@ -38,9 +38,6 @@ import org.eclipse.ui.PlatformUI;
public final class ContextLoggingActionFromEditor extends AbstractHandler {
private static final String ERR_MSG_NO_SELECTION = "Empty selection! ";
private TextSelection selection;
private IStatusLineManager statusLineManager;
@Override
public Object execute(final ExecutionEvent event) throws ExecutionException {
......@@ -54,7 +51,7 @@ public final class ContextLoggingActionFromEditor extends AbstractHandler {
return null;
}
// getting status line manager
statusLineManager = targetEditor.getEditorSite().getActionBars().getStatusLineManager();
final IStatusLineManager statusLineManager = targetEditor.getEditorSite().getActionBars().getStatusLineManager();
// getting selected file
final IFile selectedFile = Utils.getSelectedFileInEditor("MinimizeVisibility");
......@@ -73,7 +70,8 @@ public final class ContextLoggingActionFromEditor extends AbstractHandler {
" selection is not a TextSelection");
return null;
}
selection = (TextSelection)sel;
final TextSelection selection = (TextSelection)sel;
//
ContextLoggingRefactoring refactoring;
......
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