All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ui.console.IConsolePageParticipant Maven / Gradle / Ivy

There is a newer version: 3.14.200
Show 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.console;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.part.IPageBookViewPage;

/**
 * A console page participant is notified of page lifecycle events such as
 * creation, activation, deactivation and disposal. A page participant can
 * also provide adapters for a page. Participants are contributed via the
 * org.eclispe.ui.console.consolePageParticipants extension point.
 * 

* Participant behavior is implementation dependent. For example, a page participant * could add actions to a console's toolbar by accessing a its page's action bars. *

*

* Following is an example extension definition. *

 * <extension point="org.eclipse.ui.console.consolePageParticipants">
 *   <consolePageParticipant
 *      id="com.example.ExamplePageParticipant"
 *      class="com.example.ExamplePageParticipant">
 *   </consolePageParticipant>
 * </extension>
 * 
*

* The example page participant is contributed to all console pages. An optional * enablement attribute may be specified to control which consoles * a page participant is applicable to. *

* Clients contributing console page participant extensions are intended to * implement this interface. *

* @since 3.1 */ public interface IConsolePageParticipant extends IAdaptable { /** * Called during page initialization. Marks the start of this * page participant's lifecycle. * * @param page the page corresponding to the given console * @param console the console for which a page has been created */ public void init(IPageBookViewPage page, IConsole console); /** * Disposes this page participant. Marks the end of this * page participant's lifecycle. */ public void dispose(); /** * Notification this participant's page has been activated. */ public void activated(); /** * Notification this participant's page has been deactivated. */ public void deactivated(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy