155156157158159160161
private void setValidationTrigger(IWorkbenchWindow w, AbstractUIPlugin plugin) { if (w == null || !(plugin instanceof ProtobufActivator)) { return; } w.getPartService().addPartListener(new ValidateFileOnActivation()); }