Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Class MultiPageEditorActionBarContributor

  extended by 

      extended by 
All Implemented Interfaces:

public abstract class MultiPageEditorActionBarContributor
extends EditorActionBarContributor

Abstract base class for managing the installation/deinstallation of global actions for multi-page editors.

Subclasses must implement setActivePage, and may reimplement any of the following methods:

  • contributeToMenu - reimplement to contribute to menu
  • contributeToToolBar - reimplement to contribute to tool bar
  • contributeToStatusLine - reimplement to contribute to status line

Constructor Summary
protected MultiPageEditorActionBarContributor ()
          Creates a multi-page editor action contributor.
Method Summary
 void setActiveEditor ( IEditorPart part)
          Sets the active editor for the contributor.
abstract  void setActivePage ( IEditorPart activeEditor)
          Sets the active page of the the multi-page editor to be the given editor.
Methods inherited from class org.eclipse.ui.part. EditorActionBarContributor
contributeToCoolBar, contributeToMenu, contributeToStatusLine, contributeToToolBar, dispose, getActionBars, getPage, init, init
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


protected MultiPageEditorActionBarContributor()
Creates a multi-page editor action contributor.

Method Detail


public void setActiveEditor(
IEditorPart part)
Description copied from class: EditorActionBarContributor
Sets the active editor for the contributor.

The EditorActionBarContributor implementation of this method does nothing. Subclasses may reimplement. This generally entails disconnecting from the old editor, connecting to the new editor, and updating the actions to reflect the new editor.

Specified by:
setActiveEditor in interface IEditorActionBarContributor
setActiveEditor in class EditorActionBarContributor
part - the new target editor


public abstract void setActivePage(
IEditorPart activeEditor)
Sets the active page of the the multi-page editor to be the given editor. Redirect actions to the given editor if actions are not already being sent to it.

This method is called whenever the page changes. Subclasses must implement this method to redirect actions to the given editor (if not already directed to it).

activeEditor - the new active editor, or null if there is no active page, or if the active page does not have a corresponding editor

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire