Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2007 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 http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
 
 package org.eclipse.team.internal.ccvs.ui.repo;
 
 import  org.eclipse.swt.widgets.Shell;
 
 public class RepositoriesSortingActionGroup extends ActionGroup {
 	// Sorting actions
Action for switching between ascending and descending sorting order
 
Current comparator set.
 
Indicates if comparator was changed
 
 	public static final String CHANGE_COMPARATOR = "changeComparator"//$NON-NLS-1$
 
 	private static final String REPOSITORIES_SORTING_ACTION_GROUP = "repositoriesSortingActionGroup"//$NON-NLS-1$
 
 	public RepositoriesSortingActionGroup(Shell shell,
 			IPropertyChangeListener comparatorUpdater) {
 		Assert.isNotNull(shell);
 
 		this. = comparatorUpdater;
 			public void run() {
 			}
 		};
 			public void run() {
 			}
 		};
 			public void run() {
 			}
 		};
 			public void run() {
 			}
 		};
 	}
 
 	/* package */void setComparatorOrder(int orderBy) {
 		.setOrder(orderBy);
 	}
 
 	private void reverseSortingOrder() {
 	}
 
 	private void firePropertyChange(RepositoryComparator newComparator) {
 		// Update viewer
 		if ( != null) {
 							null /* oldComparator */,
							newComparator));
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.actions.ActionGroup#fillActionBars(org.eclipse.ui.IActionBars)
	 */
	public void fillActionBars(IActionBars actionBars) {
		IMenuManager menuManager = actionBars.getMenuManager();
		if (menuManager.find(.) != null)
		else
		IMenuManager sortSubmenu = new MenuManager(
				sortSubmenu);
		sortSubmenu.add();
		sortSubmenu.add();
		sortSubmenu.add(new Separator());
	}
	public void setSelectedComparator(RepositoryComparator selectedComparator) {
		 = selectedComparator;
	}
New to GrepCode? Check out our FAQ X