First view clicked not activated if Editor with AWT-panel is active [message #323140] |
Tue, 11 December 2007 12:40 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03245 seconds