Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » setActiveEditor not called for opened editors from previous session
icon10.gif  setActiveEditor not called for opened editors from previous session [message #691972] Sun, 03 July 2011 01:27
Infinitum  is currently offline Infinitum Friend
Messages: 1
Registered: July 2011
Junior Member
Hi

I'm writing a plugin, where I have 4 actions (radio buttons) associated with CDT editor.

Classes for each actions implement IEditorActionDelegate. I check/uncheck the radio actions according to Editor content.

Everything works except for opened files at the startup. setActiveEditor was not called until user switches opened files or open a new one Shocked . I notice that the first switch of file kicks off setActiveEditor twice.

Is it a bug in EditorAction or am I doing something wrong? Embarrassed
Btw, my plugin has org.eclipse.uk.startup extension, a class implementing IStartup so I assume plugin is active from the beginning.

Thanks.
Previous Topic:PDE automated build
Next Topic:openFile through browser with custom protocol
Goto Forum:
  


Current Time: Sat Aug 08 16:03:19 GMT 2020

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

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

Back to the top