IWorkbenchWindow window= getSite().getWorkbenchWindow(); IPartService service= window.getPartService(); IWorkbenchPart part= service.getActivePart();
IWorkbenchPart part= getActivePart();
	protected boolean isActivePart() {		IWorkbenchWindow window= getSite().getWorkbenchWindow();		IPartService service= window.getPartService();		IWorkbenchPart part= service.getActivePart();		return part != null && part.equals(this);	}