void solutionWindow_InterfaceChosen(EditInterfaceViewEventArgs evt) { EditInterface editInterface = evt.EditInterface; if (editInterface.hasEditableProperties()) { //Determine if the EditInterface is an ObjectPlaceholderInterface ObjectPlaceholderInterface objectPlaceholder = editInterface.getEditableProperties().First() as ObjectPlaceholderInterface; if (objectPlaceholder != null) { showPlaceholder(objectPlaceholder); } else { objectEditor.setEditInterface(editInterface, null, null); } } else if (editInterface.canAddRemoveProperties()) { objectEditor.setEditInterface(editInterface, null, null); } else { objectEditor.clearEditInterface(); } processInstanceSelection(editInterface); }
private void showPlaceholder(ObjectPlaceholderInterface placeholder) { Object currentObject = placeholder.getObject(); EditInterface edit = placeholder.getObjectEditInterface(currentObject); objectEditor.setEditInterface(edit, currentObject, placeholder.uiFieldUpdateCallback); currentPlaceholder = placeholder; }