KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > operations > IFeatureOperation


1 /*******************************************************************************
2  * Copyright (c) 2000, 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
12 package org.eclipse.update.operations;
13
14 import org.eclipse.update.configuration.*;
15 import org.eclipse.update.core.*;
16
17 /**
18  * An operation that applies to a feature, such as install, uninstall, etc.
19  * <p>
20  * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
21  * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
22  * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
23  * (repeatedly) as the API evolves.
24  * </p>
25  * @since 3.0
26  */

27 public interface IFeatureOperation extends IOperation {
28     /**
29      * Returns the feature to operate on.
30      * @return the feature to operate on.
31      */

32     public abstract IFeature getFeature();
33     /**
34      * Returns the site in which the operation is applied.
35      * @return the site that owns or will own the feature.
36      */

37     public abstract IConfiguredSite getTargetSite();
38     /**
39      * Returns the previous version of the feature (if any).
40      * @return the previous installed version of a feature (if any).
41      */

42     public abstract IFeature getOldFeature();
43     /**
44      * Sets the site in which the feature is being operated on.
45      * @param targetSite the site in which the featre is being operated on.
46      */

47     public abstract void setTargetSite(IConfiguredSite targetSite);
48 }
49
Popular Tags