Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-05-02 11:03:36 -0400
committerUwe Stieber2012-05-02 11:03:36 -0400
commit15f5337bd147a5f065dfa380b0686fff32741353 (patch)
treed15d3d54444533223a80d5d9001862dfc0888402 /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views
parent7475e3f8d57d29a299be6ddc39f85083cb067b6c (diff)
downloadorg.eclipse.tcf-15f5337bd147a5f065dfa380b0686fff32741353.tar.gz
org.eclipse.tcf-15f5337bd147a5f065dfa380b0686fff32741353.tar.xz
org.eclipse.tcf-15f5337bd147a5f065dfa380b0686fff32741353.zip
Target Explorer: Fix findbugs warnings
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/ScriptPad.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/ClearAction.java3
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/OpenAction.java3
3 files changed, 1 insertions, 7 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/ScriptPad.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/ScriptPad.java
index 2224612ba..87a73385c 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/ScriptPad.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/ScriptPad.java
@@ -563,7 +563,7 @@ public class ScriptPad extends ViewPart implements ISelectionProvider, Selection
}
text.setText(buffer.toString());
markDirty(false);
- } catch (Exception e) {
+ } catch (IOException e) {
IStatus status = new Status(IStatus.ERROR, UIPlugin.getUniqueIdentifier(),
NLS.bind(Messages.ScriptPad_error_openFile, file, e.getLocalizedMessage()), e);
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/ClearAction.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/ClearAction.java
index 11e96edfb..773b0f224 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/ClearAction.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/ClearAction.java
@@ -22,8 +22,6 @@ import org.eclipse.ui.IViewPart;
* Clear script action implementation.
*/
public class ClearAction extends Action implements IViewActionDelegate, IActionDelegate2 {
- // Reference to the action proxy
- /* default */ IAction actionProxy;
// Parent view part
/* default */ IViewPart view;
@@ -47,7 +45,6 @@ public class ClearAction extends Action implements IViewActionDelegate, IActionD
*/
@Override
public void init(IAction action) {
- this.actionProxy = action;
}
/* (non-Javadoc)
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/OpenAction.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/OpenAction.java
index 45bacf2ed..9f9e06ae9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/OpenAction.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/OpenAction.java
@@ -24,8 +24,6 @@ import org.eclipse.ui.IViewPart;
* Open script action implementation.
*/
public class OpenAction extends Action implements IViewActionDelegate, IActionDelegate2 {
- // Reference to the action proxy
- /* default */ IAction actionProxy;
// Parent view part
/* default */ IViewPart view;
@@ -52,7 +50,6 @@ public class OpenAction extends Action implements IViewActionDelegate, IActionDe
*/
@Override
public void init(IAction action) {
- this.actionProxy = action;
}
/* (non-Javadoc)

Back to the top