Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TextPropertyDescriptor with multiple lines?
TextPropertyDescriptor with multiple lines? [message #452384] Fri, 18 March 2005 21:09
Devin Steffler is currently offline Devin StefflerFriend
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
Previous Topic:How to do auto scroll?
Next Topic:Trouble with Sash setWeights
Goto Forum:
  


Current Time: Mon Sep 23 18:26:55 GMT 2024

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

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

Back to the top