Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343869 - Add WindowBuilder Core and Swing to the Java package
Summary: Add WindowBuilder Core and Swing to the Java package
Status: RESOLVED FIXED
Alias: None
Product: EPP
Classification: Technology
Component: java-package (show other bugs)
Version: 1.4.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 1.4.0 M7   Edit
Assignee: Markus Knauer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 11:14 EDT by Mark Russell CLA
Modified: 2020-06-18 07:28 EDT (History)
7 users (show)

See Also:


Attachments
Additional WindowBuilder Core and Swing features. (908 bytes, patch)
2011-05-31 15:42 EDT, Markus Knauer CLA
no flags Details | Diff
WindowBuilder Compiz Window Manager (197.05 KB, image/png)
2011-06-02 05:59 EDT, Markus Knauer CLA
no flags Details
About Dialog (51.79 KB, image/png)
2011-06-02 06:01 EDT, Markus Knauer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Russell CLA 2011-04-26 11:14:15 EDT
We would like to add the WindowBuilder Core and Swing to the java-package.  What do I have to do to get this done for 3.7M7?
Comment 1 Markus Knauer CLA 2011-04-29 08:34:23 EDT
Steffen, any opinion? Size?

@Mark: Which feature ID's need to be included?
Comment 2 Mark Russell CLA 2011-04-29 10:22:57 EDT
Feature ID's:
org.eclipse.wb.core.feature
org.eclipse.wb.core.ui.feature
org.eclipse.wb.doc.user.feature
org.eclipse.wb.layout.group.feature
Comment 3 Mark Russell CLA 2011-04-29 10:25:52 EDT
I forgot one:
org.eclipse.wb.swing.feature
Comment 4 Eric Clayberg CLA 2011-04-29 15:16:02 EDT
We might want to leave out the docs as they are quite large. They are available on-line in any case, and we could make them a separately installable package. That would drop org.eclipse.wb.doc.user.feature along with the core doc plugin and the swing doc plugin.
Comment 5 Steffen Pingel CLA 2011-05-04 17:57:22 EDT
+1 Would be great if we can reduce size significantly by making docs optional.
Comment 6 Mark Russell CLA 2011-05-05 09:14:22 EDT
We are working on that and hope to have a drop in the next day.
Comment 7 Eric Clayberg CLA 2011-05-06 16:08:58 EDT
We have the docs split out into separate features now and are currently in the process of building/testing the new configuration. We might be able to shave another MB or so by splitting off some additional optional pieces (which the user could always load from the update site if they needed them). I'm thinking about things like support for some of the popular 3rd party Swing layout managers like JGoodies FormLayout and MiGLayout.
Comment 8 Mark Russell CLA 2011-05-17 11:55:47 EDT
Current sizes:
org.eclipse.wb.core.feature               7.3M
org.eclipse.wb.core.ui.feature          128.0K
org.eclipse.wb.doc.user.feature           3.8M
org.eclipse.wb.layout.group.feature     428.0k
org.eclipse.wb.swing.feature              2.4M

total size ~= 13.5M
Comment 9 Mark Russell CLA 2011-05-17 16:45:15 EDT
I made a mistake when I did the size post here is the updated post:
Current sizes:
org.eclipse.wb.core.feature                  7.3M
org.eclipse.wb.core.ui.feature           128.0K
org.eclipse.wb.layout.group.featur    428.0k
org.eclipse.wb.swing.feature                 2.4M

total size ~= 10M
Comment 10 Mark Russell CLA 2011-05-17 16:50:07 EDT
This is the list of features that need to be added to the java-package
(In reply to comment #9)
> I made a mistake when I did the size post here is the updated post:
> Current sizes:
> org.eclipse.wb.core.feature                  7.3M
> org.eclipse.wb.core.ui.feature           128.0K
> org.eclipse.wb.layout.group.featur    428.0k
> org.eclipse.wb.swing.feature                 2.4M
> 
> total size ~= 10M
Comment 11 Mark Russell CLA 2011-05-26 15:56:16 EDT
Do I need to get anything more for this to happen for the Indigo release?
Comment 12 Steffen Pingel CLA 2011-05-31 13:36:19 EDT
Markus, could we add the features to package and do a nightly build to check what that would look like?
Comment 13 Markus Knauer CLA 2011-05-31 14:19:48 EDT
Sure (sure as in "we can add it to the feature", but not so sure if we are currently able to build at all after the crash yesterday).
I will add the features mentioned in comment #11.
Comment 14 Markus Knauer CLA 2011-05-31 15:42:31 EDT
Created attachment 197036 [details]
Additional WindowBuilder Core and Swing features.

Added to CVS HEAD.
Comment 15 Steffen Pingel CLA 2011-05-31 20:22:02 EDT
I played around with WindowBuild a bit and was very impressed! 

Some nits I noticed:

* There is debug output on the console which I suspect comes from WindowBuilder:
Parsing...done: 1484
refresh: 207
palette: 322
move overlapping
move overlapping
Parsing...done: 479
refresh: 286
palette: 174
* Selecting GWT User Interface under Project > New resulted in an NPE and a p2 error beind logged:
Missing requirement: Google Plugin for Eclipse 3.6 2.3.1.r36v201105191508 (com.google.gdt.eclipse.suite.e36.feature.feature.group 2.3.1.r36v201105191508) requires 'org.eclipse.wst.css.core 0.0.0' but it could not be found
* The org.eclipse.wb.discovery.core and org.eclipse.wb.discovery.ui do not have a provider set. Just out of curiosity is that based on Mylyn's/p2 discovery or a completely different implementation?
Comment 16 Steffen Pingel CLA 2011-05-31 21:05:34 EDT
One more thing that I noticed is that WindowBuilder contributes 3 startup extensions causing a number of bundles to get activated regardless if WindowBuilder is used in a session or not. Are all of these startup extensions required?
Comment 17 Devon Carew CLA 2011-06-01 02:36:26 EDT
> * Selecting GWT User Interface under Project > New resulted in an NPE and a p2
> error beind logged:
> Missing requirement: Google Plugin for Eclipse 3.6 2.3.1.r36v201105191508
> (com.google.gdt.eclipse.suite.e36.feature.feature.group 2.3.1.r36v201105191508)
> requires 'org.eclipse.wst.css.core 0.0.0' but it could not be found

I added some guard code for this, and some additional checks for when WB toolkits should be available / visible. We had a WB toolkit entry for the GPE, but the GPE does not yet have a 3.7 build. I think this was causing the problem you saw.

> * The org.eclipse.wb.discovery.core and org.eclipse.wb.discovery.ui do not have
> a provider set. Just out of curiosity is that based on Mylyn's/p2 discovery or
> a completely different implementation?

The UI was definitely inspired by Mylyn's connector discovery, and much of the actual update code was liberally borrowed from it ;)
Comment 18 Wayne Beaton CLA 2011-06-01 13:51:05 EDT
(In reply to comment #17)
> The UI was definitely inspired by Mylyn's connector discovery, and much of the
> actual update code was liberally borrowed from it ;)

Can we safely assume that copyright headers remained intact?
Comment 19 Devon Carew CLA 2011-06-01 14:12:49 EDT
(In reply to comment #18)
> (In reply to comment #17)
> > The UI was definitely inspired by Mylyn's connector discovery, and much of the
> > actual update code was liberally borrowed from it ;)
> 
> Can we safely assume that copyright headers remained intact?

I referenced sections of one class - our P2Provisioner class - when writing our code to interact with P2. There aren't any copyright headers from the Mylyn code - I didn't take the file wholesale - but I'd be happy to add copyright headers if people think it's warranted.
Comment 20 Eric Clayberg CLA 2011-06-01 18:59:26 EDT
(In reply to comment #15)
> I played around with WindowBuild a bit and was very impressed! 

Thanks!

> Some nits I noticed:
> * There is debug output on the console which I suspect comes from
> WindowBuilder:
> Parsing...done: 1484
> refresh: 207
> palette: 322
> move overlapping
> move overlapping
> Parsing...done: 479
> refresh: 286
> palette: 174

This debug output has been turned off in the latest build (for 3.7RC4).

> * The org.eclipse.wb.discovery.core and org.eclipse.wb.discovery.ui do not have
> a provider set.

Also fixed.
Comment 21 Eric Clayberg CLA 2011-06-01 19:11:52 EDT
(In reply to comment #16)
> One more thing that I noticed is that WindowBuilder contributes 3 startup
> extensions causing a number of bundles to get activated regardless if
> WindowBuilder is used in a session or not. Are all of these startup extensions
> required?

We reviewed them and decided that two were nice to have, but not required, so we turned them off for the latest build. The third is very small, very fast, and well isolated (only activates two small bundles and none of the WB core code), so we kept that one in place.
Comment 22 Wayne Beaton CLA 2011-06-01 22:53:52 EDT
(In reply to comment #21)
> We reviewed them and decided that two were nice to have, but not required, so
> we turned them off for the latest build. The third is very small, very fast,
> and well isolated (only activates two small bundles and none of the WB core
> code), so we kept that one in place.

"If it's warranted" is subjective. A few lines of boilerplate code probably doesn't warrant the transfered copyright notice. But if you've taken entire methods, or other novel implementation, then the original copyright holders really deserve a mention in your header at least.
Comment 23 Markus Knauer CLA 2011-06-02 05:59:00 EDT
Created attachment 197224 [details]
WindowBuilder Compiz Window Manager

I am running the Java Package with linux/gtk/x86_64 and I got this dialog when I started it for the first time. Do we want/need to ask that question at that time? Or could/should it be deferred until someone uses WindowBuilder?
Comment 24 Markus Knauer CLA 2011-06-02 06:01:53 EDT
Created attachment 197225 [details]
About Dialog

I would have expected that WindowBuilder contributes an icon with their feature to the About dialog. ;-)
Comment 25 Markus Knauer CLA 2011-06-02 06:04:22 EDT
And this seems to me a severe problem, WindowBuilder Core has a dependency to PDE (which should not be pulled into the Java package):

WindowBuilder Core	org.eclipse.wb.core.feature.feature.group
 --> Eclipse Plug-in Development Environment		org.eclipse.pde.feature.group
Comment 26 Eric Clayberg CLA 2011-06-02 13:44:53 EDT
(In reply to comment #25)
> And this seems to me a severe problem, WindowBuilder Core has a dependency to
> PDE (which should not be pulled into the Java package):
> 
> WindowBuilder Core    org.eclipse.wb.core.feature.feature.group
>  --> Eclipse Plug-in Development Environment       
> org.eclipse.pde.feature.group

We have removed this dependency (gracefully degrading if the PDE is not present) and will check in the changes once Eclipse SVN s working again.
Comment 27 Eric Clayberg CLA 2011-06-03 01:10:20 EDT
(In reply to comment #23)
> Created attachment 197224 [details]
> WindowBuilder Compiz Window Manager
> 
> I am running the Java Package with linux/gtk/x86_64 and I got this dialog when
> I started it for the first time. Do we want/need to ask that question at that
> time? Or could/should it be deferred until someone uses WindowBuilder?

We changed it to ask when the plugin is first activated (at first use).
Comment 28 Steffen Pingel CLA 2011-06-05 16:31:23 EDT
(In reply to comment #26)
> (In reply to comment #25)
> > And this seems to me a severe problem, WindowBuilder Core has a dependency to
> > PDE (which should not be pulled into the Java package):
> >
> > WindowBuilder Core    org.eclipse.wb.core.feature.feature.group
> >  --> Eclipse Plug-in Development Environment
> > org.eclipse.pde.feature.group

Thanks for catching that, Markus!
 
> We have removed this dependency (gracefully degrading if the PDE is not present)
> and will check in the changes once Eclipse SVN s working again.

It would be good if we got a package build with a fixed contribution as soon as possible since there are only three days left to make adjustments before RC4.
Comment 29 Mark Russell CLA 2011-06-05 22:53:12 EDT
I'm working on a build.
Comment 30 Markus Knauer CLA 2011-06-07 01:52:17 EDT
Any updates on the new build and the PDE dependency? The last package builds (e.g. http://build.eclipse.org/technology/epp/epp_build/indigo/download/20110605-1346/ - will be deleted soon) didn't show any difference. If I can be of any help, please let me know, e.g. if you need a special test build that includes things that are yet contributed to the Simultaneous Release /releases/staging repository.
Comment 31 Mark Russell CLA 2011-06-07 06:41:29 EDT
I'm running a new build now and should have it out soon
Comment 32 Eric Clayberg CLA 2011-06-08 09:58:33 EDT
(In reply to comment #24)
> Created attachment 197225 [details]
> About Dialog
> 
> I would have expected that WindowBuilder contributes an icon with their feature
> to the About dialog. ;-)

We used to do this when WB was a commercial product.

Should WB do this now that it is an Eclipse.org project?
Comment 33 Steffen Pingel CLA 2011-06-08 13:32:55 EDT
(In reply to comment #32)
> Should WB do this now that it is an Eclipse.org project?

Most projects contribute a branding icon to the about dialog as well as an item to the welcome page. I think it's good practice as it helps users to identify which features are installed and the welcome page is a good entry point to get started or find information about new enhancements.
Comment 34 Eric Clayberg CLA 2011-06-08 14:00:46 EDT
(In reply to comment #33)
> (In reply to comment #32)
> > Should WB do this now that it is an Eclipse.org project?
> 
> Most projects contribute a branding icon to the about dialog as well as an item
> to the welcome page. I think it's good practice as it helps users to identify
> which features are installed and the welcome page is a good entry point to get
> started or find information about new enhancements.

Do you think that is critical for 3.7 or could it wait for 3.7.1? I am wary about perturbing anything at this point this close to the release (although I suppose this would be fairly benign).
Comment 35 Steffen Pingel CLA 2011-06-08 14:06:49 EDT
(In reply to comment #34)
> Do you think that is critical for 3.7 or could it wait for 3.7.1? I am wary
> about perturbing anything at this point this close to the release (although I
> suppose this would be fairly benign).

No, absolutely not critical but certainly nice to have for the next release.
Comment 36 Markus Knauer CLA 2011-06-08 15:39:38 EDT
(In reply to comment #35 and comment #34)
It is not criticial at all, it was just an observation and it would be a nice to have for SR1.
Comment 37 Eric Clayberg CLA 2011-06-08 15:49:36 EDT
(In reply to comment #36)
> (In reply to comment #35 and comment #34)
> It is not criticial at all, it was just an observation and it would be a nice
> to have for SR1.

Sounds good. We will put that on our short list :-)
Comment 38 Steffen Pingel CLA 2011-06-10 09:34:45 EDT
It is looking good in the latest build! I only found one minor remaining nit which I tracked on bug 349028 to fix it for SR1. Thanks everyone for helping to make this happen!