Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Listener for embedded editor??
Listener for embedded editor?? [message #286759] Thu, 16 June 2005 15:30
Eclipse UserFriend
I have two perspectives A and B. Perspective A has an embedded editor A
in view A. Perspective B has an editor B. Editor A and B edit the same
document just differently.

It is a requirement to have two perspectives and the editor A embedded
into view A for perspective A.

Here is what I'm attempting:

If embedded Editor A has a file open and the user swaps to perspective B,
then I need to open Editor B on the same file unless its already open and
vice/versa when swapping perspectives.

I've tried using IPerspectiveListener3 and IPartListener.

My problem is that the IPartListener will only tell me when my view with
the embedded editor is activated, deactivated etc but nothing about the
editor embedded within it. I embedded my editor using
WorkbenchPartFactory's createEditor() method. And yes I understand this
is internal and experimental.

Is there an internal/experimental way to deal with embedded views/editors
and part listeners in the manner described above?

I had this working using the IPerspectiveListener3, when the editor wasn't
embedded. So I'm trying to figure out what listener I should use when
using embedded views/editors. Or if there is some *generic* listener that
I could use to have the embedded editor fire off methods when its
opened/closed.

And if anyone else is working with embedded views/editors I'd be
interested to collaborate with you.

[Updated on: Sat, 30 March 2013 00:15] by Moderator

Previous Topic:Can not get help to work
Next Topic:Product configuration?
Goto Forum:
  


Current Time: Mon Nov 10 00:17:50 EST 2025

Powered by FUDForum. Page generated in 0.04116 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top