notification when dockable is displayed?
Submitted by Friday, 12 May, 2006 - 09:27
on
Hallo,
I'd like to build a plugin, which is _only_ displayed as a dockable when
in the editor are special kinds of files open. For example files with
the extension '.xml'.
For the first call of my plugin I managed the discribed behavior by the
following code in my 'dockables.xml':
if (buffer.isUntitled() || (! (buffer.getName().endsWith("xml")))) {
Macros.message(view, "JaserReports-Plugin is only supporting files
with the extension '.xml'");
return;
}
else {
return new de.infokomGT.jjr.JasperReportsView(view, position);
}
But for all following calls to open the plugin, this code has no effect.
So I tried to be informed by the MessageBus, but it seams there is no
message send, when the DockableWindowManager opens or closes a window.
Any help is welcome.
Achim
I'd like to build a plugin, which is _only_ displayed as a dockable when
in the editor are special kinds of files open. For example files with
the extension '.xml'.
For the first call of my plugin I managed the discribed behavior by the
following code in my 'dockables.xml':
if (buffer.isUntitled() || (! (buffer.getName().endsWith("xml")))) {
Macros.message(view, "JaserReports-Plugin is only supporting files
with the extension '.xml'");
return;
}
else {
return new de.infokomGT.jjr.JasperReportsView(view, position);
}
But for all following calls to open the plugin, this code has no effect.
So I tried to be informed by the MessageBus, but it seams there is no
message send, when the DockableWindowManager opens or closes a window.
Any help is welcome.
Achim