Examples of WaitCondition


Examples of org.locationtech.udig.ui.WaitCondition

        IssueHandler handler = IssueHandler.createHandler(issue);
       
        handler.fixIssue();
        map.sendCommandSync(new BlankCommand());
        UDIGTestUtil.inDisplayThreadWait(10000,new WaitCondition(){

      public boolean isTrue()  { 
                try{

                    ReferencedEnvelope env = new ReferencedEnvelope(features[0].getBounds());
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

        map.getLayersInternal().add( layer );
        map.getViewportModelInternal().setCRS(DefaultGeographicCRS.WGS84);
        map.getViewportModelInternal().zoomToBox(layer.getBounds(null, map.getViewportModel().getCRS()));
       
        ApplicationGIS.openMap(map);
        UDIGTestUtil.inDisplayThreadWait(2000, new WaitCondition(){

            public boolean isTrue() {
                return ApplicationGIS.getActiveMap()!=null;
            }
           
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

        event=new MapMouseEvent( null, 20, 20, MapMouseEvent.NONE,
                MapMouseEvent.NONE, MapMouseEvent.BUTTON1);
        handler.setTesting(false);
        handler.handleEvent(event, EventType.RELEASED);

        UDIGTestUtil.inDisplayThreadWait(1000, new WaitCondition(){

            public boolean isTrue() {
                return handler.getCurrentState()==EditState.NONE && editBlackboard.getGeoms().size()==1
                && 2==editBlackboard.getCoords(10,0).size();
            }
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

            public void save( IMemento memento ) {
            }
           
        });
       
        UDIGTestUtil.inDisplayThreadWait(5000, new WaitCondition(){

            public boolean isTrue()  {
                return list.isEmpty();
            }
           
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

        });
    handler.performDrop(data, null);

    // this method does work in another thread so we have to wait
    WaitCondition condition = new WaitCondition() {
      public boolean isTrue()  {
        try {
                    return !catalog.members(null).isEmpty();
                } catch (IOException e) {
                    throw (RuntimeException) new RuntimeException( ).initCause( e );
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition


    handler.performDrop(data, null);

    // this method does work in another thread so we have to wait
    WaitCondition condition = new WaitCondition() {
      public boolean isTrue()  {
        try {
                    return catalog.members(null).size()>1;
                } catch (IOException e) {
                    throw (RuntimeException) new RuntimeException( ).initCause( e );
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

        }
    }

    private void runModifyAttribute( TreeItem treeItem, final Object newValue, final String attributeToTest ) throws Exception {
        modifier.modify(treeItem, attributeToTest, newValue );
        UDIGTestUtil.inDisplayThreadWait(1000, new WaitCondition(){

            public boolean isTrue() {
                return newValue.equals( features.get(0).getAttribute(attributeToTest) );
            }
           
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

    @Ignore
    @Test
    public void testMapItemProviderAddLayer() throws Exception {
        content.inputChanged(viewer, null, map);
        content.getChildren(map);
        UDIGTestUtil.inDisplayThreadWait(5000, new WaitCondition(){

            public boolean isTrue()  {
                return getNumItemProviders()>0;
            }
           
        }, false );

        refresh=false;
       
        assertEquals( 1, getNumItemProviders() );
       
        map.getLayersInternal().add(ProjectFactory.eINSTANCE.createLayer());
        UDIGTestUtil.inDisplayThreadWait(5000, new WaitCondition(){

            public boolean isTrue()  {
                return refresh;
            }
           
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

        action.init(null, null, ViewerDropLocation.NONE, layer, aF);
        action.perform(new NullProgressMonitor());
        final  FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = layer.getResource(FeatureSource.class, new NullProgressMonitor());
//        UDIGTestUtil.inDisplayThreadWait(2000000, new WaitCondition(){
        UDIGTestUtil.inDisplayThreadWait(2000, new WaitCondition(){

      public boolean isTrue()  {
        try {
                    return 2==featureSource.getFeatures().size() && ((org.opengis.filter.Filter)layer.getFilter()) != Filter.EXCLUDE;
                } catch (IOException e) {
View Full Code Here

Examples of org.locationtech.udig.ui.WaitCondition

        final Layer layer = targetMap.getLayersInternal().get(0);
        action.init(null, null, ViewerDropLocation.NONE, layer, aF);
        action.perform(new NullProgressMonitor());
        final  FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = layer.getResource(FeatureSource.class, new NullProgressMonitor());
//        UDIGTestUtil.inDisplayThreadWait(200000, new WaitCondition(){
        UDIGTestUtil.inDisplayThreadWait(2000, new WaitCondition(){

      public boolean isTrue()  {
                    return ((org.opengis.filter.Filter)layer.getFilter())!=Filter.EXCLUDE;
      }
         
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.