Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding Error Log View and writing to Problem View
Adding Error Log View and writing to Problem View [message #403505] Fri, 31 December 2004 18:48 Go to next message
Michael Scott is currently offline Michael ScottFriend
Messages: 7
Registered: July 2009
Junior Member
I would like to add the Error Log View to my RCP application so that I can
display logged IStatus objects. I have not found how to activate it. I did
find how to add the Problems view but have not found how to write to it. I
would like pointers to documentation containing such information.

Thanks,

Mike.
Re: Adding Error Log View and writing to Problem View [message #403507 is a reply to message #403505] Sun, 02 January 2005 15:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Michael Scott wrote:

>I would like to add the Error Log View to my RCP application so that I can
>display logged IStatus objects. I have not found how to activate it.
>
It's in org.eclipse.pde.runtime.

> I did
>find how to add the Problems view but have not found how to write to it.
>
You have to create markers of type IMarker.PROBLEM.

HTH
Dani

> I
>would like pointers to documentation containing such information.
>
>Thanks,
>
>Mike.
>
>
>
>
Re: Adding Error Log View and writing to Problem View [message #403719 is a reply to message #403507] Mon, 03 January 2005 20:54 Go to previous messageGo to next message
Michael Scott is currently offline Michael ScottFriend
Messages: 7
Registered: July 2009
Junior Member
Daniel,

Thanks for your help. I placed an addView("org.eclipse.pde.runtime.LogView")
statement in my perspective factory class and the Error Log came right up.
My writes to the plugin log show up fine. I looked up the IMarker interface
in the eclipse help and it describes what I need. I also used such criteria
to find and purchase the book "eclipse Building Commercial Quality
Plug-ins". I found it has a chapter on Markers and another on the Properties
view, which would have been my next question.

Thanks again,

Mike.

"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:cr92uf$d8a$1@www.eclipse.org...
> Michael Scott wrote:
>
> >I would like to add the Error Log View to my RCP application so that I
can
> >display logged IStatus objects. I have not found how to activate it.
> >
> It's in org.eclipse.pde.runtime.
>
> > I did
> >find how to add the Problems view but have not found how to write to it.
> >
> You have to create markers of type IMarker.PROBLEM.
>
> HTH
> Dani
>
> > I
> >would like pointers to documentation containing such information.
> >
> >Thanks,
> >
> >Mike.
> >
> >
> >
> >
Re: Adding Error Log View and writing to Problem View [message #403736 is a reply to message #403719] Tue, 04 January 2005 08:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Michael Scott wrote:

>Daniel,
>
>Thanks for your help. I placed an addView("org.eclipse.pde.runtime.LogView")
>statement in my perspective factory class and the Error Log came right up.
>My writes to the plugin log show up fine. I looked up the IMarker interface
>in the eclipse help and it describes what I need. I also used such criteria
>to find and purchase the book "eclipse Building Commercial Quality
>Plug-ins". I found it has a chapter on Markers and another on the Properties
>view, which would have been my next question.
>
>
There's also a good article on eclipse.org called "Mark My Words".

Dani

>Thanks again,
>
>Mike.
>
>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>news:cr92uf$d8a$1@www.eclipse.org...
>
>
>>Michael Scott wrote:
>>
>>
>>
>>>I would like to add the Error Log View to my RCP application so that I
>>>
>>>
>can
>
>
>>>display logged IStatus objects. I have not found how to activate it.
>>>
>>>
>>>
>>It's in org.eclipse.pde.runtime.
>>
>>
>>
>>>I did
>>>find how to add the Problems view but have not found how to write to it.
>>>
>>>
>>>
>>You have to create markers of type IMarker.PROBLEM.
>>
>>HTH
>>Dani
>>
>>
>>
>>>I
>>>would like pointers to documentation containing such information.
>>>
>>>Thanks,
>>>
>>>Mike.
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
Re: Adding Error Log View and writing to Problem View [message #403937 is a reply to message #403507] Tue, 04 January 2005 13:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ramim.kauhajoki.fi

Hi,

Could you show me the code how you opened the Error Log-view. Somehow my
code didn't work. Here's what I tried:

layout.addView("org.eclipse.pde.runtime.LogView",
IPageLayout.BOTTOM,
new Float(0.40).floatValue(),
IPageLayout.ID_EDITOR_AREA);

And the result was:
Could not create view: org.eclipse.pde.runtime.LogView

I guess because this is trying to locate the View from my plugin.xml-file
which is not listed in there...??...

- noon -


Daniel Megert wrote:

> Michael Scott wrote:

>>I would like to add the Error Log View to my RCP application so that I can
>>display logged IStatus objects. I have not found how to activate it.
>>
> It's in org.eclipse.pde.runtime.

>> I did
>>find how to add the Problems view but have not found how to write to it.
>>
> You have to create markers of type IMarker.PROBLEM.

> HTH
> Dani

>> I
>>would like pointers to documentation containing such information.
>>
>>Thanks,
>>
>>Mike.
>>
>>
>>
>>
Re: Adding Error Log View and writing to Problem View [message #403953 is a reply to message #403937] Wed, 05 January 2005 02:53 Go to previous message
Michael Scott is currently offline Michael ScottFriend
Messages: 7
Registered: July 2009
Junior Member
I created a folder and placed it there along with the Problem and Property
Sheet views. I do not have the view listed in my plugin.xml file either. I
do, however, have it listed in my runtime-workbench plugin list. Hope this
helps.

Mike.

public void createInitialLayout(IPageLayout layout) {
// Get the editor area.
String editorArea = layout.getEditorArea();

....
// Bottom: Task area with Logs and Properties
IFolderLayout bottom = layout.createFolder("Bottom", IPageLayout.BOTTOM,
0.66f,
editorArea);
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom.addView(IPageLayout.ID_PROP_SHEET);
bottom.addView("org.eclipse.pde.runtime.LogView");
...
}

"noon" <ramim@kauhajoki.fi> wrote in message
news:cre6bn$90h$1@www.eclipse.org...
> Hi,
>
> Could you show me the code how you opened the Error Log-view. Somehow my
> code didn't work. Here's what I tried:
>
> layout.addView("org.eclipse.pde.runtime.LogView",
> IPageLayout.BOTTOM,
> new Float(0.40).floatValue(),
> IPageLayout.ID_EDITOR_AREA);
>
> And the result was:
> Could not create view: org.eclipse.pde.runtime.LogView
>
> I guess because this is trying to locate the View from my plugin.xml-file
> which is not listed in there...??...
>
> - noon -
>
>
> Daniel Megert wrote:
>
> > Michael Scott wrote:
>
> >>I would like to add the Error Log View to my RCP application so that I
can
> >>display logged IStatus objects. I have not found how to activate it.
> >>
> > It's in org.eclipse.pde.runtime.
>
> >> I did
> >>find how to add the Problems view but have not found how to write to it.
> >>
> > You have to create markers of type IMarker.PROBLEM.
>
> > HTH
> > Dani
>
> >> I
> >>would like pointers to documentation containing such information.
> >>
> >>Thanks,
> >>
> >>Mike.
> >>
> >>
> >>
> >>
>
>
Previous Topic:config.ini getting re-written
Next Topic:Hibernate files not found, even in project root
Goto Forum:
  


Current Time: Thu Apr 18 06:35:39 GMT 2024

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

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

Back to the top