+ All Categories
Home > Documents > Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a...

Glassfish Importer for Eclipse · Glassfish Importer for Eclipse Michael Tidd . Problem Import a...

Date post: 13-Sep-2018
Category:
Upload: vongoc
View: 229 times
Download: 0 times
Share this document with a friend
35
Glassfish Importer for Eclipse Michael Tidd
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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


Recommended