A part of what I am doing involves moving an already existing Swing toolbar
to Eclipse (native). Instead of defining a new action for each action within
the toolbar, is it possible for me to bring the existing Swing toolbar into
Eclipse using the SWT_AWT Bridge?
Paul Webster Messages: 6850 Registered: July 2009 Location: Ottawa
You should ask this in eclipse.platform.swt, they'll have a better
understanding of the SWT_AWT bridge.
Off the top of my head, I would say: 1) you can probably use a Swing
toolbar in a Swing JFrame embedded in an SWT Composite using SWT_AWT and
2) you can't place your Swing toolbar in the eclipse main
toolbar/coolbar, SWT_AWT can't bridge a Swing toolbar into an SWT toolbar.
One of the suggestions is to use a JApplet underneath your AWT Frame you get
from the SWT_AWT Bridge. You may even setJMenuBar() on the applet object.
I hope this helps.
"Rahul Kamdar" <email@example.com> wrote in message
> A part of what I am doing involves moving an already existing Swing
> toolbar to Eclipse (native). Instead of defining a new action for each
> action within the toolbar, is it possible for me to bring the existing
> Swing toolbar into Eclipse using the SWT_AWT Bridge?
Thanks for the help! I did check out the article but am still trying to
figure out what exactly will be right for my requirement. I am using a
JApplet underneath the AWT Frame returned by the SWT_AWT method call. I'll
also check out setJMenuBar() and see how it works for me.