Example #1
0
  public static BrowserPlatform getDummyPlatform() {
    if (platform == null) {
      platform = BrowserPlatform.getInstance("dummy");

      ProxyFactory dummyFac = DummyProxyFactory.createFor(platform);

      platform.registerProxyFactory(dummyFac);

      platform.getViewerRegistry().registerViewer(DummyViewer.class);
    }
    return platform;
  }
Example #2
0
  public static void main(String args[]) {

    try {
      BrowserPlatform platform = getDummyPlatform();

      VRL vrl = new VRL("dummy:///");

      ProxyBrowserController frame = (ProxyBrowserController) platform.createBrowser();
      ProxyFactory dummyFac = platform.getProxyFactoryFor(vrl);
      ProxyNode root = dummyFac.openLocation("dummy:///");

      frame.setRoot(root, true, true);

    } catch (Exception e) {
      e.printStackTrace();
    }

    // frame.setRoot(root);

  }