aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Sampaoli2014-03-18 23:53:49 (EDT)
committerPaul Webster2014-03-19 00:08:32 (EDT)
commit74f5a45cf82d7e23d1718437b6ccd8333f66f57f (patch)
treee10d0f98277ec582eba6815217b9bd3038ef2df7
parentdf720fb4cc0d9eeba938e935dde371769a332de7 (diff)
downloadeclipse.platform.ui-74f5a45cf82d7e23d1718437b6ccd8333f66f57f.zip
eclipse.platform.ui-74f5a45cf82d7e23d1718437b6ccd8333f66f57f.tar.gz
eclipse.platform.ui-74f5a45cf82d7e23d1718437b6ccd8333f66f57f.tar.bz2
Bug 428355 - [New Contributors] Fix warnings in platform projectsrefs/changes/77/23577/5
Change-Id: Ic644a782f30c84f8a581c1cf8397142794ac994d Signed-off-by: Sebastian Sampaoli <seba.sampaoli@gmail.com>
-rw-r--r--examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/viewers/BooleanCellEditor.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/viewers/BooleanCellEditor.java b/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/viewers/BooleanCellEditor.java
index 1fcafe0..278636b 100644
--- a/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/viewers/BooleanCellEditor.java
+++ b/examples/org.eclipse.jface.snippets/Eclipse JFace Snippets/org/eclipse/jface/snippets/viewers/BooleanCellEditor.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* Lars Vogel <Lars.Vogel@gmail.com> - Bug 414565
+ * Sebastian Sampaoli <seba.sampaoli@gmail.com> - Bug 428355
*******************************************************************************/
package org.eclipse.jface.snippets.viewers;
@@ -19,7 +20,6 @@ import org.eclipse.jface.viewers.ViewerRow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
@@ -37,20 +37,6 @@ public class BooleanCellEditor extends CellEditor {
private int index;
private String restoredText;
private Image restoredImage;
- private KeyListener macSelectionListener = new KeyListener(){
-
- @Override
- public void keyReleased(KeyEvent e) {
-
- }
-
- @Override
- public void keyPressed(KeyEvent e) {
- if( e.character == ' ' ) {
- button.setSelection(!button.getSelection());
- }
- }
- };
private boolean changeOnActivation;