@Override protected void setValue(Object element, Object value) { if (element instanceof ParameterInfo) { ParameterInfo pi= (ParameterInfo) element; doSetValue(pi, value.toString()); getViewer().update(element, null); } validateRefactoring(); updateSignaturePreview(); }
protected void setValue(Object element, Object value) { if (element instanceof ParameterInfo) { ParameterInfo pi= (ParameterInfo) element; doSetValue(pi, value.toString()); getViewer().update(element, null); } validateRefactoring(); updateSignaturePreview(); }
@Override protected void setValue(Object element, Object value) { if (element instanceof Field) { Field pi= (Field) element; doSetValue(pi, value.toString()); getViewer().update(element, null); } validateRefactoring(); }
@Override protected void setValue(Object element, Object value) { if (element instanceof Field) { Field pi= (Field) element; doSetValue(pi, value.toString()); getViewer().update(element, null); } validateRefactoring(); }
@Override protected void setValue(Object element, Object value) { if (element instanceof ParameterInfo) { ParameterInfo pi= (ParameterInfo) element; doSetValue(pi, value.toString()); getViewer().update(element, null); } validateRefactoring(); updateSignaturePreview(); }
@Override protected void setValue(final Object element, final Object value) { switch (this.columnIndex) { case 1 : if (element instanceof TracingComponentDebugOption) { TracingComponentDebugOption option = (TracingComponentDebugOption) element; String updatedValue = String.valueOf(value); if (value instanceof Integer) { updatedValue = String.valueOf((Integer) value == 0); } if (option.getOptionPathValue().equals(updatedValue)) { return; // nothing changed nothing to do } // find identical debug options and update them (this will include 'this' debug option that was // modified) TracingComponentDebugOption[] identicalOptions = TracingCollections.getInstance().getTracingDebugOptions(option.getOptionPath()); for (int identicalOptionsIndex = 0; identicalOptionsIndex < identicalOptions.length; identicalOptionsIndex++) { TracingCollections.getInstance().getModifiedDebugOptions().removeDebugOption(identicalOptions[identicalOptionsIndex].clone()); identicalOptions[identicalOptionsIndex].setOptionPathValue(updatedValue); TracingCollections.getInstance().getModifiedDebugOptions().addDebugOption(identicalOptions[identicalOptionsIndex]); this.getViewer().update(identicalOptions[identicalOptionsIndex], null); } } break; default : // do nothing - no other columns provide editing support } }
@Override protected void setValue(final Object element, final Object value) { switch (this.columnIndex) { case 1 : if (element instanceof TracingComponentDebugOption) { TracingComponentDebugOption option = (TracingComponentDebugOption) element; String updatedValue = String.valueOf(value); if (value instanceof Integer) { updatedValue = String.valueOf((Integer) value == 0); } if (option.getOptionPathValue().equals(updatedValue)) { return; // nothing changed nothing to do } // find identical debug options and update them (this will include 'this' debug option that was // modified) TracingComponentDebugOption[] identicalOptions = TracingCollections.getInstance().getTracingDebugOptions(option.getOptionPath()); for (TracingComponentDebugOption identicalOption : identicalOptions) { TracingCollections.getInstance().getModifiedDebugOptions().removeDebugOption(identicalOption.clone()); identicalOption.setOptionPathValue(updatedValue); TracingCollections.getInstance().getModifiedDebugOptions().addDebugOption(identicalOption); this.getViewer().update(identicalOption, null); } } break; default : // do nothing - no other columns provide editing support } }
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); } } }