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
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5209
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: 1724
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
Joas
Site Admin
 
Posts: 768
Joined: Mon Mar 20, 2006 4:07 pm
Location: Amersfoort, 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: 2820
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: 7977
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 Developer Version 5.2.16
Developer MAC OSX 10.8.4 Java version 1.6.0_51
Production Debian Linux Java version 1.6.0_29
antonio
 
Posts: 622
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
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5209
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
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1612
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: 2820
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 988 times
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 477
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