Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-debug-dev] RetargetRunToLineAction vs RunToLineActionDelegate

 

> -----Original Message-----
> From: platform-debug-dev-bounces@xxxxxxxxxxx 
> [mailto:platform-debug-dev-bounces@xxxxxxxxxxx] On Behalf Of 
> Darin Wright
> Sent: Friday, February 12, 2010 3:08 PM
> To: Eclipse Platform Debug component developers list.
> Subject: Re: [platform-debug-dev] RetargetRunToLineAction vs 
> RunToLineActionDelegate
> 
> > 
> > I'm trying to figure out why the platform provides both
> > 
> > RetargetRunToLineAction 
> > and 
> > RunToLineActionDelegate
> 
> RetargetRunToLineAction is an *internal* class and should not 
> be used by 
> clients - it implements the retargettable action in the top level Run 
> menu. The platform provides an API class 
> 'RunToLineActionDelegate' for 
> clients to contribute to views/editors as an action delegate.

Ok, I see the reasoning now.

> > 
> > I'm asking because we have a copied pattern in the CDT and need
> > to update it to the plaform latest code, so I'd rather have
> > a single class if possible.
> 
> You should not need to duplicate the internal code... it 
> simply delegates 
> to any debuggers that retarget the action by providing 
> IRunToLineTarget 
> implementations.

We use RunToLine properly, but we also define MoveToLine
and ResumeAtLine, which are also retargettable.  That is
why we had to copy the plafform code.

But I see the reason for having two classes now, and I'll
do the same.

Thanks!

Marc



Back to the top