This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There seems to be an API that will allow an element to request itself to be activated (btw. please rename the listener to MultiviewContainerCallback or something better than listener). However it is not clear how for example form designer might request selection of its peer editor. The form might also want to get reference to the editor component even it is not visible yet, how to do this in order to prevent duplication of components (one created by form, second by the multiview framework). Last issue related to selection is: Which tab will be opened by default - the first or any, and how to specify this?
So you need reference to the swing component of other elements, right? The only problem from the multiview API side I can see, is that the creation of the elements from descriptions should be done inside the multiview module. So I will need to add a query that allows the client code to obtain the correctly created MultiViewElement instance from the framework.
Not necessarily. Form editor now opens the java source editor by calling JavaEditor.openAt(...) - which calls EditorSupport.openAt(...) which calls requestActive on the Editor copmponent etc. So I need this to keep working the same way somehow - i.e. open/select the JavaEditor (and jump to the right position). If this could not work (transparently), then form editor would need a way to open/select the java editor first before calling openAt on it.
reassigning
changes made to EditorSupport and related files to support this scenario. a sketch implementation in form module (branch multiview_march2004) behaves as described in the report.