/**
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
public void run(IAction action) {
// Create a mapping dialog
SetMappingDialog dialog = new SetMappingDialog(this.shell, this.resource);
if(dialog.open() == IDialogConstants.OK_ID) {
logger.trace("Setting mapping (" + dialog.getMappingName() + ") on resource (" + resource.getName() + ")");
MappingManager.setMapping(this.resource, dialog.getMappingName());
logger.trace("Mapping for " + resource.getName() + ": " + MappingManager.getMapping(resource));
}
}