Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ProblemView
ProblemView [message #284475] Tue, 26 April 2005 06:14 Go to next message
Eclipse User
Originally posted by: dan.vaum.net

Hi!
How can I add problems to ProblemView?
Re: ProblemView [message #284485 is a reply to message #284475] Tue, 26 April 2005 08:51 Go to previous messageGo to next message
Eclipse User
Originally posted by: Parameshwara.tatini.gxs.com

Hi
one way is create markers in your input file. those markers will be
automatically displayed in problems view.

here is the code. which adds marker at line 0.
you can use IMarker constants to add remaining attributes like marker type
, descreption etc.

public void init(IEditorSite site, IEditorInput editorInput)
throws PartInitException {

IFile m_inputFile = ((IFileEditorInput)editorInput).getFile();

try {
IMarker m = m_inputFile.createMarker(IMarker.PROBLEM);
m.setAttribute(IMarker.LINE_NUMBER, 0);
} catch (CoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}



}

Param

Dan wrote:

> Hi!
> How can I add problems to ProblemView?
Re: ProblemView [message #284486 is a reply to message #284475] Tue, 26 April 2005 08:54 Go to previous message
Eclipse User
Originally posted by: Parameshwara.tatini.gxs.com

I also facing same problem please help
Previous Topic:How to hook an action into an actionset provided by a different plugin?
Next Topic:how to update editor input?
Goto Forum:
  


Current Time: Sun May 19 04:36:22 EDT 2013

Powered by FUDForum. Page generated in 0.03505 seconds