Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Error has occurred when activating this view
Error has occurred when activating this view [message #460566] Fri, 22 December 2006 00:19 Go to next message
Eclipse UserFriend
Hi,

I have written a rcp application with a perspective and a view.
In the create part control method i have commented the following lines

// viewer = new TableViewer(parent, SWT.None);
//viewer.setContentProvider(new ViewContentProvider());
// viewer.setLabelProvider(new ViewLabelProvider());
// viewer.setInput(getViewSite());

with these lines in my code ,extra white space is appearing in my view
with the view name dispalyed.evnthough iam resizing my view ,white space
is not getting removed.so i have commented the above lines ,which resolves
my problem.But now when i run my application a starange error keeps
pooping up."Error has occurred activating this view".Even though i get
this error ,i get my view correctly and i am able to perform all my
operations on it.

Can any one xplain to me y i get this error ,and how to handle it..and any
other suggestions abt how to remove the extra white space in my view.
Re: Error has occurred when activating this view [message #460572 is a reply to message #460566] Fri, 22 December 2006 06:35 Go to previous messageGo to next message
Eclipse UserFriend
krishna wrote:

> I have written a rcp application with a perspective and a view.
> In the create part control method i have commented the following lines

> // viewer = new TableViewer(parent, SWT.None);
> //viewer.setContentProvider(new ViewContentProvider());
> // viewer.setLabelProvider(new ViewLabelProvider());
> // viewer.setInput(getViewSite());

I am not sure where the white space is coming from but I do have a
question about your viewer. What information are you displaying from the
view site? Do your content provider, label provider and the input model
all work together as you expect?

<snip>
> But now when i run my application a starange error keeps
> pooping up."Error has occurred activating this view".Even though i get
> this error ,i get my view correctly and i am able to perform all my
> operations on it.
>
> Can any one xplain to me y i get this error ,and how to handle it..and any
> other suggestions abt how to remove the extra white space in my view.

You might be able to explain it to your self. That error will most likely
have more detailed information in the log. Check the .log file located at
<workspace_dir>/runtime-YourRCPApp.product/.metadata.

Ian
Re: Error has occurred when activating this view [message #460643 is a reply to message #460572] Mon, 25 December 2006 23:41 Go to previous message
Eclipse UserFriend
I have nothing to do with label provider and content provider.My view will
just contain a grid with images in the cells.Iam getting that popup error
when iam commenting label provider and content provider and in viceversa
that popup vanishes..!

Eventhough i get that popup error ,i get get my view correclty except that
some irritating white space comes in the view.

I have seen in the logs ..there is no such information related to the
popup error in the log.
Previous Topic:actions
Next Topic:Need Help understanding TreeViewer
Goto Forum:
  


Current Time: Mon Apr 14 17:42:11 EDT 2025

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

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

Back to the top