import org.argeo.activities.ActivitiesService;
import org.argeo.activities.ActivitiesTypes;
import org.argeo.activities.ui.TaskViewerContextMenu;
import org.argeo.activities.ActivitiesService;
import org.argeo.activities.ActivitiesTypes;
import org.argeo.activities.ui.TaskViewerContextMenu;
import org.argeo.connect.ConnectException;
import org.argeo.connect.ConnectNames;
import org.argeo.connect.ui.ConnectWorkbenchUtils;
import org.argeo.connect.ConnectException;
import org.argeo.connect.ConnectNames;
import org.argeo.connect.ui.ConnectWorkbenchUtils;
import org.argeo.connect.util.ConnectJcrUtils;
import org.argeo.eclipse.ui.EclipseUiUtils;
import org.argeo.jcr.JcrUtils;
import org.argeo.connect.util.ConnectJcrUtils;
import org.argeo.eclipse.ui.EclipseUiUtils;
import org.argeo.jcr.JcrUtils;
import org.argeo.suite.e4.SuiteMsg;
import org.argeo.tracker.TrackerNames;
import org.argeo.tracker.TrackerService;
import org.argeo.suite.e4.SuiteMsg;
import org.argeo.tracker.TrackerNames;
import org.argeo.tracker.TrackerService;
- CmsUtils.clear(headerCmp);
- populateHeaderPart(headerCmp, NodeUtils.getUserHome(getSession()));
+ CmsUiUtils.clear(headerCmp);
+ populateHeaderPart(headerCmp, NodeUtils.getUserHome(getHomeSession()));
populateTaskListCmp(taskListCmp);
headerCmp.getParent().layout(true, true);
populateTaskListCmp(taskListCmp);
headerCmp.getParent().layout(true, true);
private void populateTaskListCmp(Composite parent) {
parent.setLayout(EclipseUiUtils.noSpaceGridLayout());
private void populateTaskListCmp(Composite parent) {
parent.setLayout(EclipseUiUtils.noSpaceGridLayout());
if (!nit.hasNext()) {
Composite noTaskCmp = new Composite(parent, SWT.NO_FOCUS);
noTaskCmp.setLayoutData(EclipseUiUtils.fillAll());
if (!nit.hasNext()) {
Composite noTaskCmp = new Composite(parent, SWT.NO_FOCUS);
noTaskCmp.setLayoutData(EclipseUiUtils.fillAll());
// Label noTaskLbl = new Label(noTaskCmp, SWT.CENTER);
// noTaskLbl.setText("<i> <big> You have no pending Task. </big> </i>");
// Label noTaskLbl = new Label(noTaskCmp, SWT.CENTER);
// noTaskLbl.setText("<i> <big> You have no pending Task. </big> </i>");
// noTaskLbl.setLayoutData(new GridData(SWT.CENTER, SWT.BOTTOM, true, true));
} else {
// noTaskLbl.setLayoutData(new GridData(SWT.CENTER, SWT.BOTTOM, true, true));
} else {
tvlc.setLayoutData(EclipseUiUtils.fillAll());
final TableViewer viewer = tvlc.getTableViewer();
viewer.setInput(JcrUtils.nodeIteratorToList(nit).toArray());
tvlc.setLayoutData(EclipseUiUtils.fillAll());
final TableViewer viewer = tvlc.getTableViewer();
viewer.setInput(JcrUtils.nodeIteratorToList(nit).toArray());
String titleStr = "<big><b>" + CurrentUser.getDisplayName() + "</b></big>";
titleLbl.setText(titleStr);
GridData gd = new GridData(SWT.BEGINNING, SWT.TOP, false, false);
String titleStr = "<big><b>" + CurrentUser.getDisplayName() + "</b></big>";
titleLbl.setText(titleStr);
GridData gd = new GridData(SWT.BEGINNING, SWT.TOP, false, false);
// String mainMixin = TrackerTypes.TRACKER_TASK;
String mainMixin = ActivitiesTypes.ACTIVITIES_TASK;
String pathCreated = ConnectWorkbenchUtils.createAndConfigureEntity(createTaskLk.getShell(),
// String mainMixin = TrackerTypes.TRACKER_TASK;
String mainMixin = ActivitiesTypes.ACTIVITIES_TASK;
String pathCreated = ConnectWorkbenchUtils.createAndConfigureEntity(createTaskLk.getShell(),
- getSession(), getSystemAppService(), getSystemWorkbenchService(), mainMixin);
+ getHomeSession(), getSystemAppService(), getSystemWorkbenchService(), mainMixin);
if (!openProjects.isEmpty()) {
Group myProjectsGp = new Group(rightCmp, SWT.NO_FOCUS);
myProjectsGp.setText("My open projects");
if (!openProjects.isEmpty()) {
Group myProjectsGp = new Group(rightCmp, SWT.NO_FOCUS);
myProjectsGp.setText("My open projects");
// LOCAL HELPERS
private void populateMuliValueClickableList(Composite parent, Node[] nodes, ColumnLabelProvider lp,
String listLabel) {
// LOCAL HELPERS
private void populateMuliValueClickableList(Composite parent, Node[] nodes, ColumnLabelProvider lp,
String listLabel) {
RowLayout rl = new RowLayout(SWT.HORIZONTAL | SWT.WRAP);
rl.wrap = true;
rl.marginLeft = rl.marginTop = rl.marginBottom = 0;
RowLayout rl = new RowLayout(SWT.HORIZONTAL | SWT.WRAP);
rl.wrap = true;
rl.marginLeft = rl.marginTop = rl.marginBottom = 0;
int i = 1;
for (Node node : nodes) {
Link link = new Link(parent, SWT.NONE);
int i = 1;
for (Node node : nodes) {
Link link = new Link(parent, SWT.NONE);
link.setText(lp.getText(node) + (i != nodes.length ? ", " : ""));
i++;
// Color fc = lp.getForeground(node);
link.setText(lp.getText(node) + (i != nodes.length ? ", " : ""));
i++;
// Color fc = lp.getForeground(node);