Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 127485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:29:03+00:00 2026-05-11T05:29:03+00:00

I have a view which would like to be notified about all the currently

  • 0

I have a view which would like to be notified about all the currently opened editors. Where can I add a listener to achieve this?

I was expecting WorkbenchPage or EditorManager to have some appropriate listener registry, but I couldn’t find it.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:29:03+00:00Added an answer on May 11, 2026 at 5:29 am

    Does your view uses a org.eclipse.ui.IPartListener2 ?

    That is what is using this EditorListener, whose job is to react, for a given view, to Editor events (including open and close)

    public class EditorListener implements ISelectionListener, IFileBufferListener, IPartListener2 {     protected BytecodeOutlineView view;      EditorListener(BytecodeOutlineView view){         this.view = view;     }  [...]       /**      * @see org.eclipse.ui.IPartListener2#partOpened(org.eclipse.ui.IWorkbenchPartReference)      */     public void partOpened(IWorkbenchPartReference partRef) {         view.handlePartVisible(partRef.getPart(false));     } 

    Now if your ViewPart directly implements an IPartListener2, it can register itself to the various Editors, like this BytecodeReferenceView

    public class BytecodeReferenceView extends ViewPart implements IPartListener2, ISelectionListener {      [...]      public void createPartControl(Composite parent) {         browser = new Browser(parent, SWT.BORDER);         browser.setText(BytecodeOutlinePlugin.getResourceString(NLS_PREFIX             + 'empty.selection.text'));         final IWorkbenchWindow workbenchWindow = getSite().getWorkbenchWindow();         workbenchWindow.getPartService().addPartListener(this);     [...] 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view which I would like to add an exposed filter of
I have a materialized view of a complex join, which I would like to
I a view have for which I would like to show a ContextMenu on
I have a view 200 x 150 px which i would like to present
I have a custom view which I would like to look like a UINavigationBar.
I have 5 view which have deferent json data , in all my 5
I would like to have a view that scrolls. The view would have a
Currently, I have a view that shows all my investments maturing within the next
i have view which looks something like this : <% using (Ajax.BeginForm(new AjaxOptions {
I have an iOS 5.0 application for which I would like to change the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.