IColorProvider pls

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

IColorProvider pls

Postby allawy » Thu Jun 10, 2004 12:22 pm

Eric;

The 200-300 USD (don't recall) I paid for SWT-Designer turn out to be the best deal I have ever made in my life, you product has changed my life.

As you always suprise us with wonderful stuff, I would like to suggest a small code enhancment, please add the ability to implement IColorProvider with the content provider, I know it's as silly as I can add it myself manually, but still :)

another thing, while I can use echo in text field, there is a special style to make the field a password field.

is there any time frame regarding eclipse form designer? is it going to be under SWT-designer lic.? or different lic? like the swing designer?

Thanks for the wonderful work and support, I will boom you soon with more requests. :)
allawy
 
Posts: 43
Joined: Wed Mar 10, 2004 7:28 pm

Re: IColorProvider pls

Postby Eric Clayberg » Thu Jun 10, 2004 2:24 pm

allawy wrote:The 200-300 USD (don't recall) I paid for SWT-Designer turn out to be the best deal I have ever made in my life, you product has changed my life.

Wow. Thanks! :-)

allawy wrote:As you always suprise us with wonderful stuff, I would like to suggest a small code enhancment, please add the ability to implement IColorProvider with the content provider, I know it's as silly as I can add it myself manually, but still :)

OK. I'll take a look at that.

allawy wrote:another thing, while I can use echo in text field, there is a special style to make the field a password field.

OK.

allawy wrote:is there any time frame regarding eclipse form designer? is it going to be under SWT-designer lic.? or different lic? like the swing designer?

The time frame is still up in the air. It's a lot of work, but it's also a fairly high priority. As to the licensing, my initial reaction is that it is a major enhancement to SWT Designer (and WindowBuilder). I don't see it as a new product.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby allawy » Fri Jun 11, 2004 4:20 am

Eric;

Thanks!

here is my new request...

it's so simple...

at least I hope so...

say I have a TableViewer (that has columns "Name","Age","Avg."), when adding the Label Provider can SWTD format getColumnText() to be like this.

Code: Select all

public String getColumnText(Object element, int columnIndex) {

    String colName = tableViewer.getTable().getColumn(columnIndex).getText();

    if(colName.equals("Name")){
        return "";
    }


    if(colName.equals("Age")){
        return "";
    }


    if(colName.equals("Avg.")){
        return "";
    }

    return "";
}


of course this will have some extra hidden code to check after the column name if they where reNamed.

Why is this important? well, simply you don't have to check column No. and names anymore while coding,the other thing is,sometimes the user want only some information to show, and other to hide, this means killing or recreating columns, this way is safer since the provider know exactly which column to fill with what content.

I hope this make sence, and it turn out to be useful. :wink:

Thanks for your time.
allawy
 
Posts: 43
Joined: Wed Mar 10, 2004 7:28 pm

Postby Eric Clayberg » Fri Jun 11, 2004 4:53 pm

allawy wrote:As you always suprise us with wonderful stuff, I would like to suggest a small code enhancment, please add the ability to implement IColorProvider with the content provider, I know it's as silly as I can add it myself manually, but still :)

Done. There is a new preference to control whether LabelProviders implement IColorProvider. This will be in the next v2.0.1 build.

allawy wrote:another thing, while I can use echo in text field, there is a special style to make the field a password field.

Also done.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby Eric Clayberg » Fri Jun 11, 2004 5:03 pm

allawy wrote:here is my new request...
it's so simple...
at least I hope so...
say I have a TableViewer (that has columns "Name","Age","Avg."), when adding the Label Provider can SWTD format getColumnText() to be like this.

There are a couple of problems with this approach as I see them.

1) It assumes that the "tableViewer" is a field
2) It presents added complications when either the number of columns or the labels on the columns changes
3) It's not NLS friendly

It would be easy to generate the initial code for this approach, but it would be a pain keeping it updated to reflect changes in the table.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby allawy » Fri Jun 11, 2004 5:20 pm

1) It assumes that the "tableViewer" is a field


I can't see why it shouldn't always be.

2) It presents added complications when either the number of columns or the labels on the columns changes


I agree

it would be a pain keeping it updated to reflect changes in the table.


Yes, I though it would be easy in a way, but I wouldn't spend time on it, I would spend time on forms!forms!forms! I want them :).

Anyway, it's not a big deal, it wouldn't take more than 1-3 min. to generate that code manaully for around 10 columns, which is avg. I guess.



Thanks
allawy
 
Posts: 43
Joined: Wed Mar 10, 2004 7:28 pm

Postby Eric Clayberg » Sat Jun 12, 2004 9:22 am

Eric Clayberg wrote:
allawy wrote:As you always suprise us with wonderful stuff, I would like to suggest a small code enhancment, please add the ability to implement IColorProvider with the content provider, I know it's as silly as I can add it myself manually, but still :)

Done. There is a new preference to control whether LabelProviders implement IColorProvider. This will be in the next v2.0.1 build.

allawy wrote:another thing, while I can use echo in text field, there is a special style to make the field a password field.

Also done.

Both of the above our in the latest v2.0.1 build.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby allawy » Sat Jun 12, 2004 9:49 am

is it online yet? the date at download say 2004.06.10
allawy
 
Posts: 43
Joined: Wed Mar 10, 2004 7:28 pm

Postby Eric Clayberg » Sat Jun 12, 2004 6:02 pm

allawy wrote:is it online yet? the date at download say 2004.06.10

Yes. You should refresh your browser. The download page says 2004.06.12.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest