- Button dashboardB = createButton(parent, WorkMsg.dashboard, ArgeoSuiteIcon.dashboard);
- createButton(parent, WorkMsg.people, ArgeoSuiteIcon.people);
- createButton(parent, WorkMsg.documents, ArgeoSuiteIcon.documents);
- return dashboardB;
+ Button first = null;
+ for (String layerId : defaultLayers) {
+ Button b = createButton(parent, layerId, SuiteMsg.dashboard, SuiteIcon.dashboard);
+ if (first == null)
+ first = b;
+ }
+
+// Button dashboardB = createButton(parent, SuiteMsg.dashboard.name(), SuiteMsg.dashboard, SuiteIcon.dashboard);
+ if (!cmsView.isAnonymous()) {
+// createButton(parent, SuiteMsg.documents.name(), SuiteMsg.documents, SuiteIcon.documents);
+// createButton(parent, SuiteMsg.people.name(), SuiteMsg.people, SuiteIcon.people);
+// createButton(parent, SuiteMsg.locations.name(), SuiteMsg.locations, SuiteIcon.location);
+ }
+ return first;