blob: c0d88b58dd5043051367df31af9503027603307f (
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
31
|
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.team.internal.ui.sync.actions;
import org.eclipse.team.internal.ui.Utils;
import org.eclipse.ui.IKeyBindingService;
class ChooseSubscriberAction extends SyncViewerToolbarDropDownAction {
private final SyncViewerActions actions;
public void run() {
RefreshAction refresh = new RefreshAction(actions, true /* refresh all */);
refresh.run();
}
public ChooseSubscriberAction(SyncViewerActions actions, SyncViewerActionGroup[] actionGroup) {
super(actionGroup);
this.actions = actions;
Utils.initAction(this, "action.refreshSubscriber."); //$NON-NLS-1$
IKeyBindingService kbs = actions.getSyncView().getSite().getKeyBindingService();
Utils.registerAction(kbs, this, "org.eclipse.team.ui.syncview.syncAll"); //$NON-NLS-1$
}
}
|