Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Editor Tab
Editor Tab [message #550689] Wed, 04 August 2010 07:13
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 100
Registered: March 2010
Senior Member
Hello

I need know when I click in tab of editors in eclipse.

I have set a MouseListener to partStack (editorStack) of editorSashContainer (EditorArea) but I want to add the listener to a tab of editor only, for example:
If I have 3 editors opend and I add a listener to 2th editor I want to listener when I make click over the tab of 2th editor, (although the 2th editor has the focus)

EditorSashContainer editorSachContainer=...
MouseListener mouseListener=new ...


editorSashContainer.getActiveWorkbook().getControl().addMouseListener(mouseListener);



I have maden this too but it ins't good.
EditorSashContainer editorSachContainer=...
MouseListener mouseListener=new ...


editorSashContainer.getActiveWorkbook().getTabList()[0].addMouseListener(mouseListener);


Thanks a lot
Jose

[Updated on: Wed, 04 August 2010 07:26]

Report message to a moderator

Previous Topic:Errors when following the Plug-in Cheat Sheet
Next Topic:Editor Tab
Goto Forum:
  


Current Time: Thu Apr 25 20:07:53 GMT 2024

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

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

Back to the top