Package org.locationtech.udig.issues

Examples of org.locationtech.udig.issues.IRemoteIssuesList


    @Test
    public void testRefreshAction() throws Exception {
        IIssuesList old = IIssuesManager.defaultInstance.getIssuesList();
        try{
            IIssuesManager.defaultInstance.setIssuesList(IssuesListTestHelper.createInMemoryDatastoreIssuesList(null, null));
            IRemoteIssuesList list=(IRemoteIssuesList) IIssuesManager.defaultInstance.getIssuesList();
           
            final IssuesListEvent[] change=new IssuesListEvent[1];
            list.addListener(new IIssuesListListener(){

                public void notifyChange( IssuesListEvent event ) {
                    change[0]=event;
                }
               
View Full Code Here


    @Test
    public void testSaveAction() throws Exception {
        IIssuesList old = IIssuesManager.defaultInstance.getIssuesList();
        try{
            IIssuesManager.defaultInstance.setIssuesList(IssuesListTestHelper.createInMemoryDatastoreIssuesList(null, null));
            IRemoteIssuesList list=(IRemoteIssuesList) IIssuesManager.defaultInstance.getIssuesList();
            list.add(IssuesListTestHelper.createFeatureIssue("id")); //$NON-NLS-1$
           
            list.get(0).setDescription("new Description YEAH!"); //$NON-NLS-1$
           
            final IssuesListEvent[] change=new IssuesListEvent[1];
            list.addListener(new IIssuesListListener(){

                public void notifyChange( IssuesListEvent event ) {
                    change[0]=event;
                }
               
View Full Code Here

                PlatformGIS.runBlockingOperation(new IRunnableWithProgress(){
  
                    public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException {
  
                        dirtyIssues.addAll(dirtyListener.dirtyIssues);
                        IRemoteIssuesList list = (IRemoteIssuesList) issuesList;
                        for( IIssue issue : dirtyListener.dirtyIssues ) {
                            result[0] = true;
                            try {
                                list.save(issue);
                                monitor.worked(1);
                            } catch (IOException e) {
                                exception[0] = e;
                            }
                        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.issues.IRemoteIssuesList

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.