Skip to main content
summaryrefslogtreecommitdiffstats
blob: 4164c9dfa6e48b871209d1f201655880de320a5f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*******************************************************************************
 * 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.ui;

import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.team.internal.ui.TeamUIPlugin;
import org.eclipse.team.internal.ui.sync.views.SynchronizeView;
import org.eclipse.team.ui.sync.ISynchronizeView;
import org.eclipse.ui.IWorkbenchPage;

/**
 * TeamUI contains public API for generic UI-based Team functionality
 */
public class TeamUI {
	// property change types
	public static String GLOBAL_IGNORES_CHANGED = "global_ignores_changed"; //$NON-NLS-1$
	
	/**
	 * Makes the synchronize view visible in the active page and returns a handle
	 * to the view.
	 */
	public static ISynchronizeView showSyncViewInActivePage(IWorkbenchPage activePage) {
		return SynchronizeView.showInActivePage(activePage);		
	}
		
	/**
	 * Register for changes made to Team properties.
	 * 
	 * @param listener  the listener to add
	 */
	public static void addPropertyChangeListener(IPropertyChangeListener listener) {
		TeamUIPlugin.addPropertyChangeListener(listener);
	}
	
	/**
	 * Deregister as a Team property changes.
	 * 
	 * @param listener  the listener to remove
	 */
	public static void removePropertyChangeListener(IPropertyChangeListener listener) {
		TeamUIPlugin.removePropertyChangeListener(listener);
	}
}

Back to the top