org.eclipse.ui.part.IPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workbench Show documentation
Show all versions of workbench Show documentation
This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.part;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IActionBars;
/**
* This interface has been replaced by IPageBookViewPage
* but is preserved for backward compatibility.
*
* This class is not intended to be directly implemented by clients; clients
* should instead subclass Page
.
*
*
* @see PageBookView
* @see Page
*/
public interface IPage {
/**
* Creates the SWT control for this page under the given parent
* control.
*
* Clients should not call this method (the workbench calls this method when
* it needs to, which may be never).
*
*
* @param parent the parent control
*/
public void createControl(Composite parent);
/**
* Disposes of this page.
*
* This is the last method called on the IPage
. Implementors should
* clean up any resources associated with the page.
*
* Callers of this method should ensure that the page's control (if it exists)
* has been disposed before calling this method. However, for backward compatibilty,
* implementors must also ensure that the page's control has been disposed before
* this method returns.
*
*
* Note that there is no guarantee that createControl() has been called,
* so the control may never have been created.
*
*/
public void dispose();
/**
* Returns the SWT control for this page.
*
* @return the SWT control for this page, or null
if this
* page does not have a control
*/
public Control getControl();
/**
* Allows the page to make contributions to the given action bars.
* The contributions will be visible when the page is visible.
*
* This method is automatically called shortly after
* createControl
is called
*
*
* @param actionBars the action bars for this page
*/
public void setActionBars(IActionBars actionBars);
/**
* Asks this page to take focus within its pagebook view.
*/
public void setFocus();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy