Ejemplo n.º 1
0
 public void setPersonTypeId(String personTypeId) {
   this.personTypeId = personTypeId;
   if (component != null) {
     component.setTypeId(personTypeId);
     component.loadElementsAndSelect(selectedPerson);
   }
 }
Ejemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.jface.dialogs.DialogPage#setVisible(boolean)
  */
 @Override
 public void setVisible(boolean visible) {
   super.setVisible(visible);
   if (visible) {
     component.loadElementsAndSelect(selectedPerson);
   }
 }
Ejemplo n.º 3
0
 /** @param composite */
 private void addFormElements(Composite composite) {
   component = new ElementSelectionComponent(composite, personTypeId, null);
   component.setScopeOnly(false);
   component.setShowScopeCheckbox(false);
   component.init();
   component
       .getViewer()
       .addSelectionChangedListener(
           new ISelectionChangedListener() {
             @Override
             public void selectionChanged(SelectionChangedEvent event) {
               setErrorMessage(null);
               List<CnATreeElement> selectedElements = component.getSelectedElements();
               boolean valid = laodAndCheckPerson(selectedElements);
               setPageComplete(valid);
             }
           });
 }