ja = new JaspiraAction(modeler, "modeler.edit.copy")
{
public void actionPerformed(ActionEvent e)
{
// Forward to the clipboard plugin
modeler.fireEvent(new JaspiraActionEvent(modeler, "global.clipboard.copy", Plugin.LEVEL_APPLICATION));
}
};
ja.setEnabled(copyEnabled);
copyPasteGroup.addMenuChild(ja);
ja = new JaspiraAction(modeler, "modeler.edit.cut")
{
public void actionPerformed(ActionEvent e)
{
// Forward to the clipboard plugin
modeler.fireEvent(new JaspiraActionEvent(modeler, "global.clipboard.cut", Plugin.LEVEL_APPLICATION));
}
};
ja.setEnabled(cutEnabled);
copyPasteGroup.addMenuChild(ja);
ja = new JaspiraAction(modeler, "modeler.edit.paste")
{
public void actionPerformed(ActionEvent e)
{
// Forward to the clipboard plugin
modeler.fireEvent(new JaspiraActionEvent(modeler, "global.clipboard.paste", Plugin.LEVEL_APPLICATION));
}
};
ja.setEnabled(pasteEnabled);
copyPasteGroup.addMenuChild(ja);
ie.add(copyPasteGroup);
ja = new JaspiraAction(modeler, "modeler.edit.delete")
{
public void actionPerformed(ActionEvent e)
{
// Forward to the clipboard plugin
modeler.fireEvent(new JaspiraActionEvent(modeler, "global.clipboard.delete", Plugin.LEVEL_APPLICATION));
}
};
ja.setEnabled(deleteEnabled);
ie.add(ja);
}