protected void setValue(Object element, Object value) { if (element instanceof RollbackProfileElement && value instanceof String) { RollbackProfileElement ele = ((RollbackProfileElement) element); ele.setProfileTag((String) value); // save IProfileRegistry registry = ProvUI.getProfileRegistry(ui.getSession()); if (registry != null) { IStatus status; if (((String) value).length() > 0) { status = registry.setProfileStateProperty(ele.getProfileId(), ele.getTimestamp(), IProfile.STATE_PROP_TAG, (String) value); } else { status = registry.removeProfileStateProperties(ele.getProfileId(), ele.getTimestamp(), Collections.singleton(IProfile.STATE_PROP_TAG)); } if (!status.isOK()) { StatusManager.getManager().handle(status); } } getViewer().update(element, null); } } }