KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ui > subscriber > CreatePatchWizardParticipant


1 /*******************************************************************************
2  * Copyright (c) 2005 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.subscriber;
12
13 import org.eclipse.team.internal.ccvs.ui.wizards.GenerateDiffFileWizard;
14 import org.eclipse.team.internal.ui.synchronize.SynchronizePageConfiguration;
15 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration;
16 import org.eclipse.team.ui.synchronize.ISynchronizeScope;
17
18 public class CreatePatchWizardParticipant extends WorkspaceSynchronizeParticipant {
19      
20     final GenerateDiffFileWizard fWizard;
21     
22     public CreatePatchWizardParticipant(ISynchronizeScope scope, GenerateDiffFileWizard wizard) {
23         super(scope);
24         fWizard= wizard;
25     }
26
27     /* (non-Javadoc)
28      * @see org.eclipse.team.internal.ccvs.ui.subscriber.WorkspaceSynchronizeParticipant#initializeConfiguration(org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration)
29      */

30     protected void initializeConfiguration( ISynchronizePageConfiguration configuration) {
31         super.initializeConfiguration(configuration);
32         configuration.setProperty(ISynchronizePageConfiguration.P_TOOLBAR_MENU, new String JavaDoc[] {ISynchronizePageConfiguration.LAYOUT_GROUP});
33         configuration.setProperty(ISynchronizePageConfiguration.P_CONTEXT_MENU, ISynchronizePageConfiguration.DEFAULT_CONTEXT_MENU);
34         ((SynchronizePageConfiguration)configuration).setViewerStyle(SynchronizePageConfiguration.CHECKBOX);
35         configuration.setSupportedModes(ISynchronizePageConfiguration.OUTGOING_MODE);
36         configuration.setMode(ISynchronizePageConfiguration.OUTGOING_MODE);
37     }
38     /* (non-Javadoc)
39      * @see org.eclipse.team.ui.synchronize.AbstractSynchronizeParticipant#doesSupportSynchronize()
40      */

41     public boolean doesSupportSynchronize() {
42         return false;
43     }
44 }
45
Popular Tags