01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 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: import org.eclipse.jdt.core.IJavaProject;
14:
15: /**
16: * Classpath container pages that implement <code>IClasspathContainerPage</code> can
17: * optionally implement <code>IClasspathContainerPageExtension</code> to get additional
18: * information about the context when the page is opened. Method <code>initialize()</code>
19: * is called before <code>IClasspathContainerPage.setSelection</code>.
20: *
21: * @since 2.1
22: */
23: public interface IClasspathContainerPageExtension {
24:
25: /**
26: * Method <code>initialize()</code> is called before <code>IClasspathContainerPage.setSelection</code>
27: * to give additional information about the context the classpath container entry is configured in. This information
28: * only reflects the underlying dialogs current selection state. The user still can make changes after the
29: * the classpath container pages has been closed or decide to cancel the operation.
30: * @param project The project the new or modified entry is added to. The project does not have to exist.
31: * Project can be <code>null</code>.
32: * @param currentEntries The class path entries currently selected to be set as the projects classpath. This can also
33: * include the entry to be edited.
34: */
35: public void initialize(IJavaProject project,
36: IClasspathEntry[] currentEntries);
37:
38: }
|