KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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 import org.eclipse.jdt.core.IJavaProject;
15
16 /**
17  * Classpath container pages that implement <code>IClasspathContainerPage</code> can
18  * optionally implement <code>IClasspathContainerPageExtension</code> to get additional
19  * information about the context when the page is opened. Method <code>initialize()</code>
20  * is called before <code>IClasspathContainerPage.setSelection</code>.
21  *
22  * @since 2.1
23  */

24 public interface IClasspathContainerPageExtension {
25     
26     /**
27      * Method <code>initialize()</code> is called before <code>IClasspathContainerPage.setSelection</code>
28      * to give additional information about the context the classpath container entry is configured in. This information
29      * only reflects the underlying dialogs current selection state. The user still can make changes after the
30      * the classpath container pages has been closed or decide to cancel the operation.
31      * @param project The project the new or modified entry is added to. The project does not have to exist.
32      * Project can be <code>null</code>.
33      * @param currentEntries The class path entries currently selected to be set as the projects classpath. This can also
34      * include the entry to be edited.
35      */

36     public void initialize(IJavaProject project, IClasspathEntry[] currentEntries);
37
38 }
39
Popular Tags