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.jdt.ui.wizards;
11:
12: import org.eclipse.jdt.core.IClasspathEntry;
13:
14: /**
15: * Classpath container pages that implement {@link IClasspathContainerPage} can
16: * optionally implement {@link IClasspathContainerPageExtension2} to return more
17: * than one element when creating new containers. If implemented, the method {@link #getNewContainers()}
18: * is used instead of the method {@link IClasspathContainerPage#getSelection() } to get the
19: * newly selected containers. {@link IClasspathContainerPage#getSelection() } is still used
20: * for edited elements.
21: *
22: * @since 3.0
23: */
24: public interface IClasspathContainerPageExtension2 {
25:
26: /**
27: * Method {@link #getNewContainers()} is called instead of {@link IClasspathContainerPage#getSelection() }
28: * to get the newly added containers. {@link IClasspathContainerPage#getSelection() } is still used
29: * to get the edited elements.
30: * @return the classpath entries created on the page. All returned entries must be on kind
31: * {@link IClasspathEntry#CPE_CONTAINER}
32: */
33: public IClasspathEntry[] getNewContainers();
34:
35: }
|