glassfish importer for eclipse · glassfish importer for eclipse michael tidd . problem import a...
TRANSCRIPT
![Page 1: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/1.jpg)
Glassfish Importer for Eclipse
Michael Tidd
![Page 2: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/2.jpg)
Problem
Import a Glassfish project created in Netbeans into Eclipse
![Page 3: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/3.jpg)
Background
![Page 4: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/4.jpg)
Background
• Glassfish v3
![Page 5: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/5.jpg)
Approach
• Manually Convert Samples • Stand Alone Converter • Plug-in
![Page 6: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/6.jpg)
Manual Conversion
• Convert Netbeans projects by hand – Project structures mapped – Eclipse project files required editing
![Page 7: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/7.jpg)
Translations
![Page 8: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/8.jpg)
Translations
![Page 9: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/9.jpg)
Stand Alone Converter
• Convert from NetBeans to Eclipse • Prototype • Copy vs Standard
![Page 10: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/10.jpg)
Stand Alone Converter
• Copy
NetBeans
project
Eclipse
![Page 11: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/11.jpg)
Stand Alone Converter
• Copy
NetBeans
project
Eclipse
project
![Page 12: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/12.jpg)
Stand Alone Converter
• Copy
NetBeans
project
Eclipse
project +eclipse structure
![Page 13: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/13.jpg)
Stand Alone Converter
• Standard
NetBeans
project
Eclipse
![Page 14: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/14.jpg)
Stand Alone Converter
• Standard
NetBeans
project
Eclipse
+eclipse structure
![Page 15: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/15.jpg)
Stand Alone Converter
• Standard
NetBeans
project
Eclipse
+eclipse structure
![Page 16: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/16.jpg)
Stand Alone Converter
• Standard vs. Copy NetBeans
project
Eclipse
project +eclipse structure
NetBeans
project
Eclipse
+eclipse structure Standard:
Copy:
reference
![Page 17: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/17.jpg)
Stand Alone Converter
• Prototype
NetBeans
project
Eclipse
+eclipse structure Standard:
reference
![Page 18: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/18.jpg)
Stand Alone Converter
• Prototype Feedback – XML Parser – New Test Cases
![Page 19: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/19.jpg)
XML Parsing
• Document XML Parsing – Full Document Parse – Simple for developers – Slow
![Page 20: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/20.jpg)
XML Parsing
• Simple API for XML Parsing – Node Pull-based Parse – More Efficient
![Page 21: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/21.jpg)
XML Parsing
http://tech.inhelsinki.nl/2007-08-29/
![Page 22: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/22.jpg)
Factory Pattern
• FileFactory – retrieves xml from file – extracts project name
![Page 23: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/23.jpg)
Factory Pattern
• DotProjectFactory – copying the .project template – editing the .project template
FileFactory
DotProjectFactory DotProject
![Page 24: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/24.jpg)
Factory Pattern
• DotSettingsFactory – copying the .settings templates – extracts the context root – edits the .settings template
FileFactory
DotSettingsFactory DotProject
![Page 25: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/25.jpg)
Results
• Manually Convert Samples • Stand Alone Prototype • Stand Alone Converter
![Page 26: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/26.jpg)
Iteration 3
• Multiple Projects • Eclipse Plug-in
![Page 27: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/27.jpg)
Eclipse Plug-in
• Encapsulate Stand Alone within an Eclipse plug-in
• Utilized the Import Wizard – Activator – Bundle
![Page 28: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/28.jpg)
Eclipse Plug-in
• Template File Access Default File IO does not work for plug-ins – URL object – Manifest.mf
![Page 29: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/29.jpg)
Eclipse Plug-in
![Page 30: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/30.jpg)
Eclipse Plug-in
![Page 31: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/31.jpg)
Eclipse Plug-in
![Page 32: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/32.jpg)
Eclipse Plug-in
![Page 33: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/33.jpg)
Eclipse Plug-in
![Page 34: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/34.jpg)
Summary
• Manual Conversion • Prototype Converter
– Standard vs Copy • Stand-Alone Converter
– DOM vs SAX – File Factory
• Eclipse Plug-in – Template File Access
![Page 35: Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a Glassfish project created in Netbeans into Eclipse . Background . Background • Glassfish](https://reader031.vdocuments.mx/reader031/viewer/2022021803/5b999eec09d3f2c41b8beaa3/html5/thumbnails/35.jpg)
Acknowledgments
• In collaboration with Sun (now Oracle) • Worked with Glassfish team
– Ludovic Champenios – Vince Kraemer
• Advisor – Gary Pollice
https://glassfishplugins.dev.java.net/converter/index.html