support combo boxes

Currently the value of enum is edited with "prop" editor using auto completion only

It would be nice to have another type of editor cell specially for enums - combo boxes.

3 comments
Comment actions Permalink

Igor Karpov wrote:

Currently the value of enum is edited with "prop" editor using auto completion only

It would be nice to have another type of editor cell specially for enums - combo boxes.

If you want you can embed any swing component in editor cell. Use

CellModel_JComponent concept.

You can also emulate combo box functionality. Create string property and

in editor redefie substitute action.

0
Comment actions Permalink

I've figured out how to embed a JComponent, just wanted to have it out-of-the box. My vision is that an editor can be a handy form with familiar controls for many applications.

About substute actions - it's non-trivial to figure out how to use it without any docs...

0
Comment actions Permalink

Igor Karpov wrote:

I've figured out how to embed a JComponent, just wanted to have it out-of-the box. My vision is that an editor can be a handy form with familiar controls for many applications.

About substute actions - it's non-trivial to figure out how to use it without any docs...

We have sample usage of substitute action. You can look at it in

%MPS_HOME%/projects/SubstituteActionTutorial.

0

Please sign in to leave a comment.