Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » partService.showPart with PartState.ACTIVATE(partService.showPart with PartState.ACTIVATE causes problems)
partService.showPart with PartState.ACTIVATE [message #1758757] Sun, 02 April 2017 06:50
Jay Norwood is currently offline Jay NorwoodFriend
Messages: 155
Registered: July 2009
Senior Member
I just debugged a problem where I was showing some MParts in response to a tree element selection.

I kept having a problem with the selections effectively locking up after a few presses. I had copied some code that used

partService.showPart(part, PartState.ACTIVATE)

It turns out the ACTIVATE took activation away from the MPart that had the tree in it, and then the selectionChanged events wouldn't fire off unless I clicked outside that part and then back on a tree element again.

All this was fixed by using PartState.VISIBLE instead of PartState.ACTIVATE

I'm just posting this for info. Not a bug, just a troublesome combination.
Previous Topic:Exception in Application start method
Next Topic:MCompositePart Closeable?
Goto Forum:
  


Current Time: Sat Sep 21 20:22:07 GMT 2024

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

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

Back to the top