Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Generic Editor and form tabs

Hello,

The Target Definition file generic editor is an example of many cases for which I plan to provide a textual editor with syntax highlighting and autocomplete. The .target generic editor is already available and provides the two above mentioned features. To open it, now you have to 'Open with...' -> Generic Editor. So it's basically an editor in its own right.

I would like to add this alternative editor as a form tab to the main target definition editor (the UI one). So basically the TP editor would have 4 tabs: 'Definition', 'Content', 'Environment' and a new, say, 'Text editor' which would basically be equivalent to opening this file with the generic editor mentioned above. Just that this would be in the form tab rather than opening it as a separate editor.

Is there any (recommended) way to make this transition from a separate editor to a tab in a form editor? My initial investigation shows this would have to be added as a separate FormPage through the FormEditor#addPage but I'd like to check here first if there is a recommended way when you already have a working separate editor in place.

Thanks for the time,
Sopot


Back to the top