diff options
author | Lars Vogel | 2014-08-25 11:55:18 +0000 |
---|---|---|
committer | Lars Vogel | 2014-08-25 17:53:43 +0000 |
commit | a5f74d5b92f427fc3c5a2339617ea5bfac5651b6 (patch) | |
tree | 99aa0ebec6174e91fc13030c5f77edb8861df2eb | |
parent | b87ba2186f8e7b6b0c6e7cfbd47a7604f69f17eb (diff) | |
download | eclipse.platform.team-a5f74d5b92f427fc3c5a2339617ea5bfac5651b6.tar.gz eclipse.platform.team-a5f74d5b92f427fc3c5a2339617ea5bfac5651b6.tar.xz eclipse.platform.team-a5f74d5b92f427fc3c5a2339617ea5bfac5651b6.zip |
Bug 442475 - AbstractViewer not allowed to return NULL
Change-Id: Ide33068f2915d390fa4b4fa2c304c3beea134a89
Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
-rw-r--r-- | bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/AbstractViewer.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/AbstractViewer.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/AbstractViewer.java index 135fcab0b..95a739ea0 100644 --- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/AbstractViewer.java +++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/AbstractViewer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2014 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 @@ -7,10 +7,12 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Lars Vogel <Lars.Vogel@gmail.com> - Bug 442475 *******************************************************************************/ package org.eclipse.compare.internal; import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.Viewer; @@ -25,7 +27,7 @@ public abstract class AbstractViewer extends Viewer { } public ISelection getSelection() { - return null; + return StructuredSelection.EMPTY; } public void setSelection(ISelection s, boolean reveal) { |