<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<pre>In relation to this:
><i> it appears to me that AbstractSwingUI might be a bit too limiting at the
</i>><i> moment with its builtin assumption that there is only one appFrame and
</i>><i> that all menu item changes should be applied to that appFrame's
</i>><i> application menu bar.
I think that Johannes raised this issue in the context of having a separate menu
in the script editor. While the issues with the ShadowMenu need to be resolved
(as Curtis outlined here
<a class="moz-txt-link-freetext" href="http://imagej.net/pipermail/imagej-devel/2012-February/000585.html">http://imagej.net/pipermail/imagej-devel/2012-February/000585.html</a>),
it occurs to me that one strategy to deal with this would
be to instantiate the script editor as a separate application/context in the same
JVM. This way, the editor (the second app.) could have a menu structure
independent of the first app. To the extent that the second 'application'
needs access to objects in the first, references could be passed.
-- Grant
</i></pre>
<br>
On 2/6/2012 8:52 PM, Johannes Schindelin wrote:
<blockquote
cite="mid:alpine.DEB.1.00.1202070251490.24259@s15462909.onlinehome-server.info"
type="cite">
<pre wrap="">Hi,
it appears to me that AbstractSwingUI might be a bit too limiting at the
moment with its builtin assumption that there is only one appFrame and
that all menu item changes should be applied to that appFrame's
application menu bar.
So now I face the problematic situation where method calls to a ShadowMenu
(which was already connected to a given JMenuBar using the
SwingJMenuBarCreator -- why are there so many layers BTW?
AbstractMenuCreator>AbstractSwingMenuCreator>SwingJMenuBarCreator?) are
always redirected to the IJ2 menu bar -- which is bad when you want them
to appear in the Script Editor's menu bar.
Now, the MenuEvent knows pretty well which ShadowMenu it belongs to, but
apparently no class feels responsible to retain the connection between the
ShadowMenu and the SwingJMenuBarCreator used to turn this into an
instance.
Consequently, I do not see where it was intended to resolve this issue
(this is related to the wasteful recreation of a complete menu bar
whenever anything changed in any menu item).
Help?
Johannes
_______________________________________________
ImageJ-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ImageJ-devel@imagej.net">ImageJ-devel@imagej.net</a>
<a class="moz-txt-link-freetext" href="http://imagej.net/mailman/listinfo/imagej-devel">http://imagej.net/mailman/listinfo/imagej-devel</a>
</pre>
</blockquote>
</body>
</html>