*
* @return the new or updated menu
*/
protected JMenu createInteropMenu() {
SampHelper sh = SampHelper.getInstance();
PlasticHelper ph = PlasticHelper.getInstance();
if (sh == null && ph == null) {
return null; // no interop services
}
JMenu menu = new JMenu(_I18N.getString("interop"));
if (sh != null && ph != null) {
JMenu sampMenu = new JMenu("SAMP");
menu.add(sampMenu);
sh.initImageMenu(sampMenu);
JMenu plasticMenu = new JMenu("PLASTIC");
menu.add(plasticMenu);
ph.initImageMenu(plasticMenu);
} else {
if (sh != null) {
sh.initImageMenu(menu);
}
if (ph != null) {
ph.initImageMenu(menu);
}
}
return menu;
}