Examples of ModifiableListEditor


Examples of org.activiti.designer.util.editor.ModifiableListEditor

    addField(new BooleanFieldEditor(Preferences.ALFRESCO_ENABLE.getPreferenceId(),
            "&Enable Alfresco elements", group));

    Group groupStartEvent = new Group(getFieldEditorParent(), SWT.BORDER);
    groupStartEvent.setLayoutData(new GridData(SWT.FILL, SWT.NULL, true, false, 2, 1));
    addField(new ModifiableListEditor(Preferences.ALFRESCO_FORMTYPES_STARTEVENT.getPreferenceId(),
            "&Start event form types", groupStartEvent) {
     
      @Override
      protected String[] parseString(String input) {
        if(input != null && input.length() > 0) {
          return input.split("�");
        }
        return new String[] {};
      }
     
      @Override
      protected String getNewInputObject() {
        InputDialog entryDialog = new InputDialog(
            PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
            "New entry", "New entry:", null, null);
        if (entryDialog.open() == InputDialog.OK) {
            return entryDialog.getValue();
        }
        return null;
      }
     
      @Override
      protected String getModifiedEntry(String original) {
        InputDialog entryDialog = new InputDialog(
            PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
            "New entry", "New entry:", original, null);
        if (entryDialog.open() == InputDialog.OK) {
            return entryDialog.getValue();
        }
        return null;
      }
     
      @Override
      protected String createList(String[] outputArray) {
        StringBuilder output = new StringBuilder();
        if(outputArray != null && outputArray.length > 0) {
          for (String string : outputArray) {
            if(output.length() > 0) {
              output.append("�");
            }
            output.append(string);
          }
        }
        return output.toString();
      }
    });
   
    Group groupUsertask = new Group(getFieldEditorParent(), SWT.BORDER);
    groupUsertask.setLayoutData(new GridData(SWT.FILL, SWT.NULL, true, false, 2, 1));
    addField(new ModifiableListEditor(Preferences.ALFRESCO_FORMTYPES_USERTASK.getPreferenceId(),
            "&User task form types", groupUsertask) {
     
      @Override
      protected String[] parseString(String input) {
        if(input != null && input.length() > 0) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.