Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How do I make a read-only property?
How do I make a read-only property? [message #617025] Wed, 02 April 2008 17:50
Eli Lato is currently offline Eli LatoFriend
Messages: 35
Registered: July 2009
Member
I have a field named x.

I want it to be visible in the Property Sheet only when the designer selects "Show read only properties".

I want to make it a read-only field, so I created a getX, but not a setX.

But when I tell getPropertyDescriptors to add the property, it throws because I have no setX.

PropertyDescriptor doesn't seem to have a setter to specify readOnly. Or did I miss it?

How do I create a readOnly property?

Thanks,
Eli
Previous Topic:Strings in PropertyEditorSupport
Next Topic:Match values instance name - component name
Goto Forum:
  


Current Time: Wed Apr 24 23:41:26 GMT 2024

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

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

Back to the top