简体   繁体   中英

Swing/Prefuse or SWT for eclipse plugin development

I have existing java application where GUI had mainly built using Swing and prefuse API ( http://prefuse.org/ ). I want to develop eclipse plugin for this application. I have read in vogella tutorial that SWT is prefer to use for plugin development.

My problem is that if I should use SWT, then how can I convert each swing and prefuse API component to SWT?

PS: If I use existing GUI in my eclipse plugin project, then when I run the plugin as "Eclipse Application", it display GUI outside eclipse which I am not sure is correct behaviour for plugin development.

The http://wiki.eclipse.org/Albireo_Project might help:

"The Albireo project builds on the SWT_AWT bridge to provide more complete Swing/SWT integration, resulting in a better "out-of-the-box" experience and more credibility for the entire notion of Swing/SWT integration."

Extend the SwingControl and implement createSwingComponent() and getLayoutAncestor() . http://eclipsesrc.appspot.com/jsrcs/org.eclipse.albireo/org.eclipse.albireo.core/src/org/eclipse/albireo/core/SwingControl.java.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM