Page 2 of 2

Re: Some handy things to know in Eclipse

PostPosted: Thu Dec 03, 2009 4:42 pm
by jmeunier
I did not see this one posted earlier, but found it really useful.

While in a smart debug client:
Clicking into a form and hitting ctrl-l will open the form in your Eclipse form designer. Very handy during debugging.

Jason

Re: Some handy things to know in Eclipse

PostPosted: Fri Dec 04, 2009 6:04 pm
by ROCLASI
In the debugger you have a Variables view and an Expressions view.
The Variables view shows all variables and objects that are available when you hit a breakpoint or fall into the debugger with an error.
This list can be quite large and you might have to dig deep in a tree to find, lets say a global variable, you wanted to check.
To focus on some specific objects and/or variables you can use the Expressions view. You need to right click on the view and select Add Watch Expression to get a dialog where you can type in your expression to watch. Of course you need to make sure you don't make any typos.

There is however a faster and easier way of doing all this. Simply drag the variable from the Variables view to the Expressions view and drop it there.

You perhaps want to check out the result of some expression you use in your code ? Just copy the code and paste it into the Expressions view.

So Drag & Drop and Paste are your friends when it comes to the Expressions view


Thanks to Providence for showing me this. :)
Happy debugging!

Re: Some handy things to know in Eclipse

PostPosted: Thu Dec 10, 2009 9:59 pm
by david
METHOD EDITOR HYPERLINKING

I'm not sure if "hyperlinking" is the correct term, but the method editor now has this very cool feature where you can jump to referenced objects.

To trigger, hold the cmd key (on a mac anyways) and you will get an underline under various snippets of code that are hyperlinked to their original references. Clicking a link will take you to the source and if necessary even open the editor for that source (if different than the method editor). Hyperlinks we've discovered so far:

1- Variables

Will jump you to where the variable is defined.

2- Methods

Will jump you to the method. Will open another method editor if that method is not in the current editor.

3- Relationships

Will open the relationship in the relationship editor.

4. Forms

Will open the form in form design editor.

Re: Some handy things to know in Eclipse

PostPosted: Fri Dec 11, 2009 11:09 am
by Joas
david wrote:To trigger, hold the cmd key (on a mac anyways) and you will get an underline under various snippets of code that are hyperlinked to their original references. Clicking a link will take you to the source and if necessary even open the editor for that source (if different than the method editor)

On windows this happens when holding "Ctrl".
Note that it is even faster to press "F3", that will take you there directly without having to wait for the hyperlink and click it.

Re: Some handy things to know in Eclipse

PostPosted: Wed Oct 13, 2010 12:19 pm
by pbakker
If you're working with one Servoy Developer instance, but many workspaces, you might want to see in Servoy Developer to which workspace you are currently connected.

This is possible by adding a new line at the top of servoy.ini in the {servoy_install}/developer directory with the following content:
Code: Select all
-showlocation


When you do, the workspace you are currently connected to will be displayed in the Servoy Developer Title bar.

Paul

Re: Some handy things to know in Eclipse

PostPosted: Wed Oct 13, 2010 3:07 pm
by Thomas Parry
The -showlocation tip should be the default IMO - please?

Re: Some handy things to know in Eclipse

PostPosted: Wed Oct 13, 2010 3:10 pm
by jcompagner
dont know about to make it default
Because in servoy 6 which will be based on 3.6.1 where you have another much nicer option:
Preferences- >General -> Workspace -> Workspace name (shown in windows title)

Re: Some handy things to know in Eclipse

PostPosted: Wed Oct 13, 2010 3:47 pm
by antonio
pbakker wrote:This is possible by adding a new line at the top of servoy.ini in the {servoy_install}/developer directory


Is this only for Windows? Don't see servoy.ini on Mac developer, but it's late and I'm both excited and tired :shock:

Re: Some handy things to know in Eclipse

PostPosted: Wed Oct 13, 2010 3:47 pm
by ROCLASI
As far as I know this is how it always worked for me on Mac OS X.
I just checked it on Ubuntu but there it doesn't show the workspace path so this must be Mac only then ?

Re: Some handy things to know in Eclipse

PostPosted: Wed Oct 13, 2010 5:08 pm
by ptalbot
antonio wrote:Is this only for Windows? Don't see servoy.ini on Mac developer, but it's late and I'm both excited and tired :shock:

servoy.ini on Mac OS X hides in the Servoy.app bundle: in Servoy.app/Contents/MacOS/

Re: Some handy things to know in Eclipse

PostPosted: Thu Feb 09, 2012 3:03 pm
by vasil
I am looking for shortcut keys to select enclosing elements and restore last selection.
In Eclipse they are:
Shift + Alt + ↑
Shift + Alt + ↓
In Servoy Developer it appears in General->Keys, Command 'Select Enclosing Element'. Unfortunately I never managed to make it works when editing Javascript source.

Re: Some handy things to know in Eclipse

PostPosted: Thu Feb 09, 2012 3:28 pm
by pbakker
Please file a case about this in the support system.

Paul

Re: Some handy things to know in Eclipse

PostPosted: Mon Sep 10, 2012 10:18 am
by vasil

Eclipse Windows setup

PostPosted: Thu Apr 14, 2016 10:52 am
by Bernd.N
I would like to share the windows setting I prefer meanwhile.
It leads to a large editor window when not having a window at the right.

And it does not matter that I do not have access to the SolutionExplorer all the time, as I rarely use it.
The reason is that you can access every ressource with CTRL+SHIFT+L, which was already mentioned in the first posting.
Having the search window on the left has the advantage that I can see a large list of found locations on the left side while at the same time seeing the code.