Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-08-11 19:42:50 +0000
committerddunne2010-08-11 19:42:50 +0000
commit35c05283e5eb6eacc3d47a95801664e43b638190 (patch)
treee215ae3d937d469bf80307cd55d06cb19c01f28d
parent390561cce39e71a0e34a82e36753ec5ca1296890 (diff)
downloadorg.eclipse.osee-35c05283e5eb6eacc3d47a95801664e43b638190.tar.gz
org.eclipse.osee-35c05283e5eb6eacc3d47a95801664e43b638190.tar.xz
org.eclipse.osee-35c05283e5eb6eacc3d47a95801664e43b638190.zip
code warning cleanup
-rw-r--r--plugins/org.eclipse.osee.framework.ui.plugin/src/org/eclipse/osee/framework/ui/plugin/OseeUiActions.java23
1 files changed, 7 insertions, 16 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.plugin/src/org/eclipse/osee/framework/ui/plugin/OseeUiActions.java b/plugins/org.eclipse.osee.framework.ui.plugin/src/org/eclipse/osee/framework/ui/plugin/OseeUiActions.java
index ba381eeb1b6..5c263257b40 100644
--- a/plugins/org.eclipse.osee.framework.ui.plugin/src/org/eclipse/osee/framework/ui/plugin/OseeUiActions.java
+++ b/plugins/org.eclipse.osee.framework.ui.plugin/src/org/eclipse/osee/framework/ui/plugin/OseeUiActions.java
@@ -24,7 +24,6 @@ import org.eclipse.osee.framework.ui.swt.ImageManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.ToolBar;
@@ -117,11 +116,9 @@ public final class OseeUiActions {
public void widgetSelected(SelectionEvent e) {
String version = (String) oseePlugin.getBundle().getHeaders().get("Bundle-Version");
String desc = String.format("\n\nItem: %s\nVersion: %s", editorId, version);
- if (actionableObject != null) {
- String moreDesc = actionableObject.getActionDescription();
- if (moreDesc != null && !moreDesc.equals("")) {
- desc += "\n" + moreDesc;
- }
+ String moreDesc = actionableObject.getActionDescription();
+ if (moreDesc != null && !moreDesc.equals("")) {
+ desc += "\n" + moreDesc;
}
reportLogException(actionableItem, desc);
}
@@ -130,21 +127,15 @@ public final class OseeUiActions {
Button bugButton = new Button(comp, SWT.PUSH);
bugButton.setToolTipText(BUG_TITLE);
bugButton.setImage(ImageManager.getImage(PluginUiImage.BUG));
- bugButton.addSelectionListener(new SelectionListener() {
-
- @Override
- public void widgetDefaultSelected(SelectionEvent e) {
- }
+ bugButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
String version = (String) oseePlugin.getBundle().getHeaders().get("Bundle-Version");
String desc = String.format("\n\nItem: %s\nVersion: %s", editorId, version);
- if (actionableObject != null) {
- String moreDesc = actionableObject.getActionDescription();
- if (moreDesc != null && !moreDesc.equals("")) {
- desc += "\n" + moreDesc;
- }
+ String moreDesc = actionableObject.getActionDescription();
+ if (moreDesc != null && !moreDesc.equals("")) {
+ desc += "\n" + moreDesc;
}
reportLogException(actionableItem, desc);
}

Back to the top