Re: [Lazarus] Jump to implementation

2016-05-17 Thread Ondrej Pokorny

On 17.05.2016 19:01, Graeme Geldenhuys wrote:

On 2016-05-17 17:09, Ondrej Pokorny wrote:

Tools->Options->CodeTools->General->Jump directly to method body.

Nice, I didn't even know that existed. Thanks for sharing.


You are welcome. It's quite a new feature, added in January: 
http://mantis.freepascal.org/view.php?id=13245


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Jump to implementation

2016-05-17 Thread Graeme Geldenhuys
On 2016-05-17 17:09, Ondrej Pokorny wrote:
> Tools->Options->CodeTools->General->Jump directly to method body.

Nice, I didn't even know that existed. Thanks for sharing.

Regards,
  Graeme


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Jump to implementation

2016-05-17 Thread Aradeonas
> Tools->Options->CodeTools->General->Jump directly to method body.
 
What a relief :D
 
Regards,
Ara
 
 

-- 
http://www.fastmail.com - Email service worth paying for. Try it for free

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Jump to implementation

2016-05-17 Thread Ondrej Pokorny

On 17.05.2016 18:04, Aradeonas wrote:

Hi,
When you do Ctrl+Click on a procedure you will go to the interface and 
then you should hit Ctrl+Shift+Down to go to the implementation, How 
can I make it like Delphi that when you do Ctrl+Click on a procedure 
it goes to implementation not interface?


Tools->Options->CodeTools->General->Jump directly to method body.

Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Jump to implementation

2016-05-17 Thread Aradeonas
Hi,
 
When you do Ctrl+Click on a procedure you will go to the interface and
then you should hit Ctrl+Shift+Down to go to the implementation, How can
I make it like Delphi that when you do Ctrl+Click on a procedure it goes
to implementation not interface?
 
Regards,
Ara
 

-- 
http://www.fastmail.com - Or how I learned to stop worrying and
  love email again

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Jump to implementation (inspired by Bernd Kreuss Codetool ideas what is an identifier)

2010-07-28 Thread Martin
I am making this a separate thread, because it got nothing to do with 
the old subject [Lazarus] CodeTools: what is an identifier


The idea discussed there, fails due to the fact that 
ObjectOfClass_BaseFoo.SomeMethod can only be resolved to that base 
class's SomeMethod.


One case where this is annoying is:

procedure TSpecialFoo.OtherMethod;
begin
  BaseOnlyMethod();
end;

procedure TBaseFoo.OtherMethod;
begin
  SomeMethod();
end;

And SomeMethod exists in both = base and specialised class.

You (the human reader) knows you started in TSpecialFoo = but codetool 
doesn't know.


Yet codetool  could know.

Codetool could remeber when a implementation jump happens:
- FROM which class (and even method) it started (if it comes from a 
method in a class)

- TO which method

If there:
- was no editing (not even a requirement)
- the next jump starts from within the last TO
then the chain is continued

The whole chain needs to be kept = since it go through more than one 
method in the base class



Just an idea. (one of many)
May yet need some fine tuning

Martin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Jump to implementation (inspired by Bernd Kreuss Codetool ideas what is an identifier)

2010-07-28 Thread Martin

On 28/07/2010 19:27, Martin wrote:
I am making this a separate thread, because it got nothing to do with 
the old subject [Lazarus] CodeTools: what is an identifier


The idea discussed there, fails due to the fact that 
ObjectOfClass_BaseFoo.SomeMethod can only be resolved to that base 
class's SomeMethod.


One case where this is annoying is:

procedure TSpecialFoo.OtherMethod;
begin
  BaseOnlyMethod();
end;

procedure TBaseFoo.OtherMethod;

should be : procedure TBaseFoo.BaseOnlyMethod;

begin
  SomeMethod();
end;

And SomeMethod exists in both = base and specialised class.

You (the human reader) knows you started in TSpecialFoo = but 
codetool doesn't know.


Yet codetool  could know.

Codetool could remeber when a implementation jump happens:



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Jump to implementation (inspired by Bernd Kreuss Codetool ideas what is an identifier)

2010-07-28 Thread Mattias Gaertner
On Wed, 28 Jul 2010 19:56:13 +0100
Martin laza...@mfriebe.de wrote:

 On 28/07/2010 19:27, Martin wrote:
  I am making this a separate thread, because it got nothing to do with 
  the old subject [Lazarus] CodeTools: what is an identifier
 
  The idea discussed there, fails due to the fact that 
  ObjectOfClass_BaseFoo.SomeMethod can only be resolved to that base 
  class's SomeMethod.
 
  One case where this is annoying is:
 
  procedure TSpecialFoo.OtherMethod;
  begin
BaseOnlyMethod();
  end;
 
  procedure TBaseFoo.OtherMethod;
 should be : procedure TBaseFoo.BaseOnlyMethod;
  begin
SomeMethod();
  end;
 
  And SomeMethod exists in both = base and specialised class.
 
  You (the human reader) knows you started in TSpecialFoo = but 
  codetool doesn't know.
 
  Yet codetool  could know.
 
  Codetool could remeber when a implementation jump happens:

Just to clarify: The IDE jumps, not the codetools. The find declaration
function is not only called to jump. The IDE must remember.

The above can be annoying if not intended or confusing if the user
does not know/understand the feature.

I intend to use the history for the sort of the overrides.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus