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

Examples of org.springframework.ide.eclipse.config.ui.editors.AbstractNamespaceDetailsPart


    AbstractConfigMasterDetailsBlock block = page.getMasterDetailsBlock();
    IDetailsPage details = block.getDetailsPart().getCurrentPage();
    assertTrue("Could not load details part.", details instanceof AbstractNamespaceDetailsPart);

    AbstractNamespaceDetailsPart detailsPart = (AbstractNamespaceDetailsPart) details;
    SpringConfigInputAccessor accessor = new SpringConfigInputAccessor(cEditor, detailsPart.getInput());

    assertEquals("myConcreteClass", accessor.getAttributeValue(BeansSchemaConstants.ATTR_ID));
    assertEquals(detailsPart.getInput().getAttribute(BeansSchemaConstants.ATTR_ID),
        accessor.getAttributeValue(BeansSchemaConstants.ATTR_ID));

    accessor.editAttribute(BeansSchemaConstants.ATTR_ID, "foo");
    assertEquals("foo", accessor.getAttributeValue(BeansSchemaConstants.ATTR_ID));
    assertEquals(detailsPart.getInput().getAttribute(BeansSchemaConstants.ATTR_ID),
        accessor.getAttributeValue(BeansSchemaConstants.ATTR_ID));

    accessor.editAttribute(BeansSchemaConstants.ATTR_ID, "");
    assertEquals("", accessor.getAttributeValue(BeansSchemaConstants.ATTR_ID));
    assertNull(detailsPart.getInput().getAttributeNode(BeansSchemaConstants.ATTR_ID));

    accessor.editAttribute(BeansSchemaConstants.ATTR_ID, "myConcreteClass");
    assertEquals("myConcreteClass", accessor.getAttributeValue(BeansSchemaConstants.ATTR_ID));
    assertEquals(detailsPart.getInput().getAttribute(BeansSchemaConstants.ATTR_ID),
        accessor.getAttributeValue(BeansSchemaConstants.ATTR_ID));
  }
View Full Code Here


    AbstractConfigMasterDetailsBlock block = page.getMasterDetailsBlock();
    IDetailsPage details = block.getDetailsPart().getCurrentPage();
    assertTrue("Could not load details part.", details instanceof AbstractNamespaceDetailsPart);

    AbstractNamespaceDetailsPart detailsPart = (AbstractNamespaceDetailsPart) details;
    SpringConfigInputAccessor accessor = new SpringConfigInputAccessor(cEditor, detailsPart.getInput());

    assertEquals("A sample configuration file.", accessor.getElementValue());

    accessor.editElement("foo");
    assertEquals("foo", accessor.getElementValue());
View Full Code Here

    return new TaskMasterPart(page, parent);
  }

  @Override
  public AbstractConfigDetailsPart getDetailsPage(Object key) {
    return new AbstractNamespaceDetailsPart(getMasterPart());
  }
View Full Code Here

    return null;
  }

  @Override
  public AbstractConfigDetailsPart getDetailsPage(Object key) {
    return new AbstractNamespaceDetailsPart(getMasterPart(), IntegrationMasterDetailsBlock.DOCS_SPRINGINT);
  }
View Full Code Here

          page.setMasterPart(getMasterPart());
          return page;
        }
      }
    }
    return new AbstractNamespaceDetailsPart(getMasterPart());
  }
View Full Code Here

    return new FlexMasterPart(page, parent);
  }

  @Override
  public AbstractConfigDetailsPart getDetailsPage(Object key) {
    return new AbstractNamespaceDetailsPart(getMasterPart(), DOCS_SPRINGFLEX_10);
  }
View Full Code Here

    return new OxmMasterPart(page, parent);
  }

  @Override
  public AbstractConfigDetailsPart getDetailsPage(Object key) {
    return new AbstractNamespaceDetailsPart(getMasterPart());
  }
View Full Code Here

    return new MvcMasterPart(page, parent);
  }

  @Override
  public AbstractConfigDetailsPart getDetailsPage(Object key) {
    return new AbstractNamespaceDetailsPart(getMasterPart());
  }
View Full Code Here

    return new JdbcMasterPart(page, parent);
  }

  @Override
  public AbstractConfigDetailsPart getDetailsPage(Object key) {
    return new AbstractNamespaceDetailsPart(getMasterPart());
  }
View Full Code Here

          page = getConfigEditor().getFormPage(OverviewFormPage.ID);
        }
        if (page != null) {
          AbstractConfigDetailsPart detailsPart = page.getMasterDetailsBlock().getPage(getInput());
          if (detailsPart instanceof AbstractNamespaceDetailsPart) {
            AbstractNamespaceDetailsPart namespaceDetails = (AbstractNamespaceDetailsPart) detailsPart;
            Composite composite = pageBook.createPage(input);
            composite.setLayout(new GridLayout());
            SpringConfigDocumentationSectionPart sectionPart = namespaceDetails
                .createDocumentationSectionPart(getConfigEditor(), getInput(), composite,
                    getWidgetFactory());
            sectionPart.createContent();
            composite.setData(sectionPart);
            partMap.put(input, sectionPart);
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.ui.editors.AbstractNamespaceDetailsPart

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.