Package org.locationtech.udig.issues.internal.view

Examples of org.locationtech.udig.issues.internal.view.IssueHandler


    }
   
    assertFalse(ApplicationGIS.getActiveMap()==map);
   

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

      public boolean isTrue()  { 
                try{
View Full Code Here


            @Override
            public String getPerspectiveID() {
                return MapPerspective.ID_PERSPECTIVE;
            }
        };
        IssueHandler handler = IssueHandler.createHandler(issue);
        handler.restorePerspective();
        assertEquals(MapPerspective.ID_PERSPECTIVE, getActiveWindow().getActivePage().getPerspective().getId());
        assertEquals(windows, PlatformUI.getWorkbench().getWorkbenchWindowCount());
    }
View Full Code Here

            @Override
            public String getViewPartId() {
                return IssueConstants.VIEW_ID;
            }
        };
        IssueHandler handler = IssueHandler.createHandler(issue);
        handler.restoreViewPart();
       
        assertTrue( getActivePart() instanceof IssuesView );
       
        issue = new TestIssue(){
            @Override
            public String getViewPartId() {
                return ViewPart1.ID;
            }
        };
        handler = IssueHandler.createHandler(issue);
        handler.restoreViewPart();
       
        assertTrue( getActivePart() instanceof ViewPart1 );
       
        issue = new TestIssue(){
            @Override
            public String getViewPartId() {
                return ViewPart1.ID;
            }
            @Override
            public void getViewMemento(IMemento memento) {
                memento.putString("testKey", "value")//$NON-NLS-1$//$NON-NLS-2$
            }
        };
        handler = IssueHandler.createHandler(issue);
        handler.restoreViewPart();

        assertTrue( getActivePart() instanceof ViewPart1 );
        assertEquals("value", ((ViewPart1)getActivePart()).memento.getString("testKey")); //$NON-NLS-1$ //$NON-NLS-2$
       
    }
View Full Code Here

            @Override
            public IEditorInput getEditorInput() {
                return ApplicationGIS.getInput(map);
            }
        };
        IssueHandler handler = IssueHandler.createHandler(issue);
        handler.restoreEditor();

        assertEquals( MapEditorWithPalette.class, getActiveWindow().getActivePage().getActiveEditor().getClass());
        assertEquals( map, ((MapPart)getActiveWindow().getActivePage().getActiveEditor()).getMap());
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.issues.internal.view.IssueHandler

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.