Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2017-06-12 21:19:15 +0000
committerJeff Johnston2017-06-13 00:46:33 +0000
commit520c8e6ed86ef64f5fd2979a344dee624cb3c8c6 (patch)
tree62976fd3094a8d722b22e236926a07c403ee30aa /changelog/org.eclipse.linuxtools.changelog.core
parent1c97621e7a3f3b08d0799da337b251455a16cc9a (diff)
downloadorg.eclipse.linuxtools-520c8e6ed86ef64f5fd2979a344dee624cb3c8c6.tar.gz
org.eclipse.linuxtools-520c8e6ed86ef64f5fd2979a344dee624cb3c8c6.tar.xz
org.eclipse.linuxtools-520c8e6ed86ef64f5fd2979a344dee624cb3c8c6.zip
Bug 518154 - ChangeLog is issuing debug statements concerning editor ids
- fix InsertChangeLogKeyHandler.isEnabled to not print out editor ids Change-Id: I3c6a8b90cb9ac9effd5f72bc7c1a3c8f169bbb62 Reviewed-on: https://git.eclipse.org/r/99178 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Diffstat (limited to 'changelog/org.eclipse.linuxtools.changelog.core')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/InsertChangeLogKeyHandler.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/InsertChangeLogKeyHandler.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/InsertChangeLogKeyHandler.java
index c9ef14724a..11038a4af5 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/InsertChangeLogKeyHandler.java
+++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/actions/InsertChangeLogKeyHandler.java
@@ -166,12 +166,13 @@ public class InsertChangeLogKeyHandler extends ChangeLogAction implements
@Override
public boolean isEnabled() {
- IEditorReference[] refs = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
- for (int i = 0; i < refs.length; ++i) {
- IEditorReference ref = refs[i];
- String id = ref.getId();
- System.out.println(id);
- }
+ @SuppressWarnings("unused")
+ IEditorReference[] refs = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
+// for (int i = 0; i < refs.length; ++i) {
+// IEditorReference ref = refs[i];
+// String id = ref.getId();
+// System.out.println(id);
+// }
return true;
}

Back to the top