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.

Bug 41296 - [2004-04-22] Elements and selection
Summary: [2004-04-22] Elements and selection
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks: 41085
  Show dependency tree
 
Reported: 2004-03-24 17:20 UTC by Jaroslav Tulach
Modified: 2008-12-22 16:08 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-03-24 17:20:25 UTC
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?
Comment 1 Milos Kleint 2004-04-06 08:59:03 UTC
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.
Comment 2 Tomas Pavek 2004-04-06 10:48:13 UTC
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.
Comment 3 Milos Kleint 2004-04-13 15:02:45 UTC
reassigning
Comment 4 Milos Kleint 2004-04-20 08:22:58 UTC
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.