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
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?

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

Current Time: Fri Jun 22 21:15:56 GMT 2018

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

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

Back to the top