Package org.locationtech.udig.ui

Examples of org.locationtech.udig.ui.WaitCondition


    public void abstractProjectUITestCaseSetUp() throws Exception {
        final IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager();
    IIntroPart intro = introManager.getIntro();
    if( intro!=null ){
      introManager.closeIntro(intro);
          UDIGTestUtil.inDisplayThreadWait(3000, new WaitCondition(){

        public boolean isTrue() {
          return introManager.getIntro()==null;
        }
           
View Full Code Here


    }
    }

    @After
    public void abstractProjectUITestCaseTearDown() throws Exception {
        UDIGTestUtil.inDisplayThreadWait(10000, new WaitCondition(){

            public boolean isTrue() {
                CompositeDropActionJob actionJob = UDIGDropHandler.getActionJob();
                return actionJob.getJobQueue().isEmpty() && actionJob.getState()==Job.NONE;
            }
View Full Code Here

                    deleteVertexAnimation = new DeleteVertexAnimation(point);
                    AnimationUpdater.runTimer(handler.getContext().getMapDisplay(), deleteVertexAnimation);
                }
                if( deleteVertexAnimation!=null ){
                    final DeleteVertexAnimation finalDeleteVertexAnim=deleteVertexAnimation;
                    PlatformGIS.wait(deleteVertexAnimation.getFrameInterval(), 5000, new WaitCondition(){
   
                        public boolean isTrue()  {
                            return !finalDeleteVertexAnim.isValid();
                        }
                       
View Full Code Here

      catalogImport.getDialog().getWorkflowWizard().getWorkflow()
        .setContext(context);
      catalogImport.run(new DummyMonitor(),context);

            //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) {
View Full Code Here

TOP

Related Classes of org.locationtech.udig.ui.WaitCondition

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.