Package org.eclipse.xtext.xdoc.xdoc

Examples of org.eclipse.xtext.xdoc.xdoc.Link


    AbstractSection _mainSection = file.getMainSection();
    EList<TextOrMarkup> _contents = _mainSection.getContents();
    TextOrMarkup _head = IterableExtensions.<TextOrMarkup>head(_contents);
    EList<EObject> _contents_1 = _head.getContents();
    EObject _head_1 = IterableExtensions.<EObject>head(_contents_1);
    final Link link = ((Link) _head_1);
    String _url = link.getUrl();
    final URL url = new URL(_url);
    final URLConnection connection = url.openConnection();
    Assert.assertNotNull(connection);
  }
View Full Code Here


    assertEquals(1, file.getMainSection().getContents().size());
  }

  public void testLink() throws Exception {
    XdocFile file = getDocFromFile(TEST_FILE_DIR + "linkTest.xdoc");
    Link link = (Link) (file.getMainSection()
        .getContents().get(0)).getContents().get(0);
    URL url;
    url = new URL(link.getUrl());
    URLConnection c = url.openConnection();
    assertNotNull(c);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.xdoc.xdoc.Link

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.