performChange(document);
ICompilationUnit unit= getCompilationUnit(); IEditorPart part= EditorUtility.isOpenInEditor(unit); if (part == null) { part= EditorUtility.openInEditor(unit, true); } IWorkbenchPage page= JavaPlugin.getActivePage(); if (page != null && part != null) { page.bringToTop(part); } if (part != null) { part.setFocus(); } performChange(document, part);
	public void apply(IDocument document) {		try {			boolean canEdit= performValidateEdit();			if (!canEdit) {				return;			}			performChange(document);		} catch (CoreException e) {			ExceptionHandler.handle(e, CorrectionMessages.getString("CUCorrectionProposal.error.title"), CorrectionMessages.getString("CUCorrectionProposal.error.message"));  //$NON-NLS-1$//$NON-NLS-2$		}	}