public void partActivated(IWorkbenchPartReference partRef) {    if (JavaEditor.this.equals(partRef.getPart(false))) { cancel(); toggleFolding(); } }
public void partActivated(IWorkbenchPartReference partRef) {}
		public void partActivated(IWorkbenchPartReference partRef) {			// XXX workaround https://bugs.eclipse.org/bugs/show_bug.cgi?id=85005			// the first editor in a stack is not visible when starting up,			// but will not receive a partVisible message when being activated.			if (JavaEditor.this.equals(partRef.getPart(false))) {				cancel();				toggleFolding();			}		}