| ProblemView [message #284475] |
Tue, 26 April 2005 06:14  |
|
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   |
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03505 seconds