KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > ui > wizards > IClasspathContainerPageExtension2


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.jdt.ui.wizards;
12
13 import org.eclipse.jdt.core.IClasspathEntry;
14
15 /**
16  * Classpath container pages that implement {@link IClasspathContainerPage} can
17  * optionally implement {@link IClasspathContainerPageExtension2} to return more
18  * than one element when creating new containers. If implemented, the method {@link #getNewContainers()}
19  * is used instead of the method {@link IClasspathContainerPage#getSelection() } to get the
20  * newly selected containers. {@link IClasspathContainerPage#getSelection() } is still used
21  * for edited elements.
22  *
23  * @since 3.0
24  */

25 public interface IClasspathContainerPageExtension2 {
26     
27     /**
28      * Method {@link #getNewContainers()} is called instead of {@link IClasspathContainerPage#getSelection() }
29      * to get the newly added containers. {@link IClasspathContainerPage#getSelection() } is still used
30      * to get the edited elements.
31      * @return the classpath entries created on the page. All returned entries must be on kind
32      * {@link IClasspathEntry#CPE_CONTAINER}
33      */

34     public IClasspathEntry[] getNewContainers();
35
36 }
37
Popular Tags