Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-02-09 09:02:37 +0000
committerAlexander Kurtakov2016-02-10 07:57:09 +0000
commit0b3de15c83fddb6e45d1372ffdf88504e8951d1e (patch)
tree1a473bc6a5e0fe325fb6900b9bac630409450ae8 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
parent1a375bfbb7dca92b102db09891a18eeb80d671f2 (diff)
downloadeclipse.platform.swt-0b3de15c83fddb6e45d1372ffdf88504e8951d1e.tar.gz
eclipse.platform.swt-0b3de15c83fddb6e45d1372ffdf88504e8951d1e.tar.xz
eclipse.platform.swt-0b3de15c83fddb6e45d1372ffdf88504e8951d1e.zip
Bug 483640 - Add missing annotations to SWT after the move to Java 7
Add missing @Override annotation for interface methods. Change-Id: Ibce185467807acd2dc5e6b71fda643a3947f60eb Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java4
9 files changed, 32 insertions, 9 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java
index 5e8cfd0d01..2cf571659b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -205,6 +205,7 @@ public DragSource(Control control, int style) {
control.setData(DND.DRAG_SOURCE_KEY, this);
controlListener = new Listener () {
+ @Override
public void handleEvent (Event event) {
if (event.type == SWT.Dispose) {
if (!DragSource.this.isDisposed()) {
@@ -226,6 +227,7 @@ public DragSource(Control control, int style) {
control.addListener (SWT.DragDetect, controlListener);
this.addListener(SWT.Dispose, new Listener() {
+ @Override
public void handleEvent(Event e) {
onDispose();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java
index 62ed8e6d12..ae1b594394 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DropTarget.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -394,6 +394,7 @@ public DropTarget(Control control, int style) {
control.setData(DND.DROP_TARGET_KEY, this);
controlListener = new Listener () {
+ @Override
public void handleEvent (Event event) {
if (!DropTarget.this.isDisposed()) {
DropTarget.this.dispose();
@@ -403,6 +404,7 @@ public DropTarget(Control control, int style) {
control.addListener (SWT.Dispose, controlListener);
this.addListener(SWT.Dispose, new Listener() {
+ @Override
public void handleEvent (Event event) {
onDispose();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java
index e2d2f8afe7..f15c57ff96 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -31,6 +31,7 @@ public class DragSourceAdapter implements DragSourceListener {
*
* @param event the information associated with the drag start event
*/
+@Override
public void dragStart(DragSourceEvent event){}
/**
@@ -39,6 +40,7 @@ public void dragStart(DragSourceEvent event){}
*
* @param event the information associated with the drag finished event
*/
+@Override
public void dragFinished(DragSourceEvent event){}
/**
@@ -47,6 +49,7 @@ public void dragFinished(DragSourceEvent event){}
*
* @param event the information associated with the drag set data event
*/
+@Override
public void dragSetData(DragSourceEvent event){}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java
index 711bad36cc..13cc17f204 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -45,6 +45,7 @@ public class DropTargetAdapter implements DropTargetListener {
*
* @param event the information associated with the drag enter event
*/
+@Override
public void dragEnter(DropTargetEvent event){}
/**
@@ -53,6 +54,7 @@ public void dragEnter(DropTargetEvent event){}
*
* @param event the information associated with the drag leave event
*/
+@Override
public void dragLeave(DropTargetEvent event){}
/**
@@ -63,6 +65,7 @@ public void dragLeave(DropTargetEvent event){}
*
* @param event the information associated with the drag operation changed event
*/
+@Override
public void dragOperationChanged(DropTargetEvent event){}
/**
@@ -73,6 +76,7 @@ public void dragOperationChanged(DropTargetEvent event){}
*
* @param event the information associated with the drag over event
*/
+@Override
public void dragOver(DropTargetEvent event){}
/**
@@ -81,6 +85,7 @@ public void dragOver(DropTargetEvent event){}
*
* @param event the information associated with the drop event
*/
+@Override
public void drop(DropTargetEvent event){}
/**
@@ -91,6 +96,7 @@ public void drop(DropTargetEvent event){}
*
* @param event the information associated with the drop accept event
*/
+@Override
public void dropAccept(DropTargetEvent event){}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java
index 22ba89979e..839252f8fc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -40,6 +40,7 @@ static ClipboardProxy _getInstance(final Display display) {
proxy = new ClipboardProxy(display);
display.setData(ID, proxy);
display.addListener(SWT.Dispose, new Listener() {
+ @Override
public void handleEvent(Event event) {
ClipboardProxy clipbordProxy = (ClipboardProxy)display.getData(ID);
if (clipbordProxy == null) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
index ccd64f5fb9..7a1e07c228 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -170,6 +170,7 @@ public DragSource(Control control, int style) {
OS.g_signal_connect(control.handle, OS.drag_data_delete, DragDataDelete.getAddress(), 0);
controlListener = new Listener () {
+ @Override
public void handleEvent (Event event) {
if (event.type == SWT.Dispose) {
if (!DragSource.this.isDisposed()) {
@@ -196,6 +197,7 @@ public DragSource(Control control, int style) {
}
this.addListener(SWT.Dispose, new Listener() {
+ @Override
public void handleEvent(Event e) {
onDispose();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java
index 4286288523..d8aef1e7e8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2014 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -166,6 +166,7 @@ public DropTarget(Control control, int style) {
// Dispose listeners
controlListener = new Listener(){
+ @Override
public void handleEvent(Event event){
if (!DropTarget.this.isDisposed()){
DropTarget.this.dispose();
@@ -175,6 +176,7 @@ public DropTarget(Control control, int style) {
control.addListener(SWT.Dispose, controlListener);
this.addListener(SWT.Dispose, new Listener(){
+ @Override
public void handleEvent(Event event){
onDispose();
}
@@ -190,6 +192,7 @@ public DropTarget(Control control, int style) {
}
dragOverHeartbeat = new Runnable() {
+ @Override
public void run() {
Control control = DropTarget.this.control;
if (control == null || control.isDisposed() || dragOverStart == 0) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
index 470c92fa61..1dd5c660f0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -161,6 +161,7 @@ public DragSource(Control control, int style) {
this.AddRef();
controlListener = new Listener() {
+ @Override
public void handleEvent(Event event) {
if (event.type == SWT.Dispose) {
if (!DragSource.this.isDisposed()) {
@@ -178,6 +179,7 @@ public DragSource(Control control, int style) {
control.addListener(SWT.DragDetect, controlListener);
this.addListener(SWT.Dispose, new Listener() {
+ @Override
public void handleEvent(Event e) {
DragSource.this.onDispose();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
index 1e65f7d9ea..9c4ce9ba2c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -144,6 +144,7 @@ public DropTarget(Control control, int style) {
DND.error(DND.ERROR_CANNOT_INIT_DROP);
controlListener = new Listener () {
+ @Override
public void handleEvent (Event event) {
if (!DropTarget.this.isDisposed()){
DropTarget.this.dispose();
@@ -153,6 +154,7 @@ public DropTarget(Control control, int style) {
control.addListener (SWT.Dispose, controlListener);
this.addListener(SWT.Dispose, new Listener () {
+ @Override
public void handleEvent (Event event) {
onDispose();
}

Back to the top