Package org.springframework.ide.eclipse.beans.ui.namespaces

Examples of org.springframework.ide.eclipse.beans.ui.namespaces.INamespaceDefinition


      return BeansUIImages.getImage(BeansUIImages.IMG_OBJS_XSD);
    }

    public String getText(Object element) {
      if (element instanceof INamespaceDefinition) {
        INamespaceDefinition xsdDef = (INamespaceDefinition) element;
        return prefixes.get(xsdDef) + " - " + xsdDef.getNamespaceURI();
      }
      return "";
    }
View Full Code Here


    StsTestUtil.waitForDisplay();

    boolean foundItem = false;
    List<String> uris = new ArrayList<String>();
    for (TableItem item : checkViewer.getTable().getItems()) {
      INamespaceDefinition def = (INamespaceDefinition) item.getData();
      String currentUri = def.getNamespaceURI();
      uris.add(currentUri);
      if (UtilSchemaConstants.URI.equals(currentUri)) {
        foundItem = true;
        assertFalse("Expected table item " + currentUri + "to be unchecked.", item.getChecked());
        item.setChecked(true);
View Full Code Here

    StsTestUtil.waitForDisplay();

    boolean foundItem = false;
    List<String> uris = new ArrayList<String>();
    for (TableItem item : checkViewer.getTable().getItems()) {
      INamespaceDefinition def = (INamespaceDefinition) item.getData();
      String currentUri = def.getNamespaceURI();
      uris.add(currentUri);
      if (AopSchemaConstants.URI.equals(currentUri)) {
        foundItem = true;
        assertFalse("Expected table item " + currentUri + "to be unchecked.", item.getChecked());
        item.setChecked(true);
View Full Code Here

      AbstractConfigFormPage formPage = cEditor.getFormPageForUri(uri);
      if (formPage != null) {
        boolean foundItem = false;
        List<String> uris = new ArrayList<String>();
        for (TableItem item : checkViewer.getTable().getItems()) {
          INamespaceDefinition nsDef = (INamespaceDefinition) item.getData();
          String currentUri = nsDef.getNamespaceURI();
          uris.add(currentUri);
          if (item.getChecked() && currentUri.equals(formPage.getNamespaceUri())) {
            foundItem = true;
          }
        }
View Full Code Here

      AbstractConfigFormPage formPage = cEditor.getFormPageForUri(uri);
      if (formPage != null) {
        boolean foundItem = false;
        List<String> uris = new ArrayList<String>();
        for (TableItem item : checkViewer.getTable().getItems()) {
          INamespaceDefinition nsDef = (INamespaceDefinition) item.getData();
          String currentUri = nsDef.getNamespaceURI();
          uris.add(currentUri);
          if (item.getChecked() && currentUri.equals(formPage.getNamespaceUri())) {
            foundItem = true;
          }
        }
View Full Code Here

      AbstractConfigFormPage formPage = cEditor.getFormPageForUri(uri);
      if (formPage != null) {
        boolean foundItem = false;
        List<String> uris = new ArrayList<String>();
        for (TableItem item : checkViewer.getTable().getItems()) {
          INamespaceDefinition nsDef = (INamespaceDefinition) item.getData();
          String currentUri = nsDef.getNamespaceURI();
          uris.add(currentUri);
          if (item.getChecked() && nsDef.getNamespaceURI().equals(formPage.getNamespaceUri())) {
            foundItem = true;
          }
        }
        assertTrue("Expected to find " + uri + " but found " + uris + " instead.", foundItem);
      }
View Full Code Here

    StsTestUtil.waitForDisplay();

    boolean foundItem = false;
    List<String> uris = new ArrayList<String>();
    for (TableItem item : checkViewer.getTable().getItems()) {
      INamespaceDefinition def = (INamespaceDefinition) item.getData();
      String currentUri = def.getNamespaceURI();
      uris.add(currentUri);
      if (AopSchemaConstants.URI.equals(currentUri)) {
        foundItem = true;
        assertTrue("Expected table item " + currentUri + "to be checked.", item.getChecked());
        item.setChecked(false);
View Full Code Here

    StsTestUtil.waitForDisplay();

    boolean foundItem = false;
    List<String> uris = new ArrayList<String>();
    for (TableItem item : checkViewer.getTable().getItems()) {
      INamespaceDefinition def = (INamespaceDefinition) item.getData();
      String currentUri = def.getNamespaceURI();
      uris.add(currentUri);
      if (IntStreamSchemaConstants.URI.equals(currentUri)) {
        foundItem = true;
        assertTrue("Expected table item " + currentUri + "to be checked.", item.getChecked());
        item.setChecked(false);
View Full Code Here

    StsTestUtil.waitForDisplay();

    boolean foundItem = false;
    List<String> uris = new ArrayList<String>();
    for (TableItem item : checkViewer.getTable().getItems()) {
      INamespaceDefinition def = (INamespaceDefinition) item.getData();
      String currentUri = def.getNamespaceURI();
      uris.add(currentUri);
      if (TxSchemaConstants.URI.equals(currentUri)) {
        foundItem = true;
        assertTrue("Expected table item " + currentUri + "to be checked.", item.getChecked());
        item.setChecked(false);
View Full Code Here

    assertTrue("Table initialization did not complete before timeout.", latch.await(30, TimeUnit.SECONDS));
    StsTestUtil.waitForDisplay();

    CheckboxTableViewer checkViewer = (CheckboxTableViewer) page.getMasterPart().getViewer();
    for (TableItem item : checkViewer.getTable().getItems()) {
      INamespaceDefinition def = (INamespaceDefinition) item.getData();
      if (!item.getChecked()) {
        assertNull(cEditor.getFormPageForUri(def.getNamespaceURI()));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.namespaces.INamespaceDefinition

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.