<artifactId>org.argeo.eclipse.ui</artifactId>
<version>${version.argeo-commons}</version>
</dependency>
- <dependency>
- <groupId>org.argeo.commons</groupId>
- <artifactId>org.argeo.eclipse.ui.workbench</artifactId>
- <version>${version.argeo-commons}</version>
- </dependency>
<dependency>
<groupId>org.argeo.commons</groupId>
<artifactId>org.argeo.cms.ui.workbench</artifactId>
<artifactId>org.argeo.eclipse.ui</artifactId>
<version>${version.argeo-commons}</version>
</dependency>
- <dependency>
- <groupId>org.argeo.commons</groupId>
- <artifactId>org.argeo.eclipse.ui.workbench</artifactId>
- <version>${version.argeo-commons}</version>
- </dependency>
<dependency>
<groupId>org.argeo.commons</groupId>
<artifactId>org.argeo.eclipse.ui.rap</artifactId>
*/
package org.argeo.slc.client.ui;
-import org.argeo.security.ui.SecurityUiPlugin;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
IFolderLayout bottom = layout.createFolder("bottom",
IPageLayout.BOTTOM, 0.65f, editorArea);
- bottom.addView(SecurityUiPlugin.PLUGIN_ID + ".logView");
+// BOTTOM.ADDVIEW(SECURITYUIPLUGIN.PLUGIN_ID + ".LOGVIEW");
bottom.addView(ClientUiPlugin.ID + ".jcrProcessListView");
}
}
private TableViewer viewer;
+ private Repository repository;
private Session session;
private EventListener processesObserver;
private Integer queryLimit = 2000;
public void createPartControl(Composite parent) {
+ try {
+ session = repository.login();
+ } catch (RepositoryException re) {
+ throw new SlcException("Unable to log in Repository " + repository,
+ re);
+ }
Table table = createTable(parent);
viewer = new TableViewer(table);
viewer.setLabelProvider(new LabelProvider());
}
- @Deprecated
- public void setSession(Session session) {
- this.session = session;
- }
-
public void dispose() {
JcrUtils.unregisterQuietly(session.getWorkspace(), processesObserver);
JcrUtils.logoutQuietly(session);
}
public void setRepository(Repository repository) {
- try {
- session = repository.login();
- } catch (RepositoryException re) {
- throw new SlcException("Unable to log in Repository " + repository,
- re);
- }
+ this.repository = repository;
}
}
\ No newline at end of file