Package org.springframework.ide.eclipse.config.core.contentassist

Examples of org.springframework.ide.eclipse.config.core.contentassist.SpringConfigContentAssistProcessor


  }

  public AbstractNamespaceDetailsPart(AbstractConfigMasterPart master, String docsUrl) {
    super(master);
    this.docsUrl = docsUrl;
    processor = new SpringConfigContentAssistProcessor();
  }
View Full Code Here


   * @see SpringConfigContentProvider#getChildNames(String)
   * @param parent the parent element
   * @return map of namespace prefixes to child names for the given parent
   */
  protected Map<String, List<String>> getChildNames(IDOMElement parent) {
    SpringConfigContentAssistProcessor proc = getFormPage().getXmlProcessor();
    Node grandParent = parent.getParentNode();
    Map<String, List<String>> childMap = new TreeMap<String, List<String>>();
    if (proc != null) {
      List<String> list = proc.getChildNames(parent);
      String uri = getFormPage().getNamespaceUri();
      for (String name : list) {
        String prefix = ""; //$NON-NLS-1$
        List<String> names;
        int pos = name.indexOf(':');
View Full Code Here

  private boolean isGraphDemo = false;

  public AbstractConfigEditor() {
    propertiesPages = new HashSet<AbstractConfigPropertySection>();
    xmlProcessor = new SpringConfigContentAssistProcessor();
    headerMessage = new SpringConfigHeaderMessage(this);
    contentOutline = new SpringConfigContentOutline(this);
    resourceListener = new ResourceChangeListener();
    ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceListener);
    BeansCorePlugin.getModel().addChangeListener(this);
View Full Code Here

  private final ITextEditor textEditor;

  public AbstractTextCommand(ITextEditor textEditor) {
    this.textEditor = textEditor;
    processor = new SpringConfigContentAssistProcessor();
  }
View Full Code Here

    assertNotNull("Could not load overview page.", page.getMasterPart());

    TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
    TreeItem root = treeViewer.getTree().getItem(0);
    IDOMElement node = (IDOMElement) root.getData();
    SpringConfigContentAssistProcessor xmlProcessor = page.getXmlProcessor();
    List<String> children = xmlProcessor.getChildNames(node);

    assertTrue(children.contains(ConfigCoreUtils.getPrefixForNamespaceUri(cEditor.getDomDocument(),
        BeansSchemaConstants.URI) + ":" + BeansSchemaConstants.ELEM_ALIAS));
    assertTrue(children.contains(ConfigCoreUtils.getPrefixForNamespaceUri(cEditor.getDomDocument(),
        BeansSchemaConstants.URI) + ":" + BeansSchemaConstants.ELEM_BEAN));
View Full Code Here

    assertNotNull("Could not load overview page.", page.getMasterPart());

    TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
    TreeItem root = treeViewer.getTree().getItem(0);
    IDOMElement node = (IDOMElement) root.getData();
    SpringConfigContentAssistProcessor xmlProcessor = page.getXmlProcessor();
    List<String> children = xmlProcessor.getChildNames(node);

    assertTrue(children.contains(BeansSchemaConstants.ELEM_ALIAS));
    assertTrue(children.contains(BeansSchemaConstants.ELEM_BEAN));
    assertFalse(children.contains(BeansSchemaConstants.ELEM_BEANS));
View Full Code Here

    assertNotNull("Could not load overview page.", page.getMasterPart());

    TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
    TreeItem root = treeViewer.getTree().getItem(0);
    IDOMElement node = (IDOMElement) root.getData();
    SpringConfigContentAssistProcessor xmlProcessor = page.getXmlProcessor();
    List<String> children = xmlProcessor.getChildNames(node);

    assertTrue(children.contains(BeansSchemaConstants.ELEM_ALIAS));
    assertTrue(children.contains(BeansSchemaConstants.ELEM_BEAN));
    assertFalse(children.contains(BeansSchemaConstants.ELEM_BEANS));
View Full Code Here

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

    TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
    TreeItem root = treeViewer.getTree().getItem(0);
    IDOMElement node = (IDOMElement) root.getData();
    SpringConfigContentAssistProcessor xmlProcessor = page.getXmlProcessor();
    List<String> children = xmlProcessor.getChildNames(node);

    assertTrue(children.contains(IntegrationSchemaConstants.ELEM_AGGREGATOR));
    assertTrue(children.contains(IntegrationSchemaConstants.ELEM_CHANNEL));
    assertFalse(children.contains(IntegrationSchemaConstants.ELEM_WIRE_TAP));
View Full Code Here

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

    TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
    TreeItem root = treeViewer.getTree().getItem(0);
    IDOMElement node = (IDOMElement) root.getData();
    SpringConfigContentAssistProcessor xmlProcessor = page.getXmlProcessor();
    List<String> children = xmlProcessor.getChildNames(node);

    assertTrue(children.contains(BeansSchemaConstants.ELEM_ALIAS));
    assertTrue(children.contains(BeansSchemaConstants.ELEM_BEAN));
    assertFalse(children.contains(BeansSchemaConstants.ELEM_BEANS));

    assertFalse(children.contains(BatchSchemaConstants.ELEM_JOB));

    TreeItem jobItem = root.getItem(1);
    IDOMElement jobNode = (IDOMElement) jobItem.getData();
    children = xmlProcessor.getChildNames(jobNode);

    assertFalse(children.contains(BatchSchemaConstants.ELEM_JOB));
    assertTrue(children.contains(BatchSchemaConstants.ELEM_STEP));
    assertTrue(children.contains(BatchSchemaConstants.ELEM_SPLIT));
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.core.contentassist.SpringConfigContentAssistProcessor

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.