KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ui > wizards > SharingWizardPageActionGroup


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.ccvs.ui.wizards;
12
13 import org.eclipse.team.internal.ccvs.ui.actions.IgnoreAction;
14 import org.eclipse.team.internal.ccvs.ui.subscriber.CVSActionDelegateWrapper;
15 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration;
16 import org.eclipse.team.ui.synchronize.SynchronizePageActionGroup;
17
18 /**
19  * Adviser used to add toolbar buttons to the last page of the sharing wizard.
20  */

21 public class SharingWizardPageActionGroup extends SynchronizePageActionGroup {
22     
23     public static final String JavaDoc ACTION_GROUP = "cvs_sharing_page_actions"; //$NON-NLS-1$
24

25     /* (non-Javadoc)
26      * @see org.eclipse.team.ui.synchronize.subscriber.SynchronizeViewerAdvisor#initializeActions(org.eclipse.jface.viewers.StructuredViewer)
27      */

28     public void initialize(ISynchronizePageConfiguration configuration) {
29         super.initialize(configuration);
30         configuration.addMenuGroup(ISynchronizePageConfiguration.P_TOOLBAR_MENU, ACTION_GROUP);
31         
32         appendToGroup(
33                 ISynchronizePageConfiguration.P_TOOLBAR_MENU,
34                 ACTION_GROUP,
35                 new CVSActionDelegateWrapper(new IgnoreAction(), configuration){
36                     protected String JavaDoc getBundleKeyPrefix() {
37                         return "SharingWizardIgnore."; //$NON-NLS-1$
38
}
39                 });
40     }
41 }
42
Popular Tags