Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » label provider for grid viewer
label provider for grid viewer [message #28226] Fri, 09 February 2007 07:16 Go to next message
Eclipse User
Originally posted by: krishna_24jan.yahoomail.com

Hi every one,

Seeing in some of the forums ,i have just started with grid viewer.
I took the latest code form cvs and have started using it ,

I found that call to label provider class is not going,infact none of the
methods
are being called in label provider.

content provider is being called correctly..?

Why is this happeining in this way..?


Thanks in advance
krishna
Re: label provider for grid viewer [message #28266 is a reply to message #28226] Fri, 09 February 2007 07:31 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
Hi,

Please read the thread form yesterday to see how you can get a working
GridViewer with current CVS.

Tom

krishna schrieb:
>
> Hi every one,
>
> Seeing in some of the forums ,i have just started with grid viewer.
> I took the latest code form cvs and have started using it ,
>
> I found that call to label provider class is not going,infact none of
> the methods are being called in label provider.
>
> content provider is being called correctly..?
>
> Why is this happeining in this way..?
>
>
> Thanks in advance
> krishna
>
>
>
Re: label provider for grid viewer [message #28304 is a reply to message #28266] Sat, 10 February 2007 07:32 Go to previous messageGo to next message
Eclipse User
Originally posted by: krishna_24jan.yahoomail.com

I have added the patches to my code and tried with them.The following were
the results as i was trying to debug using Sysop's.

initially the call goes to createViewerEditor() method .Please note in
this method if i return ColumnViewerEditor as was in the patch , this
method is not getting executed.Where as if i return AbstarctViewerEditor
which u removed in the patch,this method is getting executed and then
internalCreateNewRowPart() is getting executed followed by
doSetSelection().It is then followed by getElements() method of content
provider and then stops.The getImage or getColumnImage methods of label
provider are not getting executed.
Actually i have created a new package as org.jface.viewers and copied all
the required files with their patches in to the package.I have added all
the patches u mentioned in the previous thread..!


Am i doing anything wrong or do i need to add any more patches ?






Br
krishna
Re: label provider for grid viewer [message #28383 is a reply to message #28304] Sun, 11 February 2007 09:08 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
Hi,

well AbstractViewerEditor has been renamed in the meanwhile by Boris I
think when I uploaded the patch to bugzilla everything worked fine. As
said in the first days of M6 cycle I'll update my patch to work but I
currently don't have the time to investigate the problem you are facing
(you are at your own until I have released something to CVS). Attach
yourself to the bug to see when we declare JFace to be ready for
widget-implementors to provide Viewers on top of it.

Tom

Krishna schrieb:
>
> I have added the patches to my code and tried with them.The following
> were the results as i was trying to debug using Sysop's.
>
> initially the call goes to createViewerEditor() method .Please note in
> this method if i return ColumnViewerEditor as was in the patch , this
> method is not getting executed.Where as if i return AbstarctViewerEditor
> which u removed in the patch,this method is getting executed and then
> internalCreateNewRowPart() is getting executed followed by
> doSetSelection().It is then followed by getElements() method of content
> provider and then stops.The getImage or getColumnImage methods of label
> provider are not getting executed.
> Actually i have created a new package as org.jface.viewers and copied
> all the required files with their patches in to the package.I have added
> all the patches u mentioned in the previous thread..!
>
>
> Am i doing anything wrong or do i need to add any more patches ?
>
>
>
>
>
>
> Br
> krishna
>
>
>
>
>
>
Re: label provider for grid viewer [message #28418 is a reply to message #28304] Sun, 11 February 2007 11:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
Hi,

I've updated the patch now to cleanly apply to JFace M5 sources. If you
still have any difficulties please report them. For me everything is
working but who knows. The patch includes a snippet to test
org.eclipse.swt.nebface.snippets.viewers.GridViewerSnippet1

Tom

Krishna schrieb:
>
> I have added the patches to my code and tried with them.The following
> were the results as i was trying to debug using Sysop's.
>
> initially the call goes to createViewerEditor() method .Please note in
> this method if i return ColumnViewerEditor as was in the patch , this
> method is not getting executed.Where as if i return AbstarctViewerEditor
> which u removed in the patch,this method is getting executed and then
> internalCreateNewRowPart() is getting executed followed by
> doSetSelection().It is then followed by getElements() method of content
> provider and then stops.The getImage or getColumnImage methods of label
> provider are not getting executed.
> Actually i have created a new package as org.jface.viewers and copied
> all the required files with their patches in to the package.I have added
> all the patches u mentioned in the previous thread..!
>
>
> Am i doing anything wrong or do i need to add any more patches ?
>
>
>
>
>
>
> Br
> krishna
>
>
>
>
>
>
Re: label provider for grid viewer [message #28452 is a reply to message #28418] Mon, 12 February 2007 07:03 Go to previous messageGo to next message
Eclipse User
Originally posted by: krishna_24jan.yahoomail.com

I have used eclipse 3.3 m5 for the grid viewer now and it seems it is
working fine.
Hey can we give our own row header text while using the viewer.
when i say viewer.getgrid.setrowheadervisible(true)i get the row headers
with predefined labeling on it depending on the rows.

can i give my own labeling on it.Iam trying to use
viewer.getgrid.getitem(index).setheadertext(),but its not working for me..!

are there any other options where i can give my own header text..

Rest all seems to be fine with the grid viewer..


BR,
krishna
Re: label provider for grid viewer [message #28484 is a reply to message #28452] Mon, 12 February 2007 07:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
krishna schrieb:
>
>
> I have used eclipse 3.3 m5 for the grid viewer now and it seems it is
> working fine.
> Hey can we give our own row header text while using the viewer.
> when i say viewer.getgrid.setrowheadervisible(true)i get the row headers
> with predefined labeling on it depending on the rows.
>
> can i give my own labeling on it.Iam trying to use
> viewer.getgrid.getitem(index).setheadertext(),but its not working for me..!

This is certainly an interesting question but I'm not 100% sure JFace
will provide this because SWT-Controls don't provide this. As outlined
in other Threads the problem with all this is when there are structural
changes in the control (insert/remove) which results in updateing all
rows below (https://bugs.eclipse.org/bugs/show_bug.cgi?id=173855)!

I'm uncertain JFace can provide you with a solution in M6 => in 3.3
timeframe. Having said that maybe Nebface can explore how this can be
done and JFace can adopt it from there.

Tom

>
> are there any other options where i can give my own header text..
>
> Rest all seems to be fine with the grid viewer..
>
>
> BR,
> krishna
>
>
>
>
Re: label provider for grid viewer [message #28888 is a reply to message #28484] Mon, 12 February 2007 07:58 Go to previous messageGo to next message
Eclipse User
Originally posted by: krishna_24jan.yahoomail.com

Actually SWT based nebula grid supports this feature.

We can create a gridItem and place its header text
GridItem item = new GridItem();
item.setHeaderText("").
With the above we can place user defined text in the row headers.

How do i get starting if i want to place my own text in the row headers..

BR,
krishna
Re: label provider for grid viewer [message #28987 is a reply to message #28888] Tue, 13 February 2007 02:34 Go to previous message
Eclipse User
Originally posted by: krishna_24jan.yahoomail.com

hey in my previous thread i missed out something!

Actually i was intended to ask how to define user textfor the row headers
when we are using Grid viewer.

We can get those using swt nebula grid.

do viewers have support for it..?

If i have to do it on my own ,can anyone give a idea how do i get started
for this..?

BR,
krishna
Re: label provider for grid viewer [message #578169 is a reply to message #28226] Fri, 09 February 2007 07:31 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
Hi,

Please read the thread form yesterday to see how you can get a working
GridViewer with current CVS.

Tom

krishna schrieb:
>
> Hi every one,
>
> Seeing in some of the forums ,i have just started with grid viewer.
> I took the latest code form cvs and have started using it ,
>
> I found that call to label provider class is not going,infact none of
> the methods are being called in label provider.
>
> content provider is being called correctly..?
>
> Why is this happeining in this way..?
>
>
> Thanks in advance
> krishna
>
>
>
Re: label provider for grid viewer [message #578244 is a reply to message #28266] Sat, 10 February 2007 07:32 Go to previous message
Krishna is currently offline Krishna
Messages: 1
Registered: July 2009
Junior Member
I have added the patches to my code and tried with them.The following were
the results as i was trying to debug using Sysop's.

initially the call goes to createViewerEditor() method .Please note in
this method if i return ColumnViewerEditor as was in the patch , this
method is not getting executed.Where as if i return AbstarctViewerEditor
which u removed in the patch,this method is getting executed and then
internalCreateNewRowPart() is getting executed followed by
doSetSelection().It is then followed by getElements() method of content
provider and then stops.The getImage or getColumnImage methods of label
provider are not getting executed.
Actually i have created a new package as org.jface.viewers and copied all
the required files with their patches in to the package.I have added all
the patches u mentioned in the previous thread..!


Am i doing anything wrong or do i need to add any more patches ?






Br
krishna
Re: label provider for grid viewer [message #578319 is a reply to message #28304] Sun, 11 February 2007 09:08 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
Hi,

well AbstractViewerEditor has been renamed in the meanwhile by Boris I
think when I uploaded the patch to bugzilla everything worked fine. As
said in the first days of M6 cycle I'll update my patch to work but I
currently don't have the time to investigate the problem you are facing
(you are at your own until I have released something to CVS). Attach
yourself to the bug to see when we declare JFace to be ready for
widget-implementors to provide Viewers on top of it.

Tom

Krishna schrieb:
>
> I have added the patches to my code and tried with them.The following
> were the results as i was trying to debug using Sysop's.
>
> initially the call goes to createViewerEditor() method .Please note in
> this method if i return ColumnViewerEditor as was in the patch , this
> method is not getting executed.Where as if i return AbstarctViewerEditor
> which u removed in the patch,this method is getting executed and then
> internalCreateNewRowPart() is getting executed followed by
> doSetSelection().It is then followed by getElements() method of content
> provider and then stops.The getImage or getColumnImage methods of label
> provider are not getting executed.
> Actually i have created a new package as org.jface.viewers and copied
> all the required files with their patches in to the package.I have added
> all the patches u mentioned in the previous thread..!
>
>
> Am i doing anything wrong or do i need to add any more patches ?
>
>
>
>
>
>
> Br
> krishna
>
>
>
>
>
>
Re: label provider for grid viewer [message #578341 is a reply to message #28304] Sun, 11 February 2007 11:27 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
Hi,

I've updated the patch now to cleanly apply to JFace M5 sources. If you
still have any difficulties please report them. For me everything is
working but who knows. The patch includes a snippet to test
org.eclipse.swt.nebface.snippets.viewers.GridViewerSnippet1

Tom

Krishna schrieb:
>
> I have added the patches to my code and tried with them.The following
> were the results as i was trying to debug using Sysop's.
>
> initially the call goes to createViewerEditor() method .Please note in
> this method if i return ColumnViewerEditor as was in the patch , this
> method is not getting executed.Where as if i return AbstarctViewerEditor
> which u removed in the patch,this method is getting executed and then
> internalCreateNewRowPart() is getting executed followed by
> doSetSelection().It is then followed by getElements() method of content
> provider and then stops.The getImage or getColumnImage methods of label
> provider are not getting executed.
> Actually i have created a new package as org.jface.viewers and copied
> all the required files with their patches in to the package.I have added
> all the patches u mentioned in the previous thread..!
>
>
> Am i doing anything wrong or do i need to add any more patches ?
>
>
>
>
>
>
> Br
> krishna
>
>
>
>
>
>
Re: label provider for grid viewer [message #578362 is a reply to message #28418] Mon, 12 February 2007 07:03 Go to previous message
krishna is currently offline krishna
Messages: 48
Registered: July 2009
Member
I have used eclipse 3.3 m5 for the grid viewer now and it seems it is
working fine.
Hey can we give our own row header text while using the viewer.
when i say viewer.getgrid.setrowheadervisible(true)i get the row headers
with predefined labeling on it depending on the rows.

can i give my own labeling on it.Iam trying to use
viewer.getgrid.getitem(index).setheadertext(),but its not working for me..!

are there any other options where i can give my own header text..

Rest all seems to be fine with the grid viewer..


BR,
krishna
Re: label provider for grid viewer [message #578382 is a reply to message #28452] Mon, 12 February 2007 07:27 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5003
Registered: July 2009
Senior Member
krishna schrieb:
>
>
> I have used eclipse 3.3 m5 for the grid viewer now and it seems it is
> working fine.
> Hey can we give our own row header text while using the viewer.
> when i say viewer.getgrid.setrowheadervisible(true)i get the row headers
> with predefined labeling on it depending on the rows.
>
> can i give my own labeling on it.Iam trying to use
> viewer.getgrid.getitem(index).setheadertext(),but its not working for me..!

This is certainly an interesting question but I'm not 100% sure JFace
will provide this because SWT-Controls don't provide this. As outlined
in other Threads the problem with all this is when there are structural
changes in the control (insert/remove) which results in updateing all
rows below (https://bugs.eclipse.org/bugs/show_bug.cgi?id=173855)!

I'm uncertain JFace can provide you with a solution in M6 => in 3.3
timeframe. Having said that maybe Nebface can explore how this can be
done and JFace can adopt it from there.

Tom

>
> are there any other options where i can give my own header text..
>
> Rest all seems to be fine with the grid viewer..
>
>
> BR,
> krishna
>
>
>
>
Re: label provider for grid viewer [message #578403 is a reply to message #28484] Mon, 12 February 2007 07:58 Go to previous message
krishna is currently offline krishna
Messages: 48
Registered: July 2009
Member
Actually SWT based nebula grid supports this feature.

We can create a gridItem and place its header text
GridItem item = new GridItem();
item.setHeaderText("").
With the above we can place user defined text in the row headers.

How do i get starting if i want to place my own text in the row headers..

BR,
krishna
Re: label provider for grid viewer [message #578454 is a reply to message #28888] Tue, 13 February 2007 02:34 Go to previous message
krishna is currently offline krishna
Messages: 48
Registered: July 2009
Member
hey in my previous thread i missed out something!

Actually i was intended to ask how to define user textfor the row headers
when we are using Grid viewer.

We can get those using swt nebula grid.

do viewers have support for it..?

If i have to do it on my own ,can anyone give a idea how do i get started
for this..?

BR,
krishna
Previous Topic:Sorters and Filters
Next Topic:Maximize problem
Goto Forum:
  


Current Time: Wed Apr 16 00:37:27 EDT 2014

Powered by FUDForum. Page generated in 0.02186 seconds