}
public static String addKeyOrAction(BindingValueKeyPath bindingValueKeyPath, IApiBinding binding, IType componentType) throws CoreException {
String name = null;
if (binding.isAction()) {
AddActionInfo info = new AddActionInfo(componentType);
info.setName(bindingValueKeyPath.getOriginalKeyPath());
AddActionDialog.open(info, PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
name = info.getName();
}
else {
AddKeyInfo info = new AddKeyInfo(componentType);
info.setName(bindingValueKeyPath.getOriginalKeyPath());
AddKeyDialog.open(info, PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
name = info.getName();
}
return name;
}