Posted 19 years ago
by Stephan Ziep
Hello,
Currently I'm developing a multi tabbed Debugging IDE, with a single SyntaxEditor Control, that is shared by the tab pages. Each tab page contains a SyntaxEditor.Document. If a tab is activated, the SyntaxEditor is added to it and the tabs Document is assigned to the SyntaxEditor. I designed it that way, because i fear that creating a whole syntax editor for every tab page might be a resource hog.
Now if i want to save a Documents data, such as Indicator positions, current line, caret etc, i need access to the selected EditorView. But the only way to get this Document related data from the View is to assign the tabs Document to SyntaxEditor and then querying the selected View.
Is there a better way to get the data? Why is there no relation between a Document and the View? Do you have any suggestion on how to improve the Design?
Thank you in advance,
Stephan Ziep
Currently I'm developing a multi tabbed Debugging IDE, with a single SyntaxEditor Control, that is shared by the tab pages. Each tab page contains a SyntaxEditor.Document. If a tab is activated, the SyntaxEditor is added to it and the tabs Document is assigned to the SyntaxEditor. I designed it that way, because i fear that creating a whole syntax editor for every tab page might be a resource hog.
Now if i want to save a Documents data, such as Indicator positions, current line, caret etc, i need access to the selected EditorView. But the only way to get this Document related data from the View is to assign the tabs Document to SyntaxEditor and then querying the selected View.
Is there a better way to get the data? Why is there no relation between a Document and the View? Do you have any suggestion on how to improve the Design?
Thank you in advance,
Stephan Ziep