Package org.springframework.ide.eclipse.config.ui.widgets

Examples of org.springframework.ide.eclipse.config.ui.widgets.TextAttribute


    String elem = getInput().getLocalName();
    if ((AopSchemaConstants.ELEM_ASPECT.equals(elem) && AopSchemaConstants.ATTR_REF.equals(attr))
        || (AopSchemaConstants.ELEM_ADVISOR.equals(elem) && AopSchemaConstants.ATTR_ADVICE_REF.equals(attr))
        || (AopSchemaConstants.ELEM_INCLUDE.equals(elem) && AopSchemaConstants.ATTR_NAME.equals(attr))
        || AopSchemaConstants.ATTR_DELEGATE_REF.equals(attr)) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (AopSchemaConstants.ATTR_IMPLEMENT_INTERFACE.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, true, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr,
          true)));
      return true;
    }
    if (AopSchemaConstants.ATTR_POINTCUT_REF.equals(attr)) {
      TextAttribute attrControl = createPointcutAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new PointcutReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (AopSchemaConstants.ATTR_DEFAULT_IMPL.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, false, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new DefaultImplContentProposalProvider(getInput(),
          attr)));
      return true;
    }
    if (AopSchemaConstants.ATTR_METHOD.equals(attr)) {
      TextAttribute attrControl = createAdviceMethodAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new AdviceMethodContentProposalProvider(
          getInput(), attr)));
      return true;
    }
View Full Code Here


  protected boolean addCustomAttribute(Composite client, String attr, boolean required) {
    // JeeContentAssistProcessor and JeeHyperlinkDetector
    if (JeeSchemaConstants.ATTR_EXPECTED_TYPE.equals(attr) || JeeSchemaConstants.ATTR_PROXY_INTERFACE.equals(attr)
        || JeeSchemaConstants.ATTR_BUSINESS_INTERFACE.equals(attr)
        || JeeSchemaConstants.ATTR_HOME_INTERFACE.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, true, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr,
          true)));
      return true;
    }
View Full Code Here

  @Override
  protected boolean addCustomAttribute(Composite client, String attr, boolean required) {
    // OsgiContentAssistProcessor and OsgiHyperlinkDetector
    String elem = getInput().getLocalName();
    if (OsgiSchemaConstants.ATTR_DEPENDS_ON.equals(attr) || OsgiSchemaConstants.ATTR_REF.equals(attr)) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr, true)));
      return true;
    }
    if (OsgiSchemaConstants.ATTR_INTERFACE.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, true, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr)));
      return true;
    }
    if (OsgiSchemaConstants.ATTR_REGISTRATION_METHOD.equals(attr)
        || OsgiSchemaConstants.ATTR_UNREGISTRATION_METHOD.equals(attr)) {
      TextAttribute attrControl = createRegistrationMethodAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new RegistrationMethodContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (OsgiSchemaConstants.ELEM_REFERENCE.equals(elem) && OsgiSchemaConstants.ATTR_ID.equals(attr)) {
      TextAttribute attrControl = createTextAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ReferenceIdContentProposalProvider(getInput(),
          attr)));
      return true;
    }
View Full Code Here

            .equals(attr))
        || (BlueprintSchemaConstants.ELEM_IDREF.equals(elem) && BlueprintSchemaConstants.ATTR_COMPONENT_ID
            .equals(attr))
        || (BlueprintSchemaConstants.ELEM_ARGUMENT.equals(elem) && BlueprintSchemaConstants.ATTR_REF
            .equals(attr))) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (BlueprintSchemaConstants.ATTR_INTERFACE.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, true, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr,
          true)));
      return true;
    }
    if (BlueprintSchemaConstants.ELEM_ARGUMENT.equals(elem) && BlueprintSchemaConstants.ATTR_TYPE.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, true, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr,
          false)));
      return true;
    }
    if (BlueprintSchemaConstants.ELEM_BEAN.equals(elem)
        && BlueprintSchemaConstants.ATTR_FACTORY_METHOD.equals(attr)) {
      TextAttribute attrControl = createFactoryMethodAttribute(client, attr,
          BlueprintSchemaConstants.ATTR_FACTORY_REF, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new FactoryMethodContentProposalProvider(
          getInput(), attr, BlueprintSchemaConstants.ATTR_FACTORY_REF)));
      return true;
View Full Code Here

  protected boolean addCustomAttribute(Composite client, String attr, boolean required) {
    // OsgiContentAssistProcessor and OsgiHyperlinkDetector
    String elem = getInput().getLocalName();
    if (OsgiCompendiumSchemaConstants.ELEM_PROPERTY_PLACEHOLDER.equals(elem)
        && OsgiCompendiumSchemaConstants.ATTR_DEFAULTS_REF.equals(attr)) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr, true)));
      return true;
    }
View Full Code Here

    String elem = getInput().getLocalName();
    if ((BatchSchemaConstants.ELEM_NEXT.equals(elem) && BatchSchemaConstants.ATTR_TO.equals(attr))
        || (BatchSchemaConstants.ELEM_STOP.equals(elem) && BatchSchemaConstants.ATTR_RESTART.equals(attr))
        || (BatchSchemaConstants.ELEM_SPLIT.equals(elem) && BatchSchemaConstants.ATTR_NEXT.equals(attr))
        || (BatchSchemaConstants.ELEM_STEP.equals(elem) && BatchSchemaConstants.ATTR_NEXT.equals(attr))) {
      TextAttribute attrControl = createStepAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new StepReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if ((BatchSchemaConstants.ELEM_JOB.equals(elem) && BatchSchemaConstants.ATTR_PARENT.equals(attr))
        || (BatchSchemaConstants.ELEM_STEP.equals(elem) && BatchSchemaConstants.ATTR_PARENT.equals(attr))
        || (BatchSchemaConstants.ELEM_CHUNK.equals(elem) && (BatchSchemaConstants.ATTR_PROCESSOR.equals(attr)
            || BatchSchemaConstants.ATTR_READER.equals(attr) || BatchSchemaConstants.ATTR_WRITER
            .equals(attr)))) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (BatchSchemaConstants.ATTR_CLASS.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, true, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr)));
      return true;
    }
    return super.addCustomAttribute(client, attr, required);
View Full Code Here

            || JmsSchemaConstants.ATTR_MESSAGE_CONVERTER.equals(attr) || JmsSchemaConstants.ATTR_TRANSACTION_MANAGER
            .equals(attr)))
        || (JmsSchemaConstants.ELEM_JCA_LISTENER_CONTAINER.equals(elem) && (JmsSchemaConstants.ATTR_RESOURCE_ADAPTER
            .equals(attr) || JmsSchemaConstants.ATTR_ACTIVATION_SPEC_FACTORY.equals(attr) || JmsSchemaConstants.ATTR_MESSAGE_CONVERTER
            .equals(attr)))) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr, true)));
      return true;
    }
    if (JmsSchemaConstants.ELEM_LISTENER.equals(elem) && JmsSchemaConstants.ATTR_METHOD.equals(attr)) {
      TextAttribute attrControl = createListenerMethodAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ListenerMethodContentProposalProvider(
          getInput(), attr)));
      return true;
    }
View Full Code Here

            .equals(attr)))
        || (WebFlowSchemaConstants.ELEM_EVALUATE.equals(elem) && WebFlowSchemaConstants.ATTR_RESULT_TYPE
            .equals(attr))
        || WebFlowSchemaConstants.ATTR_CLASS.equals(attr)
        || WebFlowSchemaConstants.ATTR_TYPE.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, false, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassContentProposalProvider(getInput(), attr,
          false)));
      return true;
    }
    if ((WebFlowSchemaConstants.ELEM_VAR.equals(elem) && WebFlowSchemaConstants.ATTR_NAME.equals(attr))
        || (WebFlowSchemaConstants.ELEM_SUBFLOW_STATE.equals(elem) && WebFlowSchemaConstants.ATTR_SUBFLOW_ATTRIBUTE_MAPPER
            .equals(attr)) || WebFlowSchemaConstants.ATTR_BEAN.equals(attr)) {
      TextAttribute attrControl = createWebFlowBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new WebFlowBeanReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if ((WebFlowSchemaConstants.ELEM_TRANSITION.equals(elem) && WebFlowSchemaConstants.ATTR_TO.equals(attr))
        || (WebFlowSchemaConstants.ELEM_START_STATE.equals(elem) && WebFlowSchemaConstants.ATTR_IDREF
            .equals(attr))
        || (WebFlowSchemaConstants.ELEM_IF.equals(elem) && (WebFlowSchemaConstants.ATTR_THEN.equals(attr) || WebFlowSchemaConstants.ATTR_ELSE
            .equals(attr)))) {
      TextAttribute attrControl = createStateAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new StateReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (WebFlowSchemaConstants.ELEM_TRANSITION.equals(elem)
        && WebFlowSchemaConstants.ATTR_ON_EXCEPTION.equals(attr)) {
      TextAttribute attrControl = createClassAttribute(client, attr, false, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new ClassHierarchyContentProposalProvider(
          getInput(), attr, Throwable.class.getName())));
      return true;
    }
    if ((WebFlowSchemaConstants.ELEM_SUBFLOW_STATE.equals(elem) && (WebFlowSchemaConstants.ATTR_FLOW.equals(attr) || WebFlowSchemaConstants.ATTR_SUBFLOW
        .equals(attr)))
        || (WebFlowSchemaConstants.ELEM_FLOW.equals(elem) && WebFlowSchemaConstants.ATTR_PARENT.equals(attr))) {
      TextAttribute attrControl = createSubflowAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new SubflowReferenceContentProposalProvider(
          getInput(), attr)));
      return true;
    }
    if (WebFlowSchemaConstants.ELEM_ACTION.equals(elem) && WebFlowSchemaConstants.ATTR_METHOD.equals(attr)) {
      TextAttribute attrControl = createWebFlowMethodAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanMethodContentProposalProvider(getInput(),
          attr)));
      return true;
    }
    if (WebFlowSchemaConstants.ELEM_BEAN_ACTION.equals(elem) && WebFlowSchemaConstants.ATTR_METHOD.equals(attr)) {
      TextAttribute attrControl = createWebFlowMethodAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanActionMethodContentProposalProvider(
          getInput(), attr)));
      return true;
    }
View Full Code Here

    if (FacesSchemaConstants.ELEM_FLOW_BUILDER_SERVICES.equals(elem)
        && (FacesSchemaConstants.ATTR_EXPRESSION_PARSER.equals(attr)
            || FacesSchemaConstants.ATTR_FORMATTER_REGISTRY.equals(attr)
            || FacesSchemaConstants.ATTR_VIEW_FACTORY_CREATOR.equals(attr) || FacesSchemaConstants.ATTR_CONVERSION_SERVICE
            .equals(attr))) {
      TextAttribute attrControl = createBeanAttribute(client, attr, required);
      addWidget(attrControl);
      addAdapter(new TextAttributeProposalAdapter(attrControl, new BeanReferenceContentProposalProvider(
          getInput(), attr, true)));
      return true;
    }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.ui.widgets.TextAttribute

Copyright © 2018 www.massapicom. 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.