Bug 208389 [Markers] New Marker view should use default Properties dialog
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/views/markers/PropertiesHandler.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
	 */
	public Object execute(ExecutionEvent event) {
		ExtendedMarkersView view = getView(event);
		if (view == null)
			return this;
		
		IMarker selection = view.getSelectedMarkers()[0];
		DialogMarkerProperties dialog = null;
		try {
			if (selection.isSubtypeOf(IMarker.PROBLEM))
				dialog = new DialogProblemProperties(view.getSite().getShell());
			if (selection.isSubtypeOf(IMarker.TASK))
				dialog = new DialogTaskProperties(view.getSite().getShell());
			if (selection.isSubtypeOf(IMarker.BOOKMARK))
				dialog = new BookmarkPropertiesDialog(view.getSite().getShell());
		} catch (CoreException exception) {
			StatusManager.getManager().handle(exception.getStatus());
		}
		if (dialog == null)
			return this;
		dialog.setMarker(selection);
		dialog.open();
		return this;
	}
}