Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.ICatalog.members()


  public void testNormal() throws Exception{
      Object context = getContext();

      final ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();

      List members = catalog.members(new DummyMonitor());
      if (!members.isEmpty()) {
        //clear the catalog
        for (Iterator itr = members.iterator(); itr.hasNext();) {
          IService service = (IService)itr.next();
          catalog.remove(service);
View Full Code Here


        for (Iterator itr = members.iterator(); itr.hasNext();) {
          IService service = (IService)itr.next();
          catalog.remove(service);
        }
      }
      members = catalog.members(new DummyMonitor());
      assertTrue(members.isEmpty());

      catalogImport.getDialog().getWorkflowWizard().getWorkflow()
        .setContext(context);
      catalogImport.run(new DummyMonitor(),context);
View Full Code Here

            //sleep for 10 seconds, if dialog still active by then kill it
            UDIGTestUtil.inDisplayThreadWait(2000000, new WaitCondition(){

                public boolean isTrue() {
                    try {
                        return !catalog.members(new DummyMonitor()).isEmpty();
                    } catch (IOException e) {
                        return false;
                    }
                }
View Full Code Here

                    }
                }

            }, true);

      members = catalog.members(new DummyMonitor());
      assertTrue(!members.isEmpty());
      for (Iterator itr = members.iterator(); itr.hasNext();) {
        assertServiceType((IService)itr.next());
      }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.