Hi Jacob,
First off, Document Artifacts are a special case of
Linked Documents. The "main page" you're referring to is the RTF editor showing the linked document.
So in your case it's the document artifacts that have linked documents, not the classes.
There are essentially two parts of the process you describe: locating the relevant artifact, and then opening its linked document.
I can't see any way to address the first part, but you can speed up the second part significantly by using the "special action".
The special action is something you can do with a selected element, other than opening its regular properties dialog.
What exactly this special action is varies, but the special action for a document artifact is to open the linked document in the editor.
The special action is executed by selecting the element in the browser and either hitting shift-Enter or right-clicking and selecting Properties -- Special Action.
An element which has a linked document (ie your document artifacts) will also respond to the keyboard shortcut Ctrl-Alt-D by opening the document in the editor.
Personally I prefer this since it can be done one-handed and thus faster (and it's an unambiguous command, while the special action has different effects for different elements), but both methods work.
So you don't need to locate the artifact in its diagram to open it in the editor, you can do it straight from the browser.
I had a look, but I can't see a way to write a script which would open the editor directly from the class which has the trace connector to the artifact. This is because there isn't anything in the API to open the linked document. Create and delete, yes, but not open the editor.
So regardless of everything else, opening the linked document has to be done through the regular GUI.
Whether or not this will work in EA Lite I can't say, but it's easy to test. There was another thread recently where Sparx hinted that EA Lite is on its way out (there isn't a version 15) so word of warning.
The special action might have been introduced in 15, but if so the Ctrl-Alt-D shortcut should still work.
HTH,
/Uffe