*
* @param event Popup menu click event
*/
public void actionPerformed(ActionEvent event)
{
IdeaPlugin plugin = IdeaPlugin.getInstance(ideaEvent.getData(DataKeys.PROJECT));
if (event.getActionCommand().equals(IdeaPlugin.METHOD_OPEN_REQUEST))
{
plugin.openRequest();
}
else if (event.getActionCommand().equals(IdeaPlugin.METHOD_OPEN_RESPONSE))
{
plugin.openResponse();
}
else if (event.getActionCommand().equals(IdeaPlugin.METHOD_OPEN_ARCHIVE))
{
plugin.openArchive();
}
else if (event.getActionCommand().equals(IdeaPlugin.ACTION_SAVE_REQUEST))
{
plugin.saveRequest();
}
else if (event.getActionCommand().equals(IdeaPlugin.ACTION_SAVE_RESPONSE))
{
plugin.saveResponse();
}
else if (event.getActionCommand().equals(IdeaPlugin.ACTION_SAVE_RESPONSE_BODY))
{
plugin.saveResponseBody();
}
else if (event.getActionCommand().equals(IdeaPlugin.ACTION_SAVE_REQ_RES_ARCHIVE))
{
plugin.saveReqResArchive();
}
}