Bug 132427 [Markers] TaskPropertiesDialog problems
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskPropertiesDialog.java
int increment = 50 / attrs.keySet().size();
        for (Iterator i = attrs.keySet().iterator(); i.hasNext();) {
            String key = (String) i.next();
            Object val = attrs.get(key);
            marker.setAttribute(key, val);
            monitor.worked(increment);
        }
        monitor.done();
    }
    /**
     * Returns the marker attributes to save back to the marker, 
     * based on the current dialog fields.
     */
    private Map getMarkerAttributesFromDialog() {
        Map attribs = new HashMap(11);
        if (isTask()) {
            attribs.put(IMarker.MESSAGE, descriptionText.getText());
            int i = priorityCombo.getSelectionIndex();
            if (i != -1) {
                attribs.put(IMarker.PRIORITY, new Integer(IMarker.PRIORITY_HIGH
                        - i));
            }
            attribs.put(IMarker.DONE,
                    completedCheckbox.getSelection() ? Boolean.TRUE
                            : Boolean.FALSE);
        }
        return attribs;
    }
}