Bug 66375 [Dialogs] TaskPropertiesDialog and DialogMarkerProperties need a common superclass
RC1 Despite these two classes being pretty much identical they share almost no code. TaskPropertiesDialog should be a subclass a DialogMarkerProperties. As this is an API change post 3.0
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/bookmarkexplorer/BookmarkPropertiesDialog.java
Object val = attrs.get(key);
            marker.setAttribute(key, val);
        }
    }
    /**
     * Returns the marker attributes to save back to the marker, 
     * based on the current dialog fields.
     */
    private Map getMarkerAttributesFromDialog() {
        Map attribs = new HashMap();
        attribs.put(IMarker.MESSAGE, descriptionText.getText());
        return attribs;
    }
    private void createMarker() {
        if (resource == null || !(resource instanceof IFile)) {
			return;
		}
        IFile file = (IFile) resource;
        try {
            IMarker newMarker = file.createMarker(IMarker.BOOKMARK);
            if (initialAttributes != null) {
				newMarker.setAttributes(initialAttributes);
			}
            String message = descriptionText.getText();
            newMarker.setAttribute(IMarker.MESSAGE, message);
        } catch (CoreException e) {
        }
    }
}