Package org.locationtech.udig.issues.listeners

Examples of org.locationtech.udig.issues.listeners.IIssuesListListener


                Resolution.IN_PROGRESS,
                Priority.CRITICAL,
                new ReferencedEnvelope(0,10,0,10,crs),
                store.getFeatureWriterAppend(featureType.getName().getLocalPart(), Transaction.AUTO_COMMIT));
        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 testListeners() throws Exception {

        IssuesManager m = new IssuesManager();
        final IssuesListEvent[] listEvent = new IssuesListEvent[1];
        m.addIssuesListListener(new IIssuesListListener(){

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

        IIssuesManager.defaultInstance.setIssuesList(IssuesListTestHelper.createInMemoryDatastoreIssuesList(null, null));
        FeatureIssue createFeatureIssue = IssuesListTestHelper.createFeatureIssue("issue"); //$NON-NLS-1$
        IssuesManager.defaultInstance.getIssuesList().add(createFeatureIssue);
        createFeatureIssue.setPriority(Priority.TRIVIAL);
        final AtomicBoolean saved=new AtomicBoolean(false);
        IssuesManager.defaultInstance.getIssuesList().addListener(new IIssuesListListener(){

            public void notifyChange( IssuesListEvent event ) {
                if(event.getType()==IssuesListEventType.SAVE)
                    saved.set(true);
            }
View Full Code Here

        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

            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

           
        };
    }
   
  private IIssuesListListener createIssuesListener() {
    return new IIssuesListListener() {
      public void notifyChange(IssuesListEvent event) {
                final Collection< ? extends IIssue> changed = event.getChanged();
                if( !changed.isEmpty() ){
            PlatformGIS.syncInDisplayThread(new Runnable() {
              public void run() {
View Full Code Here

TOP

Related Classes of org.locationtech.udig.issues.listeners.IIssuesListListener

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.