Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-09-29 18:51:16 +0000
committerAlexander Kurtakov2016-09-29 18:51:16 +0000
commit3b1a7794689885776cdae686dadb5d918954a13c (patch)
tree07fa0ccf822256dbdb8a712ada80b52e0a41c3fb /bundles/org.eclipse.swt/Eclipse SWT Browser
parentfd1e9fc26322a48a24d92662e337cf688dadf4ce (diff)
downloadeclipse.platform.swt-3b1a7794689885776cdae686dadb5d918954a13c.tar.gz
eclipse.platform.swt-3b1a7794689885776cdae686dadb5d918954a13c.tar.xz
eclipse.platform.swt-3b1a7794689885776cdae686dadb5d918954a13c.zip
Bug 502576 - Mark typed SWTEventListener @FunctionalInterface if they
are functional interfaces Handle org.eclipse.swt.browser and org.eclipse.swt.custom packages. Change-Id: Icd149505e57133470785db7be83a4d52cce75e90 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Browser')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/AuthenticationListener.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/OpenWindowListener.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/TitleListener.java5
5 files changed, 15 insertions, 10 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/AuthenticationListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/AuthenticationListener.java
index c5d1f0bae3..698618ad8d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/AuthenticationListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/AuthenticationListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2009 IBM Corporation and others.
+ * Copyright (c) 2003, 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
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.browser;
-import org.eclipse.swt.internal.SWTEventListener;
+import org.eclipse.swt.internal.*;
/**
* This listener interface may be implemented in order to receive
@@ -22,6 +22,7 @@ import org.eclipse.swt.internal.SWTEventListener;
*
* @since 3.5
*/
+@FunctionalInterface
public interface AuthenticationListener extends SWTEventListener {
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java
index b69ecbe2e3..feb4877525 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/CloseWindowListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2005 IBM Corporation and others.
+ * Copyright (c) 2003, 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
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.browser;
-import org.eclipse.swt.internal.SWTEventListener;
+import org.eclipse.swt.internal.*;
/**
* This listener interface may be implemented in order to receive
@@ -25,6 +25,7 @@ import org.eclipse.swt.internal.SWTEventListener;
*
* @since 3.0
*/
+@FunctionalInterface
public interface CloseWindowListener extends SWTEventListener {
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/OpenWindowListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/OpenWindowListener.java
index 9af48efa02..b4c7a002d9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/OpenWindowListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/OpenWindowListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2011 IBM Corporation and others.
+ * Copyright (c) 2003, 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
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.browser;
-import org.eclipse.swt.internal.SWTEventListener;
+import org.eclipse.swt.internal.*;
/**
* This listener interface may be implemented in order to receive
@@ -24,6 +24,7 @@ import org.eclipse.swt.internal.SWTEventListener;
*
* @since 3.0
*/
+@FunctionalInterface
public interface OpenWindowListener extends SWTEventListener {
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java
index 05a53999b2..ebebb4e8cc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/StatusTextListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2005 IBM Corporation and others.
+ * Copyright (c) 2003, 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
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.browser;
-import org.eclipse.swt.internal.SWTEventListener;
+import org.eclipse.swt.internal.*;
/**
* This listener interface may be implemented in order to receive
@@ -22,6 +22,7 @@ import org.eclipse.swt.internal.SWTEventListener;
*
* @since 3.0
*/
+@FunctionalInterface
public interface StatusTextListener extends SWTEventListener {
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/TitleListener.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/TitleListener.java
index 1100d90fc9..276889a335 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/TitleListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/TitleListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2005 IBM Corporation and others.
+ * Copyright (c) 2003, 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
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.browser;
-import org.eclipse.swt.internal.SWTEventListener;
+import org.eclipse.swt.internal.*;
/**
* This listener interface may be implemented in order to receive
@@ -22,6 +22,7 @@ import org.eclipse.swt.internal.SWTEventListener;
*
* @since 3.0
*/
+@FunctionalInterface
public interface TitleListener extends SWTEventListener {
/**

Back to the top