Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 36fdd1916a379c7b695613be1a24dc4f3d82263c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Created on Jul 11, 2003
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package org.eclipse.team.internal.ui.sync.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.team.internal.ui.Utils;


class ChooseChangeFilterAction extends SyncViewerToolbarDropDownAction {
	private final SyncViewerActions actions;
	private SyncViewerChangeFilters filters;
	public void run() {		
		Action[] enabled = filters.getActiveFilters();
		Action[] actions = filters.getFilters();
		if(actions.length != enabled.length) {
			filters.setAllEnabled();
			this.actions.refreshFilters();
		}
	}		
	public ChooseChangeFilterAction(SyncViewerActions actions, SyncViewerChangeFilters filters) {
		super(filters);
		this.actions = actions;
		this.filters = filters;
		Utils.initAction(this, "action.changeFilters."); //$NON-NLS-1$
	}		
}

Back to the top