diff options
author | Rolf Theunissen | 2020-06-16 19:42:35 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-06-17 05:56:25 +0000 |
commit | ea386eb32875dc5c12e8109685a7e0b61dba927f (patch) | |
tree | 021fde48fa51a7e6e718708e9ce72ae3a29bd338 | |
parent | 7fba31816980f21ba99347c807d4c477ef16f8ec (diff) | |
download | eclipse.platform.ui-ea386eb32875dc5c12e8109685a7e0b61dba927f.tar.gz eclipse.platform.ui-ea386eb32875dc5c12e8109685a7e0b61dba927f.tar.xz eclipse.platform.ui-ea386eb32875dc5c12e8109685a7e0b61dba927f.zip |
Bug 564144 - Removes bundles/org.eclipse.ui.workbench/EclipseY20200617-0510Y20200617-0320
UI/org/eclipse/ui/internal/dialogs/ActionSetComparator.java
Full text search also showed no usage
Change-Id: I6b65a35f2ed2956653e890a620b14c85c555f0af
Signed-off-by: Rolf Theunissen <rolf.theunissen@gmail.com>
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetComparator.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetComparator.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetComparator.java deleted file mode 100644 index 5da2a071f25..00000000000 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ActionSetComparator.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. - * - * This program and the accompanying materials - * are made available under the terms of the Eclipse Public License 2.0 - * which accompanies this distribution, and is available at - * https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.ui.internal.dialogs; - -import org.eclipse.jface.action.LegacyActionTools; -import org.eclipse.jface.viewers.Viewer; -import org.eclipse.jface.viewers.ViewerComparator; -import org.eclipse.ui.internal.registry.IActionSetDescriptor; - -/** - * This is used to sort action sets in the perspective customization dialog. - */ -public class ActionSetComparator extends ViewerComparator { - - /** - * Creates a new sorter. - */ - public ActionSetComparator() { - } - - /** - * Returns a negative, zero, or positive number depending on whether the first - * element is less than, equal to, or greater than the second element. - */ - @Override - public int compare(Viewer viewer, Object e1, Object e2) { - if (e1 instanceof IActionSetDescriptor) { - String str1 = LegacyActionTools.removeMnemonics(((IActionSetDescriptor) e1).getLabel()); - String str2 = LegacyActionTools.removeMnemonics(((IActionSetDescriptor) e2).getLabel()); - return getComparator().compare(str1, str2); - } - return 0; - } -} |