[go: up one dir, main page]

Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » grid viewer vs table viewer
grid viewer vs table viewer [message #26896] Wed, 07 February 2007 13:26 Go to next message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

Hi everyone,

Iam new to viewers.To my requirement,i had to use gridviewer.

When iam using grid viewer.setInput() method the getElements method in
content provider is not being called.
where as When iam using table viewer the call is going to getElements
method .
I have set the contentprovider and label provider to my viewer..

y is this happening in this way..

if gridviewer dosent support in this way ,

can any one suggest, how to get row headers and column headers using
tableviewer.?
Re: grid viewer vs table viewer [message #26937 is a reply to message #26896] Wed, 07 February 2007 15:14 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

current implementation of GridViewer found in CVS is a work in progress.
If you need a working solution you'll have to check out the relevant
projects from CVS and apply the patch from the following bug to JFace
and Nebface from CVS-HEAD:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=172646

Tom

Aishwarya schrieb:
>
> Hi everyone,
>
> Iam new to viewers.To my requirement,i had to use gridviewer.
>
> When iam using grid viewer.setInput() method the getElements method in
> content provider is not being called.
> where as When iam using table viewer the call is going to getElements
> method .
> I have set the contentprovider and label provider to my viewer..
>
> y is this happening in this way..
>
> if gridviewer dosent support in this way ,
>
> can any one suggest, how to get row headers and column headers using
> tableviewer.?
>
>
Re: grid viewer vs table viewer [message #26977 is a reply to message #26937] Wed, 07 February 2007 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

thanks tom!

can u help me in one more problem..?

Now if i use GridViewer constructor which takes in a grid object like

public GridViewer(Grid grid){
}

For the grid which will be passed to grid viewer will have row headers
and column headers already constucted.

This implies that on a grid viewer a grid is placed with row headers and
column headers.Is it possible that now if i use content providers and
label providers now for the viewer so that the content and label are set
on the grid like the grid items..?
i thought of the above case as i need columnheaders and roe headers..!

can i achieve it in that way or can i get column headers and row headers
using gridviewercolumn and gridviewerrow classes.and actually
gridviewerRow class has some problem.it says that super class constructor
not visible..!

can u give any suggestion regarding this?
Re: grid viewer vs table viewer [message #27016 is a reply to message #26977] Wed, 07 February 2007 17:05 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I'll take a look at when I have time but I think the best thing would be
if you wait for next week where we will hopefully finish Viewer-Support
in JFace in M6 cycle. Then you don't need any CVS-Patches who maybe
don't cleanly apply to HEAD because there have been other changes.

I think Chris can maybe tell you more at when the Viewer code will
afterwards walk to nebface but because I always update because Grid is
my current test case I expect to see a commit in nebface shortly after
we have fixed JFace-API, sad enough we failed the M5 freeze but we
didn't wanted to rush in with new API would have to remove in M6 because
it doesn't satisfied our (customers) needs.

JFace is one of central projects which has very strict rules and adding
API is not a process of a day there but we evolved great 3.3 ;-) For the
time being I'd say you can use TableViewer and switch to gridviewer
afterwards. Subscribe yourself to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=172646 and you'll get
informed when we released a fix.

Tom

Aishwarya schrieb:
>
> thanks tom!
>
> can u help me in one more problem..?
>
> Now if i use GridViewer constructor which takes in a grid object like
>
> public GridViewer(Grid grid){
> }
>
> For the grid which will be passed to grid viewer will have row headers
> and column headers already constucted.
>
> This implies that on a grid viewer a grid is placed with row headers and
> column headers.Is it possible that now if i use content providers and
> label providers now for the viewer so that the content and label are set
> on the grid like the grid items..?
> i thought of the above case as i need columnheaders and roe headers..!
>
> can i achieve it in that way or can i get column headers and row headers
> using gridviewercolumn and gridviewerrow classes.and actually
> gridviewerRow class has some problem.it says that super class
> constructor not visible..!
>
> can u give any suggestion regarding this?
>
>
>
>
>
Re: grid viewer vs table viewer [message #27174 is a reply to message #27016] Thu, 08 February 2007 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

I really appreciate for ur help tom!I hope gridviewer willl be finished by
next week!

For the time being i have no problem going with table viewer but is it
possible to get row headers and column headers using table viewer,as they
are my requirements.

Best Regards
Aish
Re: grid viewer vs table viewer [message #27213 is a reply to message #27174] Thu, 08 February 2007 04:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

And tom one more thing when ever i try to use GridViewerRow class it shows
a error in the constructor
The constructor viewerRow(Item) is not visible..!
Re: grid viewer vs table viewer [message #27252 is a reply to message #27213] Thu, 08 February 2007 07:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

This is a compile time issue and as already said I can't reproduce on my
system.

Tom

Aishwarya schrieb:
>
> And tom one more thing when ever i try to use GridViewerRow class it
> shows a error in the constructor
> The constructor viewerRow(Item) is not visible..!
>
>
Re: grid viewer vs table viewer [message #27286 is a reply to message #27174] Thu, 08 February 2007 07:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well,

column-headers won't be accessible through JFace-APIs you always need to
use GridColumn#setText() or GridViewerColumn#getColumn()#setText(), ...

How to access row-headers is a question will have to think about and I
must admit that I haven't thought about this until now because there's
nothing SWT support so maybe GridViewer needs some extra bits for this
but I'm not 100% sure how to deal with that for now. Do you want to have
LabelProvider-Support for Row-Headers, this is not an easy task because
when structural changes happen insert/remove this would mean that all
subsequent rows have to be updated.

Tom

Aishwarya schrieb:
>
> I really appreciate for ur help tom!I hope gridviewer willl be finished
> by next week!
>
> For the time being i have no problem going with table viewer but is it
> possible to get row headers and column headers using table viewer,as
> they are my requirements.
>
> Best Regards
> Aish
>
>
>
Re: grid viewer vs table viewer [message #27757 is a reply to message #27286] Thu, 08 February 2007 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

i have just seen in eclipse site somewhere that target plan for M6 is
april 6..

will the stable version going to be released in april!
Re: grid viewer vs table viewer [message #27792 is a reply to message #27252] Thu, 08 February 2007 09:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

can u tell do the present code in cvs for grid viewer supports content
provider and label provider..!
I mean if u set gridViewer.setInput(),will the call go to getelements
method
of content provider
Re: grid viewer vs table viewer [message #27831 is a reply to message #27757] Thu, 08 February 2007 09:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Yes. But you can use I-Builds who are created in between. I'm sorry that
we didn't made it to M5 but time was too short and there are very strict
rules in eclipse specially for so central components like JFace (if
JFace is broken the whole eclipse is broken because it's the foundation
of the whole UI-Framework as much as SWT)

We could have rushed the new API in for M5 but we had some small issues
with the current implementation (nothing you need to be worried about as
a customer but you don't ever get a guarantee from me that there won't
be changes). Because of the things outline above (foundation component,
....) we decided together (Boris = JFace-Viewers-Lead and me) that it's
not the best to bring in things in the last minute.

Now because we didn't added the required bits for M5 we need UI-PMC
approval to get the API in for M6 but we are confident that our API
change is so important (bring so much power to viewers) that we get the
approval! I think Chris is only waiting for us to finish the proposed
API changes because he gets a viewer for free ;-)

Tom

Aishwarya schrieb:
>
>
> i have just seen in eclipse site somewhere that target plan for M6 is
> april 6..
>
> will the stable version going to be released in april!
>
Re: grid viewer vs table viewer [message #27871 is a reply to message #27792] Thu, 08 February 2007 09:52 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
My current setup is developing with Eclipse 3.3M4 with a checkout of the
platform-ui from CVS and Nebula/Nebface but I think there have been
minor changes to JFace HEAD so the patch won't apply any more cleanly
but I haven't tried.

Aferwards apply the patch from the bug I mentionned in one of previous
mails and everything should compile.

Tom

Aishwarya schrieb:
>
>
> can u tell do the present code in cvs for grid viewer supports content
> provider and label provider..!
> I mean if u set gridViewer.setInput(),will the call go to getelements
> method of content provider
>
Re: grid viewer vs table viewer [message #27911 is a reply to message #27831] Thu, 08 February 2007 10:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

Thanks once again tom !Now iam some what clear abt ur approvals.!

Tom i would really appreciate if u give me any solution for getting my
requirement
i.e getting row headers and column headers using a viewer...?
Previously i have done it using nebula grid but the client wants me to
make the use of viewer...!

A solution will really be apppreciated as i have very less time to deliver
my application to client
Re: grid viewer vs table viewer [message #27951 is a reply to message #27911] Thu, 08 February 2007 10:55 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Please read my answer in the other thread how to get support with a
patched versions from JFace, Nebula, ... CVS-HEAD. In the patch also an
example how to use GridViewer is included.

And as said I currently don't have any solution for you when it comes to
row-headers in terms of viewers some smart people have to jump up fast
if JFace should provide some API for this I don't have time to provide
any solution in time, which doesn't mean that you can't do all this your
own.

Tom

Aishwarya schrieb:
>
> Thanks once again tom !Now iam some what clear abt ur approvals.!
>
> Tom i would really appreciate if u give me any solution for getting my
> requirement i.e getting row headers and column headers using a viewer...?
> Previously i have done it using nebula grid but the client wants me to
> make the use of viewer...!
>
> A solution will really be apppreciated as i have very less time to
> deliver my application to client
>
Re: grid viewer vs table viewer [message #577492 is a reply to message #26896] Wed, 07 February 2007 15:14 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

current implementation of GridViewer found in CVS is a work in progress.
If you need a working solution you'll have to check out the relevant
projects from CVS and apply the patch from the following bug to JFace
and Nebface from CVS-HEAD:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=172646

Tom

Aishwarya schrieb:
>
> Hi everyone,
>
> Iam new to viewers.To my requirement,i had to use gridviewer.
>
> When iam using grid viewer.setInput() method the getElements method in
> content provider is not being called.
> where as When iam using table viewer the call is going to getElements
> method .
> I have set the contentprovider and label provider to my viewer..
>
> y is this happening in this way..
>
> if gridviewer dosent support in this way ,
>
> can any one suggest, how to get row headers and column headers using
> tableviewer.?
>
>
Re: grid viewer vs table viewer [message #577518 is a reply to message #26937] Wed, 07 February 2007 15:48 Go to previous message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

thanks tom!

can u help me in one more problem..?

Now if i use GridViewer constructor which takes in a grid object like

public GridViewer(Grid grid){
}

For the grid which will be passed to grid viewer will have row headers
and column headers already constucted.

This implies that on a grid viewer a grid is placed with row headers and
column headers.Is it possible that now if i use content providers and
label providers now for the viewer so that the content and label are set
on the grid like the grid items..?
i thought of the above case as i need columnheaders and roe headers..!

can i achieve it in that way or can i get column headers and row headers
using gridviewercolumn and gridviewerrow classes.and actually
gridviewerRow class has some problem.it says that super class constructor
not visible..!

can u give any suggestion regarding this?
Re: grid viewer vs table viewer [message #577534 is a reply to message #26977] Wed, 07 February 2007 17:05 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I'll take a look at when I have time but I think the best thing would be
if you wait for next week where we will hopefully finish Viewer-Support
in JFace in M6 cycle. Then you don't need any CVS-Patches who maybe
don't cleanly apply to HEAD because there have been other changes.

I think Chris can maybe tell you more at when the Viewer code will
afterwards walk to nebface but because I always update because Grid is
my current test case I expect to see a commit in nebface shortly after
we have fixed JFace-API, sad enough we failed the M5 freeze but we
didn't wanted to rush in with new API would have to remove in M6 because
it doesn't satisfied our (customers) needs.

JFace is one of central projects which has very strict rules and adding
API is not a process of a day there but we evolved great 3.3 ;-) For the
time being I'd say you can use TableViewer and switch to gridviewer
afterwards. Subscribe yourself to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=172646 and you'll get
informed when we released a fix.

Tom

Aishwarya schrieb:
>
> thanks tom!
>
> can u help me in one more problem..?
>
> Now if i use GridViewer constructor which takes in a grid object like
>
> public GridViewer(Grid grid){
> }
>
> For the grid which will be passed to grid viewer will have row headers
> and column headers already constucted.
>
> This implies that on a grid viewer a grid is placed with row headers and
> column headers.Is it possible that now if i use content providers and
> label providers now for the viewer so that the content and label are set
> on the grid like the grid items..?
> i thought of the above case as i need columnheaders and roe headers..!
>
> can i achieve it in that way or can i get column headers and row headers
> using gridviewercolumn and gridviewerrow classes.and actually
> gridviewerRow class has some problem.it says that super class
> constructor not visible..!
>
> can u give any suggestion regarding this?
>
>
>
>
>
Re: grid viewer vs table viewer [message #577662 is a reply to message #27016] Thu, 08 February 2007 03:40 Go to previous message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

I really appreciate for ur help tom!I hope gridviewer willl be finished by
next week!

For the time being i have no problem going with table viewer but is it
possible to get row headers and column headers using table viewer,as they
are my requirements.

Best Regards
Aish
Re: grid viewer vs table viewer [message #577703 is a reply to message #27174] Thu, 08 February 2007 04:06 Go to previous message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

And tom one more thing when ever i try to use GridViewerRow class it shows
a error in the constructor
The constructor viewerRow(Item) is not visible..!
Re: grid viewer vs table viewer [message #577721 is a reply to message #27213] Thu, 08 February 2007 07:26 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

This is a compile time issue and as already said I can't reproduce on my
system.

Tom

Aishwarya schrieb:
>
> And tom one more thing when ever i try to use GridViewerRow class it
> shows a error in the constructor
> The constructor viewerRow(Item) is not visible..!
>
>
Re: grid viewer vs table viewer [message #577735 is a reply to message #27174] Thu, 08 February 2007 07:34 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well,

column-headers won't be accessible through JFace-APIs you always need to
use GridColumn#setText() or GridViewerColumn#getColumn()#setText(), ...

How to access row-headers is a question will have to think about and I
must admit that I haven't thought about this until now because there's
nothing SWT support so maybe GridViewer needs some extra bits for this
but I'm not 100% sure how to deal with that for now. Do you want to have
LabelProvider-Support for Row-Headers, this is not an easy task because
when structural changes happen insert/remove this would mean that all
subsequent rows have to be updated.

Tom

Aishwarya schrieb:
>
> I really appreciate for ur help tom!I hope gridviewer willl be finished
> by next week!
>
> For the time being i have no problem going with table viewer but is it
> possible to get row headers and column headers using table viewer,as
> they are my requirements.
>
> Best Regards
> Aish
>
>
>
Re: grid viewer vs table viewer [message #577797 is a reply to message #27286] Thu, 08 February 2007 09:04 Go to previous message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

i have just seen in eclipse site somewhere that target plan for M6 is
april 6..

will the stable version going to be released in april!
Re: grid viewer vs table viewer [message #577834 is a reply to message #27252] Thu, 08 February 2007 09:06 Go to previous message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

can u tell do the present code in cvs for grid viewer supports content
provider and label provider..!
I mean if u set gridViewer.setInput(),will the call go to getelements
method
of content provider
Re: grid viewer vs table viewer [message #577843 is a reply to message #27757] Thu, 08 February 2007 09:50 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Yes. But you can use I-Builds who are created in between. I'm sorry that
we didn't made it to M5 but time was too short and there are very strict
rules in eclipse specially for so central components like JFace (if
JFace is broken the whole eclipse is broken because it's the foundation
of the whole UI-Framework as much as SWT)

We could have rushed the new API in for M5 but we had some small issues
with the current implementation (nothing you need to be worried about as
a customer but you don't ever get a guarantee from me that there won't
be changes). Because of the things outline above (foundation component,
....) we decided together (Boris = JFace-Viewers-Lead and me) that it's
not the best to bring in things in the last minute.

Now because we didn't added the required bits for M5 we need UI-PMC
approval to get the API in for M6 but we are confident that our API
change is so important (bring so much power to viewers) that we get the
approval! I think Chris is only waiting for us to finish the proposed
API changes because he gets a viewer for free ;-)

Tom

Aishwarya schrieb:
>
>
> i have just seen in eclipse site somewhere that target plan for M6 is
> april 6..
>
> will the stable version going to be released in april!
>
Re: grid viewer vs table viewer [message #577853 is a reply to message #27792] Thu, 08 February 2007 09:52 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
My current setup is developing with Eclipse 3.3M4 with a checkout of the
platform-ui from CVS and Nebula/Nebface but I think there have been
minor changes to JFace HEAD so the patch won't apply any more cleanly
but I haven't tried.

Aferwards apply the patch from the bug I mentionned in one of previous
mails and everything should compile.

Tom

Aishwarya schrieb:
>
>
> can u tell do the present code in cvs for grid viewer supports content
> provider and label provider..!
> I mean if u set gridViewer.setInput(),will the call go to getelements
> method of content provider
>
Re: grid viewer vs table viewer [message #577902 is a reply to message #27831] Thu, 08 February 2007 10:19 Go to previous message
Eclipse UserFriend
Originally posted by: aishwarya.y.yahoomail.com

Thanks once again tom !Now iam some what clear abt ur approvals.!

Tom i would really appreciate if u give me any solution for getting my
requirement
i.e getting row headers and column headers using a viewer...?
Previously i have done it using nebula grid but the client wants me to
make the use of viewer...!

A solution will really be apppreciated as i have very less time to deliver
my application to client
Re: grid viewer vs table viewer [message #577921 is a reply to message #27911] Thu, 08 February 2007 10:55 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Please read my answer in the other thread how to get support with a
patched versions from JFace, Nebula, ... CVS-HEAD. In the patch also an
example how to use GridViewer is included.

And as said I currently don't have any solution for you when it comes to
row-headers in terms of viewers some smart people have to jump up fast
if JFace should provide some API for this I don't have time to provide
any solution in time, which doesn't mean that you can't do all this your
own.

Tom

Aishwarya schrieb:
>
> Thanks once again tom !Now iam some what clear abt ur approvals.!
>
> Tom i would really appreciate if u give me any solution for getting my
> requirement i.e getting row headers and column headers using a viewer...?
> Previously i have done it using nebula grid but the client wants me to
> make the use of viewer...!
>
> A solution will really be apppreciated as i have very less time to
> deliver my application to client
>
Previous Topic:Running into issues with CDateTime
Next Topic:CTableTree, CTree?????
Goto Forum:
  


Current Time: Sat Dec 14 07:03:52 GMT 2024

Powered by FUDForum. Page generated in 0.06852 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top