TextPropertyDescriptor with multiple lines? [message #452384] |
Fri, 18 March 2005 21:09 |
Devin Steffler Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Would it be possible to have something similar to TextPropertyDescriptor
except that it supports multiple lines so that multiple properties can be
displayed in the Properties View?
Ex:
category
- property 1 value 1
value 2 on new line
value 3 on new line
- property 2 value 1
- property 3 value 1
i.e. something like:
private class MultiTextPropertyDescriptor extends PropertyDescriptor {
public MultiTextPropertyDescriptor(Object id, String displayName) {
super(id, displayName);
}
public CellEditor createPropertyEditor(Composite parent) {
CellEditor editor = new TextCellEditor(parent, SWT.MULTI); // to
support multiple lines
if (getValidator() != null)
editor.setValidator(getValidator());
return editor;
}
}
When I do this the properties are still displayed on a single line though.
Any suggestions are appreciated.
Thanks,
Devin
|
|
|
Powered by
FUDForum. Page generated in 0.03739 seconds