Skip to main content



      Home
Home » Eclipse Projects » GEF » GEF & Debugging
GEF & Debugging [message #62045] Wed, 05 February 2003 08:04 Go to next message
Eclipse UserFriend
Originally posted by: jan.odvarko.schemantix.com

Hi All,

I would like to use the debuggin support
in GEF framework. Is there any way to
redirect the output to the Console window
in Eclipse?

In the GEF class there is setConsole(Text textBox)
method. Is it possible to use the text box of
the Console window?

thanks

cheers

Honza
Re: GEF & Debugging [message #62163 is a reply to message #62045] Wed, 05 February 2003 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jim.azeltine.indus.com

Jan Odvárko wrote:

> Hi All,

> I would like to use the debuggin support
> in GEF framework. Is there any way to
> redirect the output to the Console window
> in Eclipse?

> In the GEF class there is setConsole(Text textBox)
> method. Is it possible to use the text box of
> the Console window?

> thanks

> cheers

> Honza
You could always just use System.out.println(), which writes to the
console view.
Re: GEF & Debugging [message #62187 is a reply to message #62045] Wed, 05 February 2003 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

No, the console is running in a different process.
We do have a Debug View that can be opened and the debug text can be read.
That View's definition has been removed from the XML to prevent it from
showing up in real projects. To add it back, put this in GEF's plugin.xml.

<extension point="org.eclipse.ui.views">
<category
id="org.eclipse.gef"
name="GEF Debug views">
</category>
<view
id="GEF Debug console"
name="GEF Trace Console"
category="org.eclipse.gef"
class="org.eclipse.gef.ui.console.DebugGEF"
icon="icons/debugGEF.gif">
</view>
</extension>

"Jan Odv
Re: GEF & Debugging [message #62356 is a reply to message #62187] Thu, 06 February 2003 04:53 Go to previous message
Eclipse UserFriend
Originally posted by: jan.odvarko.schemantix.com

Yeah, this is exactly what I need. I have placed the code
into the GEF's plugin.xml file, but unfortunately there is
an exception (NullPointerException) in showView method
(Perspective class) see the code:

public IViewPart showView(String viewID)

throws PartInitException

{

IViewReference ref = getViewFactory().createView(viewID); // The ID is
"GEF Debug console"

IViewPart part = (IViewPart)ref.getPart(true);
// This method returns null.

ViewSite site = (ViewSite)part.getSite();
// Null Pointer exception

ViewPane pane = (ViewPane)site.getPane();



Do you have an idea what could be the problem?

thanks

Honza


"Randy Hudson" <none@us.ibm.com> wrote in message
news:b1r9r3$epu$1@rogue.oti.com...
> No, the console is running in a different process.
> We do have a Debug View that can be opened and the debug text can be read.
> That View's definition has been removed from the XML to prevent it from
> showing up in real projects. To add it back, put this in GEF's
plugin.xml.
>
> <extension point="org.eclipse.ui.views">
> <category
> id="org.eclipse.gef"
> name="GEF Debug views">
> </category>
> <view
> id="GEF Debug console"
> name="GEF Trace Console"
> category="org.eclipse.gef"
> class="org.eclipse.gef.ui.console.DebugGEF"
> icon="icons/debugGEF.gif">
> </view>
> </extension>
>
> "Jan Odv
Previous Topic:examples
Next Topic:PRB with Example under Linux/GTK
Goto Forum:
  


Current Time: Fri May 09 22:58:32 EDT 2025

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

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

Back to the top