1 /******************************************************************************* 2 * Copyright (c) 2000, 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.pde.internal.core.ifeature; 12 13 import org.eclipse.core.runtime.CoreException; 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) throws CoreException; 27 /** 28 * Sets a URL element that should be used to 29 * update Eclipse features. This 30 * method may throw a CoreException if 31 * the model is not editable. 32 * 33 * @param update a new update URL element or null 34 */ 35 public void setUpdate(IFeatureURLElement update) throws CoreException; 36 /** 37 * Return all URL elements that can be used 38 * to discover new Eclipse features. 39 * 40 * @return an array of URL features 41 */ 42 public IFeatureURLElement [] getDiscoveries(); 43 /** 44 * Return URL elements that can be used 45 * to update new Eclipse features. 46 * 47 * @return IFeatureURLElement or null if not set 48 */ 49 public IFeatureURLElement getUpdate(); 50 /** 51 * Remove a URL element that should be used to 52 * discover new Eclipse features. This 53 * method may throw a CoreException if 54 * the model is not editable. 55 * 56 * @param discovery a discovery URL element to remove 57 */ 58 public void removeDiscovery(IFeatureURLElement discovery) throws CoreException; 59 } 60