Package org.locationtech.udig.core.enums

Examples of org.locationtech.udig.core.enums.Priority


        FeatureIssue issue=IssuesListTestHelper.createFeatureIssue("Issue"); //$NON-NLS-1$
       
        Listener l=new Listener();
        issue.addIssueListener(l);
        Object oldValue=issue.getPriority();
        Priority newPriority=Priority.TRIVIAL;
        issue.setPriority(newPriority);
        assertEquals(issue, l.source);
        assertEquals(newPriority, l.newValue);
        assertEquals(oldValue, l.oldValue);
        assertEquals(IssueChangeType.PRIORITY, l.change);
View Full Code Here


    class TestIssue extends AbstractIssue {


        TestIssue( Priority p2, Resolution r ) {
            Priority p=p2;
            setResolution(r);
            if( p==null )
                p=Priority.WARNING;
            setPriority(p);
        }
View Full Code Here

                String description=(String) feature.getAttribute(mapper.getDescription());

                Resolution resolution=Resolution.valueOf(resolutionInt);
                if( resolution==null )
                    resolution=Resolution.UNRESOLVED;
                Priority priority=Priority.valueOf(priorityInt);
                if( priority==null )
                    priority=Priority.WARNING;
               

                issue.setDescription(description);
View Full Code Here

        if (feature == null) {
            IssuesActivator.log("Can't construct an issue from a null feature!", null); //$NON-NLS-1$
            return null;
        } else {
            String description = dialog.getDescription();
            Priority priority = dialog.getPriority();
            String groupId = dialog.getGroupId();
            FeatureIssue featureIssue = new FeatureIssue(priority, description, layer, feature,
              groupId);
      IIssuesManager.defaultInstance.getIssuesList().add(
                    featureIssue);
View Full Code Here

        resolution = newResolution;
        notifyListeners(IssueChangeType.RESOLUTION, newResolution, old);
    }

    public void setPriority( Priority newPriority ) {
        Priority old=priority;
        priority = newPriority;
        notifyListeners(IssueChangeType.PRIORITY, newPriority, old);
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.core.enums.Priority

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.