Skip to main content



      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 02:50
Eclipse UserFriend
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 Jul 12 07:40:39 EDT 2025

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

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

Back to the top