KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > resources > InternalTeamHook


1 /*******************************************************************************
2  * Copyright (c) 2004, 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 - Initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.resources;
12
13 import org.eclipse.core.resources.IProject;
14 import org.eclipse.core.resources.IResourceRuleFactory;
15 import org.eclipse.core.resources.team.TeamHook;
16
17 /**
18  * The internal abstract superclass of all TeamHook implementations. This superclass
19  * provides access to internal non-API methods that are not available from the API
20  * package. Plugin developers should not subclass this class.
21  *
22  * @see TeamHook
23  */

24 public class InternalTeamHook {
25     /* (non-Javadoc)
26      * Internal implementation of TeamHook#setRulesFor(IProject,IResourceRuleFactory)
27      */

28     protected void setRuleFactory(IProject project, IResourceRuleFactory factory) {
29         Workspace workspace = ((Workspace) project.getWorkspace());
30         ((Rules) workspace.getRuleFactory()).setRuleFactory(project, factory);
31     }
32 }
33
Popular Tags