Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tm-dev] RE: Using the terminal in an RCP

Hello Gabe,

glad to hear it works now!

If you think that the Terminal should not require
an Edit menu in an RCP, we'd appreciate a patch
from you that makes it work without an Edit 
menu.

Just catching the exception that occurs when trying
to append to the edit menu, and ignoring it, might
be appropriate.

Thanks,
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm 

> -----Original Message-----
> From: dsdp-tm-dev-bounces@xxxxxxxxxxx 
> [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of 
> Schnaubelt, Gabe T
> Sent: Friday, April 20, 2007 8:31 PM
> To: Target Management developer discussions
> Subject: RE: [dsdp-tm-dev] RE: Using the terminal in an RCP
> 
> Martin,
> Thanks for your patience and help.
> 
> I did debug this to the fact that my RCP did not have an Edit 
> menu. Once
> I created the Edit menu it worked fine.
> 
> -----Original Message-----
> From: dsdp-tm-dev-bounces@xxxxxxxxxxx
> [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx] On Behalf Of Martin Oberhuber
> Sent: Friday, April 20, 2007 9:24 AM
> To: Target Management developer discussions
> Subject: Re: [dsdp-tm-dev] RE: Using the terminal in an RCP
> 
> Hmm... why do you define your own view, referring to an "internal"
> class?
> The plugin.xml of org.eclipse.tm.terminal.view already defines a view.
> Doing what you do, you'll end up with TWO terminal views.
> And you should avoid using classes which are in "internal" packages.
> it should be sufficient for you to do
> 
> viewFolder.addView("org.eclipse.tm.terminal.view.TerminalView");
> 
> 
> The line number (TerminalView:435) from your traceback is not helpful 
> for me,
> since I don't know what exact version of TerminalView you 
> have. In HEAD,
> this is in setupActions() and not in setupMenus().
> 
> If my advice above doesn't help, I'd recommend you try and debug this 
> yourself.
> It should not be too hard.
> 
> Cheers
> Martin
> 
> 
> Schnaubelt, Gabe T schrieb:
> > Attached is my .log file.
> >
> > What I did is create an extension in my RCP pointing to the
> TerminalView
> > class:
> >       <view
> >             
> class="org.eclipse.tm.internal.terminal.view.TerminalView"
> >             id="org.eclipse.tm.terminal.TerminalView"
> >             name="Terminal View">
> >       </view>
> >
> > Then, in my Perspective class I add this view by using the id:
> > 	viewFolder.addView("org.eclipse.tm.terminal.TerminalView");
> >
> > The NullPointer exception I'm getting is in
> > org.eclipse.tm.internal.terminal.view.TerminalView.setupMenus().
> >
> > Thanks, Gabe
> >   
> 
> 
> -- 
> Martin Oberhuber
> Wind River Systems, Inc.
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
> 
> _______________________________________________
> dsdp-tm-dev mailing list
> dsdp-tm-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> _______________________________________________
> dsdp-tm-dev mailing list
> dsdp-tm-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> 


Back to the top