private void executeAttributeChange(AttributeChangedEvent e, boolean undo) { PluginElement element = (PluginElement) e.getChangedObjects()[0]; PluginAttribute att = (PluginAttribute) e.getChangedAttribute(); Object oldValue = e.getOldValue(); Object newValue = e.getNewValue(); try { if (undo) element.setAttribute(att.getName(), oldValue.toString()); else element.setAttribute(att.getName(), newValue.toString()); } catch (CoreException ex) { PDEPlugin.logException(ex); } }