Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » First view clicked not activated if Editor with AWT-panel is active
First view clicked not activated if Editor with AWT-panel is active [message #323140] Tue, 11 December 2007 12:40
Eclipse UserFriend
Hello,

I have a come across a strange behaviour that I'd like to be able to
work around. I have created an Editor with an AWT panel via the SWT_AWT
bridge and I want to be able to make the editor active when clicking in
the AWT panel. I have registered a MouseListener that executes
(onMouseClick):

Display.getDefault().syncExec(new Runnable() {
public void run() {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().
getActivePage().activate(getPart());
}
);


This gives me the desired functionality; If I click on the panel, it
makes its editor active. BUT, now that I click on another view, this
view doesn't get activated! If I however click on a second view, it is
activated. It seems only the first view I click after the editor is not
activated, but only subsequent views. Can someone please explain this
behavior and propose a way to work around it? Maybe I am taking the
wrong approach here?

Thanks,

../Ola
Previous Topic:extending properties view, is that possible
Next Topic:common Navigator toolbar frustration
Goto Forum:
  


Current Time: Sat Aug 17 06:53:12 GMT 2024

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

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

Back to the top