Examples of TextPropertyDescriptor


Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

                pd.setNewPropertyName(newKey);
                Map<String, String> pseudoMap = new HashMap<String, String>();
                final String propertyValue = jcrNode.getProperties().getValue(oldKey);
                pseudoMap.put(newKey, propertyValue);
                final Entry<String, String> mapEntry = pseudoMap.entrySet().iterator().next();
                element = new TextPropertyDescriptor(mapEntry, propertyValue);
                jcrNode.renameProperty(oldKey, newKey);
                break;
            }
            case TYPE: {
                int propertyType = PropertyTypeSupport.propertyTypeOfIndex((Integer)value);
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

  @Override
  public IPropertyDescriptor[] getPropertyDescriptors() {
    final Map<String,IPropertyDescriptor> conversionMap = new HashMap<String,IPropertyDescriptor>();
    for (Iterator<Map.Entry<String, String>> it = properties.entrySet().iterator(); it.hasNext();) {
      Map.Entry<String, String> entry = it.next();
      TextPropertyDescriptor pd = new JcrTextPropertyDescriptor(entry, entry.getKey());
      conversionMap.put(entry.getKey(), pd);
    }
    final List<String> propertiesOrderCopy = new LinkedList<String>(propertiesOrder);
    final String jcrPrimaryType = "jcr:primaryType";
        if (!properties.containsKey(jcrPrimaryType)) {
        Map<String, String> pseudoMap = new HashMap<String, String>();
        pseudoMap.put(jcrPrimaryType, node.getPrimaryType());
        final TextPropertyDescriptor pseudoPd = new JcrTextPropertyDescriptor(pseudoMap.entrySet().iterator().next(), jcrPrimaryType);
        propertiesOrderCopy.add(0, jcrPrimaryType);
            conversionMap.put(jcrPrimaryType, pseudoPd);
    }
        IPropertyDescriptor[] result = new IPropertyDescriptor[conversionMap.size()];
        for (int i = 0; i < result.length; i++) {
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

    }

    public void initPropertyDescriptors() {
      if (isFullProperties()) {
          descriptors = new IPropertyDescriptor[] {
              new TextPropertyDescriptor(NAME, "Name"),
              new TextPropertyDescriptor(VERSION, "Version"),
              new TextPropertyDescriptor(ID, "Id"),
              new TextPropertyDescriptor(PACKAGE_NAME, "Package"),
              new ComboBoxPropertyDescriptor(ROUTER_LAYOUT, "Connection Layout",
                  new String[] { "Manual", "Manhattan", "Shortest Path" }),
              new ListPropertyDescriptor(VARIABLES, "Variables", VariableListCellEditor.class),
              new ListPropertyDescriptor(SWIMLANES, "Swimlanes",
                  SwimlanesCellEditor.class),
              new ExceptionHandlersPropertyDescriptor(EXCEPTION_HANDLERS,
                  "Exception Handlers", process),
          };
      } else {
        descriptors = new IPropertyDescriptor[] {
              new TextPropertyDescriptor(NAME, "Name"),
              new TextPropertyDescriptor(VERSION, "Version"),
              new TextPropertyDescriptor(ID, "Id"),
              new TextPropertyDescriptor(PACKAGE_NAME, "Package"),
              new ListPropertyDescriptor(VARIABLES, "Variables", VariableListCellEditor.class),
              new ListPropertyDescriptor(SWIMLANES, "Swimlanes",
                  SwimlanesCellEditor.class),
          };
      }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        return null;
    }

    public IPropertyDescriptor[] getPropertyDescriptors() {
        return new IPropertyDescriptor[] {
            new TextPropertyDescriptor("name", Messages.getString("prop.name")), //$NON-NLS-1$ //$NON-NLS-2$
            new TextPropertyDescriptor("location", Messages.getString("prop.location")), //$NON-NLS-1$ //$NON-NLS-2$
            new TextPropertyDescriptor("type", Messages.getString("prop.type")), //$NON-NLS-1$ //$NON-NLS-2$
            new TextPropertyDescriptor("creationdate", Messages.getString("prop.created")), //$NON-NLS-1$ //$NON-NLS-2$
            new TextPropertyDescriptor("lastmodified", Messages.getString("prop.lastmod")), //$NON-NLS-1$ //$NON-NLS-2$
            new TextPropertyDescriptor("revision", Messages.getString("prop.revision")) //$NON-NLS-1$ //$NON-NLS-2$
        };
    }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        descriptors = new IPropertyDescriptor[oldDescriptors.length + parameters.size() + (fullProps ? 5 : 4)];
        System.arraycopy(oldDescriptors, 0, descriptors, 0, oldDescriptors.length);
        int i = 0;
        for (ParameterDefinition def: parameters) {
            descriptors[oldDescriptors.length + (i++)] =
                new TextPropertyDescriptor(def.getName(), def.getName());
        }
        if (fullProps) {
          descriptors[descriptors.length - 5] =
              new ComboBoxPropertyDescriptor(WAIT_FOR_COMPLETION, "Wait for completion", new String[] {"true", "false"});
        }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        propertyDescriptors = new IPropertyDescriptor[3];
        propertyDescriptors[0] = new PropertyDescriptor(new ID(AREA),
                Messages.GeomPropertySource_area);
        propertyDescriptors[1] = new PropertyDescriptor(new ID(LENGTH),
                Messages.GeomPropertySource_length);
        propertyDescriptors[2] = new TextPropertyDescriptor(new ID(GEOM),
                Messages.GeomPropertySource_WKT);
    }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        return descriptors;
    }

    public void initPropertyDescriptors() {
        descriptors = new IPropertyDescriptor[] {
            new TextPropertyDescriptor(NAME, "Name"),
            new TextPropertyDescriptor(VERSION, "Version"),
            new TextPropertyDescriptor(ID, "Id"),
            new TextPropertyDescriptor(PACKAGE_NAME, "Package"),
            new ComboBoxPropertyDescriptor(ROUTER_LAYOUT, "Connection Layout",
                new String[] { "Manual", "Manhattan", "Shortest Path" }),
            new ListPropertyDescriptor(VARIABLES, "Variables", VariableListCellEditor.class),
            new ListPropertyDescriptor(SWIMLANES, "Swimlanes",
                SwimlanesCellEditor.class),
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

    public IPropertyDescriptor[] getPropertyDescriptors() {
        if (getParent() != null && (getJoin().getType() == Join.TYPE_N_OF_M)) {
            IPropertyDescriptor[] result = new IPropertyDescriptor[descriptors.length + 1];
            System.arraycopy(descriptors, 0, result, 0, descriptors.length);
            result[descriptors.length] = new TextPropertyDescriptor(N, "n");
            return result;
        }
        return descriptors;
    }
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

        descriptors = new IPropertyDescriptor[oldDescriptors.length + parameters.size() + 5];
        System.arraycopy(oldDescriptors, 0, descriptors, 0, oldDescriptors.length);
        int i = 0;
        for (ParameterDefinition def: parameters) {
            descriptors[oldDescriptors.length + (i++)] =
                new TextPropertyDescriptor(def.getName(), def.getName());
        }
        descriptors[descriptors.length - 5] = getOnEntryPropertyDescriptor();
        descriptors[descriptors.length - 4] = getOnExitPropertyDescriptor();
        descriptors[descriptors.length - 3] =
            new ComboBoxPropertyDescriptor(WAIT_FOR_COMPLETION, "Wait for completion", new String[] {"true", "false"});
View Full Code Here

Examples of org.eclipse.ui.views.properties.TextPropertyDescriptor

    private void initPropertyDescriptors() {
        descriptors = new IPropertyDescriptor[DefaultElementWrapper.DESCRIPTORS.length + 4];
        System.arraycopy(DefaultElementWrapper.DESCRIPTORS, 0, descriptors, 0, DefaultElementWrapper.DESCRIPTORS.length);
        descriptors[descriptors.length - 4] =
            new TextPropertyDescriptor(START_NODE, "StartNodeId");
        descriptors[descriptors.length - 3] =
            new TextPropertyDescriptor(END_NODE, "EndNodeId");
        descriptors[descriptors.length - 2] =
            new ListPropertyDescriptor(VARIABLES, "Variables", VariableListCellEditor.class);
        descriptors[descriptors.length - 1] =
            new ExceptionHandlersPropertyDescriptor(EXCEPTION_HANDLERS,
                "Exception Handlers", getProcessWrapper().getProcess());
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.