Bug 123496 [IDE] Use operation validation API for IDE actions
We should use the Resources/Core operation validation API in the IDE actions for manipulating resources.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDE.java
IEditorRegistry editorReg, IEditorDescriptor defaultDescriptor)
			throws PartInitException {
		if (defaultDescriptor != null)
			return defaultDescriptor;
		IEditorDescriptor editorDesc = defaultDescriptor;
		
		if (editorReg.isSystemInPlaceEditorAvailable(name))
			editorDesc = editorReg
					.findEditor(IEditorRegistry.SYSTEM_INPLACE_EDITOR_ID);
		
		if (editorDesc == null
				&& editorReg.isSystemExternalEditorAvailable(name))
			editorDesc = editorReg
					.findEditor(IEditorRegistry.SYSTEM_EXTERNAL_EDITOR_ID);
		
		if (editorDesc == null)
			editorDesc = editorReg
					.findEditor(IDEWorkbenchPlugin.DEFAULT_TEXT_EDITOR_ID);
		
		if (editorDesc == null)
			throw new PartInitException(IDEWorkbenchMessages.IDE_noFileEditorFound);
		return editorDesc;
	}
    /**
     * Opens an editor on the file resource of the given marker.
     * <p>
     * If this page already has an editor open on the marker resource file that
     * editor is brought to front; otherwise, a new editor is opened.The cursor
     * and selection state of the editor are then updated from information
     * recorded in the marker.