KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > operations > IBatchFeatureOperation


1 /*******************************************************************************
2  * Copyright (c) 2005, 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.update.internal.operations;
12
13 import org.eclipse.update.configuration.IConfiguredSite;
14 import org.eclipse.update.core.IFeature;
15 import org.eclipse.update.operations.IOperation;
16
17 public interface IBatchFeatureOperation extends IOperation {
18
19     /**
20      * Returns the features to operate on.
21      * @return the features to operate on.
22      */

23     public abstract IFeature[] getFeatures();
24     /**
25      * Returns the site in which the operation is applied.
26      * @return the site that owns or will own the feature.
27      */

28     public abstract IConfiguredSite[] getTargetSites();
29
30     /**
31      * Sets the site in which the feature is being operated on.
32      * @param targetSite the site in which the featre is being operated on.
33      */

34     public abstract void setTargetSites(IConfiguredSite[] targetSite);
35 }
36
Popular Tags