Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 291432 - Proposed TableCombo Widget
Summary: Proposed TableCombo Widget
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Nebula (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Thomas Schindl CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-05 19:31 EDT by Marty Jones CLA
Modified: 2021-07-05 11:41 EDT (History)
7 users (show)

See Also:


Attachments
TableCombo Eclipse project. (16.79 KB, application/vnd.ms-excel)
2009-10-05 19:31 EDT, Marty Jones CLA
no flags Details
Refactored TableCombo (20.10 KB, patch)
2009-10-07 01:10 EDT, Marty Jones CLA
no flags Details | Diff
Updated Widget with new package names and added some new features (22.70 KB, application/zip)
2009-10-08 12:25 EDT, Marty Jones CLA
no flags Details
Updated Project to be a Plugin Project. (28.27 KB, patch)
2009-10-10 11:43 EDT, Marty Jones CLA
no flags Details | Diff
Updated Widget (23.25 KB, patch)
2009-10-15 21:56 EDT, Marty Jones CLA
no flags Details | Diff
Fixed issue with TableComboViewer (23.28 KB, patch)
2009-10-23 23:46 EDT, Marty Jones CLA
wim.jongman: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marty Jones CLA 2009-10-05 19:31:19 EDT
Created attachment 148841 [details]
TableCombo Eclipse project.

This widget has the following features:

o  Supports displaying multiple columns of data in the drop down portion of the
combo.
o  Supports displaying a header for the drop down portion of the combo.
Supports images for each column that is displayed within the drop down portion
of the combo.
o  Supports custom Colors and Fonts for each Row & Column within the drop down
portion of the combo.
o  Supports displaying a % of the full drop down portion of the combo. So you
can specify that the viewable portion of the drop down will be 75% of the full
width of the table and a Horizontal scrollbar will be displayed.
Comment 1 Marty Jones CLA 2009-10-07 01:10:25 EDT
Created attachment 148959 [details]
Refactored TableCombo 

This archive has the TableCombo widget refactored so that there is a straight SWT TableCombo widget and a TableComboViewer.  The code is getting closer but I am still not happy with a few things.
Comment 2 Marty Jones CLA 2009-10-08 12:25:28 EDT
Created attachment 149136 [details]
Updated Widget with new package names and added some new features

I added in the EPL header on all the source and updated the package names to be consistent with the nebula package structure.

I also added a few new features to the TableCombo.

1. Made it easier to specify the column definitions within the TableCombo.

2. Table Columns by default will now be auto sized based upon the content in them so you don't have to specify a column width unless you want to override the calculated value.
Comment 3 Thomas Schindl CLA 2009-10-10 06:40:25 EDT
Ok took a look and I file a CQ. Just one comment you should make a Plugin-Project from it using the PDE-Wizard and name the project 'org.eclipse.nebula.widgets.tablecombo'.
Comment 4 Thomas Schindl CLA 2009-10-10 06:42:32 EDT
Filed CQ: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=3568
Comment 5 Marty Jones CLA 2009-10-10 11:43:29 EDT
Created attachment 149302 [details]
Updated Project to be a Plugin Project.

Updated widget's project to be a plugin project.
Comment 6 Chris Aniszczyk CLA 2009-10-13 13:54:52 EDT
Marty, can you verify that:

1.  You authored 100% of the contribution
2.  You have the rights to donate the content to Eclipse
3.  You are contributing the content under the EPL
Comment 7 Marty Jones CLA 2009-10-13 14:08:11 EDT
Chris,

Sure, I have included my responses below.

(In reply to comment #6)
> Marty, can you verify that:
> 1.  You authored 100% of the contribution

I used the CCombo class a good bit as a reference for my widget. Basically I took the CCombo class and replaced the List control with a Table control and then added additional logic for sizing and convience.  

I also used the TableViewer class a good bit as a reference when creating my TableComboViewer class.  


> 2.  You have the rights to donate the content to Eclipse

I do have the rights to donate this widget because I wrote it in my free time one weekend.

> 3.  You are contributing the content under the EPL

I am contributing the widget under EPL.
Comment 8 Chris Aniszczyk CLA 2009-10-15 12:09:48 EDT
Marty, here's some comments from the Eclipse legal team to get addressed.

--

Can you please check with the contributor regarding the following:

1.  TableComboViewer.java indicates that IBM was a contributor to the file -
see:
# Contributors:
#  *    IBM Corporation - SWT's TableViewer was used as a guideline to build
this class

I do not believe IBM's attribution should be contained in the ontribution
Section but moved below the header.

2.  TableComboViewerRow.java is matching 71% to an original Eclipse file with
copyright belonging to IBM.  As such, IBM would be the copyright holder of this
file with the contributor listed only in the Contributor Section.

3.  TableCombo.java also matches quite a bit to an original Eclipse file with
copyright belonging to IBM.  As such, #2 revisions would apply to this file as
well.

4.  icon_favorite.gif is matching to a third party gif that does not appear to
originate from Eclipse???

5.  icon_accept.gif appears to originate from Fam Fam (Silk).  While some icons
are approved for use in Eclipse from Silk, this project would need to check if
this icon is included in the original package which was approved and then
"piggyback" off the approved CQ.

Please work with the contributor to gain a new attachment.
Comment 9 Marty Jones CLA 2009-10-15 12:21:07 EDT
Chris,

I am working on a few changes to the widget and I will update the epl license header information as they suggested.  As far as the icons are concerned, I just grabbed two icons for the code snippets.  The icons are not really part of the widget.   Are there any stock icons that are part of eclipse that are 16 x 16 that I could use instead?



(In reply to comment #8)
> Marty, here's some comments from the Eclipse legal team to get addressed.
> 
> --
> 
> Can you please check with the contributor regarding the following:
> 
> 1.  TableComboViewer.java indicates that IBM was a contributor to the file -
> see:
> # Contributors:
> #  *    IBM Corporation - SWT's TableViewer was used as a guideline to build
> this class
> 
> I do not believe IBM's attribution should be contained in the ontribution
> Section but moved below the header.
> 
> 2.  TableComboViewerRow.java is matching 71% to an original Eclipse file with
> copyright belonging to IBM.  As such, IBM would be the copyright holder of this
> file with the contributor listed only in the Contributor Section.
> 
> 3.  TableCombo.java also matches quite a bit to an original Eclipse file with
> copyright belonging to IBM.  As such, #2 revisions would apply to this file as
> well.
> 
> 4.  icon_favorite.gif is matching to a third party gif that does not appear to
> originate from Eclipse???
> 
> 5.  icon_accept.gif appears to originate from Fam Fam (Silk).  While some icons
> are approved for use in Eclipse from Silk, this project would need to check if
> this icon is included in the original package which was approved and then
> "piggyback" off the approved CQ.
> 
> Please work with the contributor to gain a new attachment.
Comment 10 Chris Aniszczyk CLA 2009-10-15 12:25:35 EDT
(In reply to comment #9)
> Chris,
> 
> I am working on a few changes to the widget and I will update the epl license
> header information as they suggested.  As far as the icons are concerned, I
> just grabbed two icons for the code snippets.  The icons are not really part of
> the widget.   Are there any stock icons that are part of eclipse that are 16 x
> 16 that I could use instead?

I generally look for icons on http://www.iconlet.com/

Make sure they are EPL or under an EPL-friendly license.

Not sure if Tom has ideas about icons.
Comment 11 Thomas Schindl CLA 2009-10-15 12:36:49 EDT
Nothing but I'd suggest using one from the eclipse projects for snippets [1] and generally speaking I would remove the snippet from the initial contribution source and once you are a committer add the snippets.

I simply unzipped some of the eclipse plugins and then you have enough icons to play with. Another thing we did in the past in snippets is to dynamically create icons using SWT-GC.

[1]http://xantorohara.110mb.com/core-icons/Eclipse-16x16.html
Comment 12 Marty Jones CLA 2009-10-15 12:44:17 EDT
Tom,

Good Idea, I will remove the snippets from the initial contribution until all the acceptance process is complete.


(In reply to comment #11)
> Nothing but I'd suggest using one from the eclipse projects for snippets [1]
> and generally speaking I would remove the snippet from the initial contribution
> source and once you are a committer add the snippets.
> 
> I simply unzipped some of the eclipse plugins and then you have enough icons to
> play with. Another thing we did in the past in snippets is to dynamically
> create icons using SWT-GC.
> 
> [1]http://xantorohara.110mb.com/core-icons/Eclipse-16x16.html
Comment 13 Marty Jones CLA 2009-10-15 21:56:40 EDT
Created attachment 149707 [details]
Updated Widget

1. Updated EPL Comments as requested by Eclipse Foundation.
2. Removed Snippets from source for now.
3. Refactored Widget so that it uses a Text field in combination with a Label field instead of using a CLabel field to display the selected text and image.
Comment 14 Marty Jones CLA 2009-10-23 12:59:02 EDT
Just wanted to check in to see if there is anything else I need to do?  Generally how long does the approval process take?

Just Wondering,

Marty

(In reply to comment #13)
> Created an attachment (id=149707) [details]
> Updated Widget
> 
> 1. Updated EPL Comments as requested by Eclipse Foundation.
> 2. Removed Snippets from source for now.
> 3. Refactored Widget so that it uses a Text field in combination with a Label
> field instead of using a CLabel field to display the selected text and image.
Comment 15 Chris Aniszczyk CLA 2009-10-23 13:06:52 EDT
(In reply to comment #14)
> Just wanted to check in to see if there is anything else I need to do? 
> Generally how long does the approval process take?

It varies depending how busy the Eclipse legal team is.

I just attached your new source for the tablecombo the Eclipse IPZilla:
    https://dev.eclipse.org/ipzilla/show_bug.cgi?id=3568

Once you're a committer, you'll be able to access that.

Tom, are you going to nominate Marty to own this widget at Nebula :)?

I think your paperwork is good according to the IP team.
Comment 16 Marty Jones CLA 2009-10-23 23:46:57 EDT
Created attachment 150436 [details]
Fixed issue with TableComboViewer

Fixed bug with initial value not being displayed in the selected portion of the TableCombo.
Comment 17 Thomas Schindl CLA 2009-10-25 09:31:51 EDT
(In reply to comment #15)
> (In reply to comment #14)
> > Just wanted to check in to see if there is anything else I need to do? 
> > Generally how long does the approval process take?
> 
> It varies depending how busy the Eclipse legal team is.
> 
> I just attached your new source for the tablecombo the Eclipse IPZilla:
>     https://dev.eclipse.org/ipzilla/show_bug.cgi?id=3568
> 
> Once you're a committer, you'll be able to access that.
> 
> Tom, are you going to nominate Marty to own this widget at Nebula :)?
> 
> I think your paperwork is good according to the IP team.

The voting is open.
Comment 18 Matthew Hall CLA 2009-10-26 13:50:48 EDT
(In reply to comment #16)
> Created an attachment (id=150436) [details]
> Fixed issue with TableComboViewer
> 
> Fixed bug with initial value not being displayed in the selected portion of the
> TableCombo.

Is this a patch or a zip?  It's marked as a patch.
Comment 19 Marty Jones CLA 2009-10-26 14:35:04 EDT
Matthew,

It is a zip.  I marked it incorrectly.  The attachment is the latest and greatest of the TableCombo and TableComboViewer.

I can email you some snippets for the controls if you like.  I removed the snippets from the zip file while the source is going through the approval process.

Marty

(In reply to comment #18)
> (In reply to comment #16)
> > Created an attachment (id=150436) [details] [details]
> > Fixed issue with TableComboViewer
> > 
> > Fixed bug with initial value not being displayed in the selected portion of the
> > TableCombo.
> 
> Is this a patch or a zip?  It's marked as a patch.
Comment 20 Adam Neal CLA 2009-11-04 16:48:25 EST
I'm interested in using this widget when it is ready.

I'm curious if it supports tooltips over the main combo area, as well as for each item when the list is displayed?

Thanks
Comment 21 Marty Jones CLA 2009-11-04 21:12:56 EST
(In reply to comment #20)
> I'm interested in using this widget when it is ready.
> 
> I'm curious if it supports tooltips over the main combo area, as well as for
> each item when the list is displayed?
> 
> Thanks

Adam,  The TableCombo widget has been approved and we are finishing up paperwork now so hopefully it will be available soon.  

Tooltips for the main combo area are currently supported.  I will take a look to see if I can add ToolTip support at the table cell level.  I found a few examples of making a "fake" tool tip in a regular Table and I believe that Tooltip support was added to the TableViewerColumn for TableViewers in Eclipse 3.5 or 3.6.   I 

Marty
Comment 22 Enrico Schnepel CLA 2009-11-10 05:14:43 EST
I've got a NoClassDefFoundError for SWTEventListener and changed the import style from packages to the org.eclipse.ui plugin. Now everything works fine. Tanks a lot.
Comment 23 Enrico Schnepel CLA 2009-11-10 06:00:18 EST
I have seen that the width of images is not correctly handled if it is wider than 16 px. the layout of the drop-down table is ok, but the layout in the text box shows the image on top of the text, hiding the first characters of the text sometimes.
Comment 24 Marty Jones CLA 2009-11-12 08:59:17 EST
(In reply to comment #23)
> I have seen that the width of images is not correctly handled if it is wider
> than 16 px. the layout of the drop-down table is ok, but the layout in the text
> box shows the image on top of the text, hiding the first characters of the text
> sometimes.

Enrico,

What size image are you using?  I will let you know when Bugzilla has the TableCombo widget as a valid option to report a bug and you can create a new Bug against the widget.

Thanks,

Marty
Comment 25 Marty Jones CLA 2009-11-12 09:27:10 EST
(In reply to comment #23)
> I have seen that the width of images is not correctly handled if it is wider
> than 16 px. the layout of the drop-down table is ok, but the layout in the text
> box shows the image on top of the text, hiding the first characters of the text
> sometimes.

Enrico,

The TableCombo has now been added to BugZilla so you can now enter a new bug describing the issue you are seeing with the images.

Thanks,

Marty
Comment 26 Enrico Schnepel CLA 2009-11-12 09:47:51 EST
the component name ends with a ^ sign... this might be the reason why i can't see it within mylyn...
Comment 27 Marty Jones CLA 2009-11-12 09:52:39 EST
(In reply to comment #26)
> the component name ends with a ^ sign... this might be the reason why i can't
> see it within mylyn...

That is a type-oh.  We are working to get that corrected.

Marty
Comment 28 Thomas Schindl CLA 2009-11-12 10:04:50 EST
(In reply to comment #26)
> the component name ends with a ^ sign... this might be the reason why i can't
> see it within mylyn...

typo from me :-( ... but might I also suggest to log a bug against mylyn because they should not fail right?
Comment 29 Thomas Schindl CLA 2009-11-12 10:05:32 EST
Marty I guess you can now close this bug because the sources are in the repo.
Comment 30 Marty Jones CLA 2009-11-12 10:19:04 EST
Closed since the source code is now in the repository.
Comment 31 Enrico Schnepel CLA 2009-11-12 10:26:19 EST
(In reply to comment #28)
> typo from me :-( ... but might I also suggest to log a bug against mylyn
> because they should not fail right?
done so... Bug #294976