label provider for grid viewer [message #28226] |
Fri, 09 February 2007 12:16 |
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 #28304 is a reply to message #28266] |
Sat, 10 February 2007 12:32 |
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 #28452 is a reply to message #28418] |
Mon, 12 February 2007 12:03 |
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 #28888 is a reply to message #28484] |
Mon, 12 February 2007 12:58 |
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 07:34 |
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
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05707 seconds