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 13:50
Eli Lato is currently offline Eli Lato
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: Thu Aug 21 18:06:10 EDT 2014

Powered by FUDForum. Page generated in 0.02461 seconds