Some handy things to know in Eclipse

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

Re: Some handy things to know in Eclipse

Postby jmeunier » Thu Dec 03, 2009 4:42 pm

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
Jason Meunier
Servoy USA
jmeunier
 
Posts: 79
Joined: Tue Jan 24, 2006 11:19 pm
Location: Thousand Oaks, CA

Re: Some handy things to know in Eclipse

Postby ROCLASI » Fri Dec 04, 2009 6:04 pm

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!
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Some handy things to know in Eclipse

Postby david » Thu Dec 10, 2009 9:59 pm

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.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Some handy things to know in Eclipse

Postby Joas » Fri Dec 11, 2009 11:09 am

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.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: Some handy things to know in Eclipse

Postby pbakker » Wed Oct 13, 2010 12:19 pm

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
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Some handy things to know in Eclipse

Postby Thomas Parry » Wed Oct 13, 2010 3:07 pm

The -showlocation tip should be the default IMO - please?
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: Some handy things to know in Eclipse

Postby jcompagner » Wed Oct 13, 2010 3:10 pm

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)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Some handy things to know in Eclipse

Postby antonio » Wed Oct 13, 2010 3:47 pm

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:
Tony
Servoy 8 - 2022.03 LTS
antonio
 
Posts: 638
Joined: Sun Apr 02, 2006 2:14 am
Location: Australia

Re: Some handy things to know in Eclipse

Postby ROCLASI » Wed Oct 13, 2010 3:47 pm

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 ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Some handy things to know in Eclipse

Postby ptalbot » Wed Oct 13, 2010 5:08 pm

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/
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Some handy things to know in Eclipse

Postby vasil » Thu Feb 09, 2012 3:03 pm

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.
vasil
 
Posts: 18
Joined: Thu Oct 20, 2011 1:17 pm

Re: Some handy things to know in Eclipse

Postby pbakker » Thu Feb 09, 2012 3:28 pm

Please file a case about this in the support system.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Some handy things to know in Eclipse

Postby vasil » Mon Sep 10, 2012 10:18 am

vasil
 
Posts: 18
Joined: Thu Oct 20, 2011 1:17 pm

Eclipse Windows setup

Postby Bernd.N » Thu Apr 14, 2016 10:52 am

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.
Attachments
preference.jpg
preference.jpg (332.46 KiB) Viewed 16974 times
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Previous

Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 3 guests

cron