Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 397684 - ETFw using JAXB framework
Summary: ETFw using JAXB framework
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: ETFw (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Greg Watson CLA
QA Contact: Greg Watson CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 397685 402787
  Show dependency tree
 
Reported: 2013-01-08 10:55 EST by Chris Navarro CLA
Modified: 2013-03-20 10:41 EDT (History)
2 users (show)

See Also:


Attachments
patches to ETFw (20.06 KB, application/x-gzip)
2013-01-08 10:57 EST, Chris Navarro CLA
no flags Details
new projects for ETFw (73.12 KB, application/x-gzip)
2013-01-08 10:58 EST, Chris Navarro CLA
no flags Details
patches to support new etfw framework (20.92 KB, application/x-gzip)
2013-02-14 13:23 EST, Chris Navarro CLA
g.watson: iplog+
Details
projects for new etfw framework (140.36 KB, application/x-gzip)
2013-02-14 13:26 EST, Chris Navarro CLA
g.watson: iplog+
Details
addresses code cleanup (9.55 KB, application/x-gzip)
2013-03-07 17:22 EST, Chris Navarro CLA
no flags Details
adds required constants (702 bytes, patch)
2013-03-08 08:44 EST, Chris Navarro CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Navarro CLA 2013-01-08 10:55:03 EST
I have created an extension for the External Tools Framework that allows users to write JAXB workflows using the UI widgets provided by PTP's resource manager schema. This allows more direct control over the User Interface design for ETFw tools. The framework supports both the previous SAX parser based workflows and the new JAXB parser based workflow using a menu selection in the Performance Analysis tab. There are minor changes to the ETFw backend to support both workflow types.
Comment 1 Chris Navarro CLA 2013-01-08 10:57:40 EST
Created attachment 225344 [details]
patches to ETFw
Comment 2 Chris Navarro CLA 2013-01-08 10:58:07 EST
Created attachment 225345 [details]
new projects for ETFw
Comment 3 Chris Navarro CLA 2013-01-08 11:09:13 EST
There are notes in the ETFW schema explaining why it points at my local workspace for importing the resource manager schema. In short, the ETFw TAU patch in bug 397685 needs the modified resource manager schema to work properly. If these changes are accepted and made to the schema at http://eclipse.org/ptp/schemas/rm.xsd then the ETFw schema will simply need to be pointed there.
Comment 4 Greg Watson CLA 2013-02-13 17:14:22 EST
Chris, please make the following confirmations:

1.  I authored 100% of the content I'm contributing
2.  I have the rights to contribute the content to Eclipse
3.  I contribute the content under the EPL'

Thanks!
Comment 5 Chris Navarro CLA 2013-02-14 13:23:05 EST
Created attachment 227096 [details]
patches to support new etfw framework
Comment 6 Chris Navarro CLA 2013-02-14 13:26:54 EST
Created attachment 227097 [details]
projects for new etfw framework
Comment 7 Chris Navarro CLA 2013-02-14 13:28:45 EST
1) I have authored 100% of the content I am contributing.
2) I have the rights to contribute the content to Eclipse
3) I contribute the content under the EPL. All contributed classes should include a header stating this as well.

(In reply to comment #4)
> Chris, please make the following confirmations:
> 
> 1.  I authored 100% of the content I'm contributing
> 2.  I have the rights to contribute the content to Eclipse
> 3.  I contribute the content under the EPL'
> 
> Thanks!
Comment 8 Brian Watt CLA 2013-02-20 16:03:29 EST
Some comments about the latest (2/14/2013) projects 

1. In the org.eclipse.ptp.etfw.launch project plugin requires JavaSE-1.7 and should be reset to use JavaSE-1.6.

2. In the org.eclipse.ptp.etfw.launch project plugin in the ETFWToolTabBuilder class getting an "Unhandled exception type CoreException" for two lines: UpdateModelFactory.createModel(control, browse, tab, rmVarMap, targets);
Comment 9 Greg Watson CLA 2013-03-05 15:40:09 EST
This contribution has now been approved.
Comment 10 Greg Watson CLA 2013-03-06 14:36:52 EST
This has been committed to master. I noticed a few issues with the contribution:

1. There is a lot of commented out code. Please remove.
2. There are non-externalized strings. Please run the Externalize Strings and Find Broken Exernalized Strings wizards.
3. Raw types are used. These should be parameterized.
4. Plugin missing about.html.
5. Plugin localization needs to be plugin and plugin.properties added.
6. Plugins missing pom.xml files.
7. Plugins need to be added to feature.

If you could attach a patch that address these issues it would be appreciated.
Thanks!
Comment 11 Chris Navarro CLA 2013-03-07 08:57:22 EST
I'll do that.
Comment 12 Chris Navarro CLA 2013-03-07 10:01:06 EST
I don't see the new classes from the org.eclipse.ptp.etfw.patch that should be in org.eclipse.ptp.etfw. There was an ETFWBuilderTool, ETFWToolStep, ETFWLaunchTool and ETFWPostProcessTool. These are the pieces that understand the jaxb ETFW workflow.
Comment 13 Greg Watson CLA 2013-03-07 10:20:15 EST
I had to apply some of the patches by hand and missed these. I've applied the etfw and etfw.parallel patches now. Please check they are ok.
Comment 14 Chris Navarro CLA 2013-03-07 17:22:33 EST
Created attachment 228111 [details]
addresses code cleanup

This should address all code cleanup issues identified in comment #10. I also noticed some un-implemented methods in ETFWLaunchTabBuilder that required 2 more x-friends to support building all JAXB widget types and remove discouraged access warnings. The x-friends patch is part of the org.eclipse.ptp.rm.jaxb.control.ui.patch. We can discuss in more detail later, but basically LaunchTabBuilder is specific to the target configuration launch tabs, which is why I had to create ETFWLaunchTabBuilder. In the future I think we should be able to use a single launch tab builder. Should I open a bug on this?
Comment 15 Greg Watson CLA 2013-03-08 07:48:48 EST
I applied the patch, but I'm seeing a reference to IToolLaunchConfigurationConstants.USE_JAXB_PARSER which doesn't seem to exist.

Also, rather than a tar.gz, please just add a single patch file attachment containing all the patches. Thanks.
Comment 16 Chris Navarro CLA 2013-03-08 08:07:24 EST
Sorry Greg, I forgot to include a patch for the constants class, I'll update it shortly. Do you want me to replace the tar.gz with one big patch or just add patch that is missing?
Comment 17 Greg Watson CLA 2013-03-08 08:23:22 EST
Just the missing patch will be fine.
Comment 18 Chris Navarro CLA 2013-03-08 08:44:00 EST
Created attachment 228137 [details]
adds required constants

This fixes missing changes from the code cleanup patch zip file.
Comment 19 Greg Watson CLA 2013-03-08 09:08:42 EST
Committed.
Comment 20 Chris Navarro CLA 2013-03-08 09:37:25 EST
Thanks! By the way, I wasn't sure what to put for the version (it's 1.0.0.qualifier). So that and the pom might need to be updated to sync up with everything else.
Comment 21 Greg Watson CLA 2013-03-14 11:26:53 EDT
It looks like there are a bunch of xjc generated classes in data/org/eclipse/ptp/etfw/jaxb in the org.eclipse.ptp.etfw.jaxb plugin. Should these be under src or removed?
Comment 22 Chris Navarro CLA 2013-03-14 11:33:48 EDT
Oops, that's my mistake. I should not have include those xjc files from data in my attached zip file. Sorry about that. Everything that is under the src folder is the latest compilation of the xsd.
Comment 23 Greg Watson CLA 2013-03-20 10:35:39 EDT
Closing this as completed.