[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.albireo] SWT AWT Bridge showView results in org.eclipse.swt.SWTError: Item not added
|
Hi,
I am using the SWT_AWT Bridge framework for bring panels from my Swing
application into Eclipse/SWT. One of the issues I was encountering earlier
was about views not getting refreshed appropriately whenever there was a
change in the underlying Swing content. The way to workaround this was
recommended to use the "showView" and "hideView" methods to explicitly
remove and add these views again, as a result of which their
createPartControl methods would be invoked - ensuring the refresh.
As a side-effect of using these methods, there are some inconsistent cases
where I encounter the following:
org.eclipse.swt.SWTError: Item not added
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Widget.error(Widget.java:435)
at org.eclipse.swt.widgets.Menu.createItem(Menu.java:484)
at org.eclipse.swt.widgets.MenuItem.<init>(MenuItem.java:129)
at org.eclipse.jface.action.MenuManager.fill(MenuManager.java:218)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:662)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:581)
at org.eclipse.jface.action.MenuManager.fill(MenuManager.java:235)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:662)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:581)
at org.eclipse.jface.action.MenuManager.fill(MenuManager.java:235)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:662)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:581)
at org.eclipse.jface.action.MenuManager.fill(MenuManager.java:235)
at org.eclipse.jface.action.MenuManager.update(MenuManager.java:662)
at org.eclipse.jface.action.MenuManager.updateAll(MenuManager.java:762)
at
org.eclipse.ui.internal.WorkbenchWindow.updateActionBars(WorkbenchWindow.java:2753)
at
org.eclipse.ui.internal.WorkbenchPage.updateActionBars(WorkbenchPage.java:3685)
at
org.eclipse.ui.internal.WorkbenchPage$ActionSwitcher.updateActivePart(WorkbenchPage.java:361)
at
org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3205)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:588)
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1008)
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:989)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:968)
at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3514)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3511)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3487)
I am not sure why this is happening and what to do to avoid this problem.
Any help would be highly appreciated.
Thanks,
Rahul