import org.argeo.eclipse.ui.TreeParent;
import org.argeo.eclipse.ui.jcr.AsyncUiEventListener;
import org.argeo.eclipse.ui.jcr.utils.NodeViewerComparer;
+import org.argeo.jcr.JcrUtils;
import org.argeo.node.security.CryptoKeyring;
import org.argeo.node.security.Keyring;
import org.eclipse.e4.core.contexts.IEclipseContext;
+import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.services.EMenuService;
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.e4.ui.workbench.modeling.ESelectionService;
/* DEPENDENCY INJECTION */
@Inject
+ @Optional
private Keyring keyring;
@Inject
private RepositoryFactory repositoryFactory;
@PreDestroy
public void dispose() {
+ JcrUtils.logoutQuietly(userSession);
repositoryRegister.destroy();
}
/**
* Resets the tree content provider
*
- * @param sortChildNodes
- * if true the content provider will use a comparer to sort nodes
- * that might slow down the display
+ * @param sortChildNodes if true the content provider will use a comparer to
+ * sort nodes that might slow down the display
*/
public void setSortChildNodes(boolean sortChildNodes) {
this.sortChildNodes = sortChildNodes;