Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » CUSTOMIZING GETTER SETTER(scripting)
CUSTOMIZING GETTER SETTER [message #1018257] Wed, 13 March 2013 14:03
g s is currently offline g sFriend
Messages: 1
Registered: March 2013
Junior Member
Hi

I'd like create a custom getter that is the field is a String
then the getter is field!=null?field.trim():null;

My problem is how can I tell eclipse that the field is a String ?

I actually can write if(field instanceof String or getClass() anyway

but I am asking if exists a way to say just eclipse that if field is a String
write that code else the same....


Thanks in advance

Regards
Fabio
Previous Topic:splash screen
Next Topic:Eclipse
Goto Forum:
  


Current Time: Thu Apr 25 05:09:15 GMT 2024

Powered by FUDForum. Page generated in 0.08640 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top