Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sapphire-dev] New topic in forum Sapphire, called How to listen for tab selection changes, by Tomáš Milata

Title: Eclipse Community Forums
Subject: How to listen for tab selection changes Author: Tomáš Milata Date: Tue, 19 May 2015 18:48
Hi,

I would like to be notified when a diagram tab is opened.

I have an editor with three tabs (tree-form editor, diagram and source) created like this. I tried to use the org.eclipse.ui.part.MultiPageEditorPart.addPageChangedListener(IPageChangedListener) method but the listener is triggered only when the tree-form editor tab is selected.

I seems to work if I override the getSelectedPage method from to return other than only IFormPage instances but I'm not sure if I'm using it the right way.

Do you know about a better solution?
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top