01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core.ifeature;
11:
12: import org.eclipse.core.runtime.CoreException;
13:
14: /**
15: * The container for all URL definitions of this feature.
16: */
17: public interface IFeatureURL extends IFeatureObject {
18: /**
19: * Add a URL element that should be used to
20: * discover new Eclipse features. This
21: * method may throw a CoreException if
22: * the model is not editable.
23: *
24: * @param discovery a new discovery URL element
25: */
26: public void addDiscovery(IFeatureURLElement discovery)
27: throws CoreException;
28:
29: /**
30: * Sets a URL element that should be used to
31: * update Eclipse features. This
32: * method may throw a CoreException if
33: * the model is not editable.
34: *
35: * @param update a new update URL element or null
36: */
37: public void setUpdate(IFeatureURLElement update)
38: throws CoreException;
39:
40: /**
41: * Return all URL elements that can be used
42: * to discover new Eclipse features.
43: *
44: * @return an array of URL features
45: */
46: public IFeatureURLElement[] getDiscoveries();
47:
48: /**
49: * Return URL elements that can be used
50: * to update new Eclipse features.
51: *
52: * @return IFeatureURLElement or null if not set
53: */
54: public IFeatureURLElement getUpdate();
55:
56: /**
57: * Remove a URL element that should be used to
58: * discover new Eclipse features. This
59: * method may throw a CoreException if
60: * the model is not editable.
61: *
62: * @param discovery a discovery URL element to remove
63: */
64: public void removeDiscovery(IFeatureURLElement discovery)
65: throws CoreException;
66: }
|