1 /*******************************************************************************
2 * Copyright (c) 2010, 2011 Association for Decentralized Information Management in
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.browsing.ui.model.actions;
14 import java.util.Comparator;
16 public interface IActionCategory {
21 public static final Comparator<IActionCategory> ACTION_CATEGORY_COMPARATOR = new Comparator<IActionCategory>() {
23 public int compare(IActionCategory o1, IActionCategory o2) {
31 double p1 = o1.getPriority();
32 double p2 = o2.getPriority();
37 String label1 = o1.getLabel();
38 String label2 = o2.getLabel();
49 return label1.compareTo(label2);