summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid W. Miller2012-07-23 19:02:02 (EDT)
committer Roberto E. Escobar2012-07-23 19:02:02 (EDT)
commit04c88de1ea8f852eef0f90d5847b62d7684d5b30 (patch)
tree0d729c390d86e33d8328e3a64a05ca1a5de6ba46
parenteff6c85b92116f9e596739b0e21e3b10d633a815 (diff)
downloadorg.eclipse.osee-04c88de1ea8f852eef0f90d5847b62d7684d5b30.zip
org.eclipse.osee-04c88de1ea8f852eef0f90d5847b62d7684d5b30.tar.gz
org.eclipse.osee-04c88de1ea8f852eef0f90d5847b62d7684d5b30.tar.bz2
feature[ats_04296]: Rename DynamicXWidgetLayout to XWidgetRenderer
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/config/copy/CopyAtsConfigurationBlam.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/goal/GoalSearchWorkflowSearchItem.java10
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java10
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/UserSearchWorkflowSearchItem.java10
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/EmailActionsBlam.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/CreateActionFromTaskBlam.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusBlam.java6
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java6
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DuplicateWorkflowBlam.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSimpleList.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSpreadsheet.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/TaskMetrics.java6
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/review/ReviewSearchWorkflowSearchItem.java10
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskEditorParameterSearchItem.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Import/ImportActionsViaSpreadsheetBlam.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsAttributeXWidgetProvider.java12
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsWidgetProvider.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workdef/StateXWidgetPage.java44
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/ATSXWidgetOptionResolver.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/AtsXWidgetActionFormPage.java10
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/IWorldEditorParameterProvider.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItem.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItemProvider.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/search/TaskSearchWorldSearchItem.java10
-rw-r--r--plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/util/CoverageImportTestBlam.java4
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/blam/TxCoveragePartitionsReportBlam.java4
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/dispo/ImportCoverageMethodsBlam.java4
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/util/widget/CoverageXWidgetFactory.java4
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemFullTraceReport.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/BlamXWidgetTest.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/operation/EmailGroupsBlamTest.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/XWidgetParser.java26
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java10
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java14
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/EmailGroupsBlam.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateUserGroupBlam.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/XWidgetPopulateExample.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java10
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/AttributeXWidgetManager.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultAttributeXWidgetProvider.java10
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultXWidgetOptionResolver.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/FrameworkXWidgetProvider.java4
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IAttributeXWidgetProvider.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IDynamicWidgetLayoutListener.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetOptionResolver.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetProvider.java2
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/SwtXWidgetRenderer.java (renamed from plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DynamicXWidgetLayout.java)48
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetPage.java32
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetRendererItem.java (renamed from plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DynamicXWidgetLayoutData.java)10
50 files changed, 206 insertions, 206 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/config/copy/CopyAtsConfigurationBlam.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/config/copy/CopyAtsConfigurationBlam.java
index ce158d5..e52c980 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/config/copy/CopyAtsConfigurationBlam.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/config/copy/CopyAtsConfigurationBlam.java
@@ -28,7 +28,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.results.XResultDataUI;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.ui.forms.widgets.FormToolkit;
/**
@@ -111,7 +111,7 @@ public class CopyAtsConfigurationBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals("Top Team Definition to Copy From (most like new config)")) {
xTeamDefinitionCombo = (XTeamDefinitionCombo) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
index 33c9fc1..1741219 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowSection.java
@@ -44,7 +44,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XComboViewer;
import org.eclipse.osee.framework.ui.skynet.widgets.XLabelValue;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.ALayout;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.osee.framework.ui.swt.FontManager;
@@ -205,7 +205,7 @@ public class SMAWorkFlowSection extends SectionPart {
}
// Create dynamic XWidgets
- DynamicXWidgetLayout dynamicXWidgetLayout =
+ SwtXWidgetRenderer dynamicXWidgetLayout =
statePage.createBody(getManagedForm(), workComp, sma, xModListener, isEditable || isGlobalEditable);
for (XWidget xWidget : dynamicXWidgetLayout.getXWidgets()) {
allXWidgets.add(xWidget);
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/goal/GoalSearchWorkflowSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/goal/GoalSearchWorkflowSearchItem.java
index d35220f..32e183a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/goal/GoalSearchWorkflowSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/goal/GoalSearchWorkflowSearchItem.java
@@ -31,8 +31,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XCheckBox;
import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -99,7 +99,7 @@ public class GoalSearchWorkflowSearchItem extends WorldEditorParameterSearchItem
}
@Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
if (widget.getLabel().equals("Assignee")) {
assigneeCombo = (XMembersCombo) widget;
}
@@ -152,12 +152,12 @@ public class GoalSearchWorkflowSearchItem extends WorldEditorParameterSearchItem
}
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
@Override
- public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java
index a63dd2e..22e5a83 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/TeamWorkflowSearchWorkflowSearchItem.java
@@ -37,8 +37,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -138,7 +138,7 @@ public class TeamWorkflowSearchWorkflowSearchItem extends WorldEditorParameterSe
@SuppressWarnings("unused")
@Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
if (widget.getLabel().equals("Assignee")) {
assigneeCombo = (XMembersCombo) widget;
}
@@ -297,12 +297,12 @@ public class TeamWorkflowSearchWorkflowSearchItem extends WorldEditorParameterSe
}
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
@Override
- public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/UserSearchWorkflowSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/UserSearchWorkflowSearchItem.java
index 214e144..20cd58f 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/UserSearchWorkflowSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/UserSearchWorkflowSearchItem.java
@@ -44,8 +44,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -169,7 +169,7 @@ public class UserSearchWorkflowSearchItem extends WorldEditorParameterSearchItem
}
@Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
if (widget.getLabel().equals("User")) {
userCombo = (XMembersCombo) widget;
}
@@ -418,12 +418,12 @@ public class UserSearchWorkflowSearchItem extends WorldEditorParameterSearchItem
}
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
@Override
- public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/EmailActionsBlam.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/EmailActionsBlam.java
index 78ca0ea..6604709 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/EmailActionsBlam.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/EmailActionsBlam.java
@@ -45,7 +45,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XButtonPush;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XText;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -150,7 +150,7 @@ public class EmailActionsBlam extends AbstractBlam {
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreating(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals("Body")) {
bodyTextBox = (XText) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/CreateActionFromTaskBlam.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/CreateActionFromTaskBlam.java
index dc2306d..5654c3e 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/CreateActionFromTaskBlam.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/CreateActionFromTaskBlam.java
@@ -48,7 +48,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XListDropViewer;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -149,7 +149,7 @@ public class CreateActionFromTaskBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals(TASKS) && taskArtifacts != null) {
XListDropViewer viewer = (XListDropViewer) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusBlam.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusBlam.java
index 231d787..8b1f79c 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusBlam.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusBlam.java
@@ -74,7 +74,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XBranchSelectWidget;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.osee.ote.define.artifacts.ArtifactTestRunOperator;
import org.eclipse.swt.program.Program;
@@ -586,7 +586,7 @@ public class DetailedTestStatusBlam extends AbstractBlam {
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
String widgetLabel = xWidget.getLabel();
if (widgetLabel.equals("Versions")) {
@@ -597,7 +597,7 @@ public class DetailedTestStatusBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
String widgetName = xWidget.getLabel();
if (widgetName.equals("Program")) {
XAtsProgramComboWidget programWidget = (XAtsProgramComboWidget) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java
index 9d7d388..1341d26 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java
@@ -77,7 +77,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XBranchSelectWidget;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.osee.ote.define.artifacts.ArtifactTestRunOperator;
import org.eclipse.swt.program.Program;
@@ -530,7 +530,7 @@ public class DetailedTestStatusOld extends AbstractBlam {
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
String widgetLabel = xWidget.getLabel();
if (widgetLabel.equals("Versions")) {
@@ -545,7 +545,7 @@ public class DetailedTestStatusOld extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
String widgetName = xWidget.getLabel();
if (widgetName.equals("Program")) {
XAtsProgramComboWidget programWidget = (XAtsProgramComboWidget) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DuplicateWorkflowBlam.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DuplicateWorkflowBlam.java
index 4a01b76..d1c454d 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DuplicateWorkflowBlam.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DuplicateWorkflowBlam.java
@@ -49,7 +49,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XListDropViewer;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -185,7 +185,7 @@ public class DuplicateWorkflowBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals(TEAM_WORKFLOW) && defaultTeamWorkflows != null) {
XListDropViewer viewer = (XListDropViewer) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSimpleList.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSimpleList.java
index 546c7f3..593c9a4 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSimpleList.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSimpleList.java
@@ -37,7 +37,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XListDropViewer;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -112,7 +112,7 @@ public class ImportTasksFromSimpleList extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals(TEAM_WORKFLOW) && taskableStateMachineArtifact != null) {
XListDropViewer viewer = (XListDropViewer) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSpreadsheet.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSpreadsheet.java
index 8c52009..2b181dc 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSpreadsheet.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ImportTasksFromSpreadsheet.java
@@ -35,7 +35,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XListDropViewer;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -55,7 +55,7 @@ public class ImportTasksFromSpreadsheet extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals(TEAM_WORKFLOW) && taskableStateMachineArtifact != null) {
XListDropViewer viewer = (XListDropViewer) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/TaskMetrics.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/TaskMetrics.java
index 00772cf..3f2b036 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/TaskMetrics.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/TaskMetrics.java
@@ -46,7 +46,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.swt.program.Program;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -154,7 +154,7 @@ public class TaskMetrics extends AbstractBlam {
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
String widgetLabel = xWidget.getLabel();
if (widgetLabel.equals("Version(s)")) {
@@ -163,7 +163,7 @@ public class TaskMetrics extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
if (xWidget instanceof XHyperlabelTeamDefinitionSelection) {
teamCombo = (XHyperlabelTeamDefinitionSelection) xWidget;
teamCombo.addXModifiedListener(new TeamSelectedListener());
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/review/ReviewSearchWorkflowSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/review/ReviewSearchWorkflowSearchItem.java
index dcbe0cd..30dd8d8 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/review/ReviewSearchWorkflowSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/review/ReviewSearchWorkflowSearchItem.java
@@ -40,8 +40,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -146,7 +146,7 @@ public class ReviewSearchWorkflowSearchItem extends WorldEditorParameterSearchIt
@SuppressWarnings("unused")
@Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
if (widget.getLabel().equals("Assignee")) {
assigneeCombo = (XMembersCombo) widget;
}
@@ -326,12 +326,12 @@ public class ReviewSearchWorkflowSearchItem extends WorldEditorParameterSearchIt
}
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
@Override
- public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskEditorParameterSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskEditorParameterSearchItem.java
index 4040dd0..74035ba 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskEditorParameterSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/task/TaskEditorParameterSearchItem.java
@@ -16,7 +16,7 @@ import org.eclipse.osee.ats.world.search.WorldSearchItem;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.util.Result;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetOptionResolver;
@@ -48,7 +48,7 @@ public abstract class TaskEditorParameterSearchItem extends WorldSearchItem impl
public abstract Collection<? extends Artifact> getTaskEditorTaskArtifacts() throws OseeCoreException;
@Override
- public String[] getWidgetOptions(DynamicXWidgetLayoutData widgetData) {
+ public String[] getWidgetOptions(XWidgetRendererItem widgetData) {
return null;
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Import/ImportActionsViaSpreadsheetBlam.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Import/ImportActionsViaSpreadsheetBlam.java
index cf2d373..8b957a9 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Import/ImportActionsViaSpreadsheetBlam.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/Import/ImportActionsViaSpreadsheetBlam.java
@@ -33,7 +33,7 @@ import org.eclipse.osee.framework.ui.skynet.results.XResultDataUI;
import org.eclipse.osee.framework.ui.skynet.widgets.XButtonPush;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.swt.program.Program;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -109,7 +109,7 @@ public class ImportActionsViaSpreadsheetBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals("Open Excel Import Example Spreadsheet")) {
XButtonPush button = (XButtonPush) xWidget;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsAttributeXWidgetProvider.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsAttributeXWidgetProvider.java
index 26d1b15..b9dde0f 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsAttributeXWidgetProvider.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsAttributeXWidgetProvider.java
@@ -19,7 +19,7 @@ import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.ui.skynet.widgets.XOption;
import org.eclipse.osee.framework.ui.skynet.widgets.util.DefaultAttributeXWidgetProvider;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
/**
* Provides XFlatDam as default widget for specified attribute types
@@ -38,19 +38,19 @@ public class AtsAttributeXWidgetProvider extends DefaultAttributeXWidgetProvider
}
@Override
- public List<DynamicXWidgetLayoutData> getDynamicXWidgetLayoutData(IAttributeType attributeType) throws OseeCoreException {
- List<DynamicXWidgetLayoutData> layouts = new ArrayList<DynamicXWidgetLayoutData>();
+ public List<XWidgetRendererItem> getDynamicXWidgetLayoutData(IAttributeType attributeType) throws OseeCoreException {
+ List<XWidgetRendererItem> layouts = new ArrayList<XWidgetRendererItem>();
if (attributeType.equals(AtsAttributeTypes.BaselineBranchGuid)) {
layouts = super.getDynamicXWidgetLayoutData(attributeType);
- DynamicXWidgetLayoutData layoutData = layouts.get(0);
+ XWidgetRendererItem layoutData = layouts.get(0);
layoutData.setXWidgetName("XBranchSelectWidget");
} else if (XFLAT_ATTRIBUTE_TYPES.contains(attributeType)) {
layouts = super.getDynamicXWidgetLayoutData(attributeType);
- DynamicXWidgetLayoutData layoutData = layouts.get(0);
+ XWidgetRendererItem layoutData = layouts.get(0);
layoutData.setXWidgetName("XTextFlatDam");
} else if (attributeType.getName().equals(AtsAttributeTypes.DslSheet.getName())) {
layouts = super.getDynamicXWidgetLayoutData(attributeType);
- DynamicXWidgetLayoutData layoutData = layouts.get(0);
+ XWidgetRendererItem layoutData = layouts.get(0);
layoutData.getXOptionHandler().add(XOption.FILL_VERTICALLY);
}
return layouts;
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsWidgetProvider.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsWidgetProvider.java
index 7fc0824..b9aa4da 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsWidgetProvider.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/widgets/AtsWidgetProvider.java
@@ -26,7 +26,7 @@ import org.eclipse.osee.framework.logging.OseeLevel;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.skynet.widgets.XHyperlabelGroupSelection;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetProvider;
/**
@@ -35,7 +35,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetProvider;
public class AtsWidgetProvider implements IXWidgetProvider {
@Override
- public XWidget createXWidget(String widgetName, String name, DynamicXWidgetLayoutData widgetLayoutData) {
+ public XWidget createXWidget(String widgetName, String name, XWidgetRendererItem widgetLayoutData) {
XWidget toReturn = null;
if (widgetName.equals(XHyperlabelTeamDefinitionSelection.WIDGET_ID)) {
XHyperlabelTeamDefinitionSelection widget = new XHyperlabelTeamDefinitionSelection(name);
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workdef/StateXWidgetPage.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workdef/StateXWidgetPage.java
index 8dd4343..be20bb4 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workdef/StateXWidgetPage.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workdef/StateXWidgetPage.java
@@ -53,8 +53,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.IArtifactWidget;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XOption;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetOptionResolver;
import org.eclipse.swt.widgets.Composite;
@@ -71,7 +71,7 @@ import org.w3c.dom.Element;
public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateToken {
private static final Pair<IStatus, XWidget> OK_PAIR = new Pair<IStatus, XWidget>(Status.OK_STATUS, null);
- protected DynamicXWidgetLayout dynamicXWidgetLayout;
+ protected SwtXWidgetRenderer dynamicXWidgetLayout;
protected final IAtsStateDefinition stateDefinition;
protected final IAtsWorkDefinition workDefinition;
private AbstractWorkflowArtifact sma;
@@ -80,9 +80,9 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
this.workDefinition = workDefinition;
this.stateDefinition = stateDefinition;
if (dynamicWidgetLayoutListener == null) {
- dynamicXWidgetLayout = new DynamicXWidgetLayout(this, optionResolver);
+ dynamicXWidgetLayout = new SwtXWidgetRenderer(this, optionResolver);
} else {
- dynamicXWidgetLayout = new DynamicXWidgetLayout(dynamicWidgetLayoutListener, optionResolver);
+ dynamicXWidgetLayout = new SwtXWidgetRenderer(dynamicWidgetLayoutListener, optionResolver);
}
}
@@ -104,16 +104,16 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
}
}
- public StateXWidgetPage(IAtsWorkDefinition workDefinition, IAtsStateDefinition stateDefinition, List<DynamicXWidgetLayoutData> datas, IXWidgetOptionResolver optionResolver, IDynamicWidgetLayoutListener dynamicWidgetLayoutListener) {
+ public StateXWidgetPage(IAtsWorkDefinition workDefinition, IAtsStateDefinition stateDefinition, List<XWidgetRendererItem> datas, IXWidgetOptionResolver optionResolver, IDynamicWidgetLayoutListener dynamicWidgetLayoutListener) {
this(workDefinition, stateDefinition, optionResolver, dynamicWidgetLayoutListener);
dynamicXWidgetLayout.setLayoutDatas(datas);
}
- public StateXWidgetPage(List<DynamicXWidgetLayoutData> datas, IXWidgetOptionResolver optionResolver, IDynamicWidgetLayoutListener dynamicWidgetLayoutListener) {
+ public StateXWidgetPage(List<XWidgetRendererItem> datas, IXWidgetOptionResolver optionResolver, IDynamicWidgetLayoutListener dynamicWidgetLayoutListener) {
this(null, null, datas, optionResolver, dynamicWidgetLayoutListener);
}
- public StateXWidgetPage(List<DynamicXWidgetLayoutData> datas, IXWidgetOptionResolver optionResolver) {
+ public StateXWidgetPage(List<XWidgetRendererItem> datas, IXWidgetOptionResolver optionResolver) {
this(null, null, datas, optionResolver, null);
}
@@ -126,18 +126,18 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
widgetCreated(xWidget, toolkit, art, stateDefinition, xModListener, isEditable);
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
widgetCreating(xWidget, toolkit, art, stateDefinition, xModListener, isEditable);
}
public void dispose() {
try {
- for (DynamicXWidgetLayoutData layoutData : getlayoutDatas()) {
+ for (XWidgetRendererItem layoutData : getlayoutDatas()) {
layoutData.getXWidget().dispose();
}
} catch (OseeCoreException ex) {
@@ -153,14 +153,14 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
return false;
}
- public DynamicXWidgetLayout createBody(IManagedForm managedForm, Composite parent, Artifact artifact, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
+ public SwtXWidgetRenderer createBody(IManagedForm managedForm, Composite parent, Artifact artifact, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
dynamicXWidgetLayout.createBody(managedForm, parent, artifact, xModListener, isEditable);
return dynamicXWidgetLayout;
}
public Pair<IStatus, XWidget> isPageComplete() {
try {
- for (DynamicXWidgetLayoutData layoutData : dynamicXWidgetLayout.getLayoutDatas()) {
+ for (XWidgetRendererItem layoutData : dynamicXWidgetLayout.getLayoutDatas()) {
if (!layoutData.getXWidget().isValid().isOK()) {
// Check to see if widget is part of a completed OR or XOR group
if (!dynamicXWidgetLayout.isOrGroupFromAttrNameComplete(layoutData.getStoreName()) && !dynamicXWidgetLayout.isXOrGroupFromAttrNameComplete(layoutData.getStoreName())) {
@@ -184,7 +184,7 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
if (preHtml != null) {
sb.append(preHtml);
}
- for (DynamicXWidgetLayoutData layoutData : dynamicXWidgetLayout.getLayoutDatas()) {
+ for (XWidgetRendererItem layoutData : dynamicXWidgetLayout.getLayoutDatas()) {
XWidget xWidget = layoutData.getXWidget();
if (xWidget instanceof IArtifactWidget) {
((IArtifactWidget) xWidget).setArtifact(layoutData.getArtifact());
@@ -214,15 +214,15 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
return sb.toString();
}
- private Set<DynamicXWidgetLayoutData> getlayoutDatas() {
+ private Set<XWidgetRendererItem> getlayoutDatas() {
return dynamicXWidgetLayout.getLayoutDatas();
}
- private void addLayoutData(DynamicXWidgetLayoutData data) {
+ private void addLayoutData(XWidgetRendererItem data) {
dynamicXWidgetLayout.addWorkLayoutData(data);
}
- public DynamicXWidgetLayoutData getLayoutData(String layoutName) {
+ public XWidgetRendererItem getLayoutData(String layoutName) {
return dynamicXWidgetLayout.getLayoutData(layoutName);
}
@@ -268,7 +268,7 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
return workDefinition;
}
- public DynamicXWidgetLayout getDynamicXWidgetLayout() {
+ public SwtXWidgetRenderer getDynamicXWidgetLayout() {
return dynamicXWidgetLayout;
}
@@ -308,7 +308,7 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
}
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener xModListener, boolean isEditable) {
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener xModListener, boolean isEditable) {
// If no tool tip, add global tool tip
if (!Strings.isValid(xWidget.getToolTip())) {
@@ -363,7 +363,7 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
boolean lastWidget = x == stateItems.size() - 1;
IAtsLayoutItem stateItem = stateItems.get(x);
if (stateItem instanceof IAtsWidgetDefinition) {
- DynamicXWidgetLayoutData data = processWidgetDefinition((IAtsWidgetDefinition) stateItem, sma);
+ XWidgetRendererItem data = processWidgetDefinition((IAtsWidgetDefinition) stateItem, sma);
if (firstWidget) {
if (compositeStateItem.getNumColumns() > 0) {
data.setBeginComposite(compositeStateItem.getNumColumns());
@@ -382,8 +382,8 @@ public class StateXWidgetPage implements IDynamicWidgetLayoutListener, IStateTok
/**
* TODO This will eventually go away and ATS pages will be generated straight from WidgetDefinitions.
*/
- private DynamicXWidgetLayoutData processWidgetDefinition(IAtsWidgetDefinition widgetDef, AbstractWorkflowArtifact sma) {
- DynamicXWidgetLayoutData data = new DynamicXWidgetLayoutData(getDynamicXWidgetLayout());
+ private XWidgetRendererItem processWidgetDefinition(IAtsWidgetDefinition widgetDef, AbstractWorkflowArtifact sma) {
+ XWidgetRendererItem data = new XWidgetRendererItem(getDynamicXWidgetLayout());
data.setDefaultValue(widgetDef.getDefaultValue());
data.setHeight(widgetDef.getHeight());
data.setStoreName(widgetDef.getAtrributeName());
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/ATSXWidgetOptionResolver.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/ATSXWidgetOptionResolver.java
index 5ed2fd7..0ed3e88 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/ATSXWidgetOptionResolver.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/workflow/ATSXWidgetOptionResolver.java
@@ -16,7 +16,7 @@ import java.util.Set;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.skynet.core.attribute.AttributeTypeManager;
import org.eclipse.osee.framework.ui.skynet.widgets.util.DefaultXWidgetOptionResolver;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
/**
* @author Donald G. Dunne
@@ -31,7 +31,7 @@ public final class ATSXWidgetOptionResolver extends DefaultXWidgetOptionResolver
}
@Override
- public String[] getWidgetOptions(DynamicXWidgetLayoutData xWidgetData) {
+ public String[] getWidgetOptions(XWidgetRendererItem xWidgetData) {
if (xWidgetData.getXWidgetName().contains(OPTIONS_FROM_ATTRIBUTE_VALIDITY) || xWidgetData.getXWidgetName().contains(
"ACTIVE_USER_COMMUNITIES")) {
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/AtsXWidgetActionFormPage.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/AtsXWidgetActionFormPage.java
index bc10bc4..80db1f7 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/AtsXWidgetActionFormPage.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/AtsXWidgetActionFormPage.java
@@ -24,8 +24,8 @@ import org.eclipse.osee.framework.ui.skynet.XWidgetParser;
import org.eclipse.osee.framework.ui.skynet.artifact.editor.parts.AttributeFormPart;
import org.eclipse.osee.framework.ui.skynet.util.FormsUtil;
import org.eclipse.osee.framework.ui.skynet.widgets.util.DefaultXWidgetOptionResolver;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetOptionResolver;
import org.eclipse.osee.framework.ui.swt.ALayout;
@@ -51,7 +51,7 @@ import org.eclipse.ui.forms.widgets.Section;
* @author Donald G. Dunne
*/
public abstract class AtsXWidgetActionFormPage extends FormPage {
- protected DynamicXWidgetLayout dynamicXWidgetLayout;
+ protected SwtXWidgetRenderer dynamicXWidgetLayout;
protected final XFormToolkit toolkit;
private Composite parametersContainer;
private Section parameterSection;
@@ -139,8 +139,8 @@ public abstract class AtsXWidgetActionFormPage extends FormPage {
paramComp.setLayout(ALayout.getZeroMarginLayout(1, false));
paramComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- List<DynamicXWidgetLayoutData> layoutDatas = null;
- dynamicXWidgetLayout = new DynamicXWidgetLayout(getDynamicWidgetLayoutListener(), getXWidgetOptionResolver());
+ List<XWidgetRendererItem> layoutDatas = null;
+ dynamicXWidgetLayout = new SwtXWidgetRenderer(getDynamicWidgetLayoutListener(), getXWidgetOptionResolver());
try {
layoutDatas = XWidgetParser.extractWorkAttributes(dynamicXWidgetLayout, getXWidgetsXml());
if (layoutDatas != null && !layoutDatas.isEmpty()) {
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/IWorldEditorParameterProvider.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/IWorldEditorParameterProvider.java
index 2507199..fb211b5 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/IWorldEditorParameterProvider.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/IWorldEditorParameterProvider.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.ats.world;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
/**
@@ -23,7 +23,7 @@ public interface IWorldEditorParameterProvider extends IWorldEditorProvider {
public IDynamicWidgetLayoutListener getDynamicWidgetLayoutListener();
- public String[] getWidgetOptions(DynamicXWidgetLayoutData xWidgetData);
+ public String[] getWidgetOptions(XWidgetRendererItem xWidgetData);
public boolean isSaveButtonAvailable();
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItem.java
index f454dd7..ea08df7 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItem.java
@@ -18,7 +18,7 @@ import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.util.Result;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetOptionResolver;
import org.eclipse.osee.framework.ui.swt.KeyedImage;
@@ -62,7 +62,7 @@ public abstract class WorldEditorParameterSearchItem extends WorldSearchItem imp
}
@Override
- public String[] getWidgetOptions(DynamicXWidgetLayoutData widgetData) {
+ public String[] getWidgetOptions(XWidgetRendererItem widgetData) {
return null;
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItemProvider.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItemProvider.java
index 09d8f2f..25efb8a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItemProvider.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/WorldEditorParameterSearchItemProvider.java
@@ -29,7 +29,7 @@ import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.osee.framework.ui.swt.CursorManager;
import org.eclipse.osee.framework.ui.swt.Displays;
@@ -187,7 +187,7 @@ public class WorldEditorParameterSearchItemProvider extends WorldEditorProvider
}
@Override
- public String[] getWidgetOptions(DynamicXWidgetLayoutData widgetData) {
+ public String[] getWidgetOptions(XWidgetRendererItem widgetData) {
return null;
}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/search/TaskSearchWorldSearchItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/search/TaskSearchWorldSearchItem.java
index 5555df3..ad36cc5 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/search/TaskSearchWorldSearchItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/world/search/TaskSearchWorldSearchItem.java
@@ -58,8 +58,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XHyperlabelGroupSelection;
import org.eclipse.osee.framework.ui.skynet.widgets.XMembersCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.ui.forms.widgets.FormToolkit;
/**
@@ -286,17 +286,17 @@ public class TaskSearchWorldSearchItem extends TaskEditorParameterSearchItem {
}
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget widget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
@Override
- public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreating(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
// do nothing
}
@Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) {
if (widget.getLabel().equals("Group(s)")) {
groupWidget = (XHyperlabelGroupSelection) widget;
}
diff --git a/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/util/CoverageImportTestBlam.java b/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/util/CoverageImportTestBlam.java
index 73afdec..24e6eaa 100644
--- a/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/util/CoverageImportTestBlam.java
+++ b/plugins/org.eclipse.osee.coverage.test/src/org/eclipse/osee/coverage/util/CoverageImportTestBlam.java
@@ -31,7 +31,7 @@ import org.eclipse.osee.framework.ui.skynet.XWidgetParser;
import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.ui.forms.widgets.FormToolkit;
/**
@@ -55,7 +55,7 @@ public class CoverageImportTestBlam extends AbstractCoverageBlam implements ICov
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
}
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/blam/TxCoveragePartitionsReportBlam.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/blam/TxCoveragePartitionsReportBlam.java
index 9087768..6012e02 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/blam/TxCoveragePartitionsReportBlam.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/blam/TxCoveragePartitionsReportBlam.java
@@ -41,7 +41,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XList;
import org.eclipse.osee.framework.ui.skynet.widgets.XList.XListItem;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.swt.program.Program;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
@@ -192,7 +192,7 @@ public class TxCoveragePartitionsReportBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals(BRANCH_WIDGET_NAME)) {
branchWidget = (XBranchSelectWidget) xWidget;
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/dispo/ImportCoverageMethodsBlam.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/dispo/ImportCoverageMethodsBlam.java
index cc1cd11..9346e0d 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/dispo/ImportCoverageMethodsBlam.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/dispo/ImportCoverageMethodsBlam.java
@@ -33,7 +33,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XBranchSelectWidget;
import org.eclipse.osee.framework.ui.skynet.widgets.XComboViewer;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.ui.forms.widgets.FormToolkit;
@@ -100,7 +100,7 @@ public class ImportCoverageMethodsBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals(TO_BRANCH_WIDGET_NAME)) {
toBranchWidget = (XBranchSelectWidget) xWidget;
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/util/widget/CoverageXWidgetFactory.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/util/widget/CoverageXWidgetFactory.java
index 328d671..4cc359d 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/util/widget/CoverageXWidgetFactory.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/util/widget/CoverageXWidgetFactory.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.coverage.util.widget;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetProvider;
/**
@@ -20,7 +20,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.util.IXWidgetProvider;
public class CoverageXWidgetFactory implements IXWidgetProvider {
@Override
- public XWidget createXWidget(String widgetName, String name, DynamicXWidgetLayoutData widgetLayoutData) {
+ public XWidget createXWidget(String widgetName, String name, XWidgetRendererItem widgetLayoutData) {
if (widgetName.equals("XHyperlabelCoverageMethodSelection")) {
return new XHyperlabelCoverageMethodSelection();
}
diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemFullTraceReport.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemFullTraceReport.java
index 190d1b5..bc353f9 100644
--- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemFullTraceReport.java
+++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/SubsystemFullTraceReport.java
@@ -44,7 +44,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XCheckBox;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XText;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
@@ -218,7 +218,7 @@ public class SubsystemFullTraceReport extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget widget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(widget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (widget.getLabel().equals(SCRIPT_ROOT_DIR)) {
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/BlamXWidgetTest.java b/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/BlamXWidgetTest.java
index 0eca9fb..269b25c 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/BlamXWidgetTest.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/BlamXWidgetTest.java
@@ -15,7 +15,7 @@ import org.eclipse.osee.framework.logging.SevereLoggingMonitor;
import org.eclipse.osee.framework.ui.skynet.blam.AbstractBlam;
import org.eclipse.osee.framework.ui.skynet.blam.BlamContributionManager;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.support.test.util.TestUtil;
import org.junit.Assert;
@@ -32,7 +32,7 @@ public class BlamXWidgetTest {
public void testXWidgetsResolved() throws Exception {
SevereLoggingMonitor monitorLog = TestUtil.severeLoggingStart();
for (AbstractBlam blam : BlamContributionManager.getBlamOperations()) {
- for (DynamicXWidgetLayoutData xWidgetLayoutData : blam.getLayoutDatas()) {
+ for (XWidgetRendererItem xWidgetLayoutData : blam.getLayoutDatas()) {
XWidget xWidget = xWidgetLayoutData.getXWidget();
Assert.assertNotNull(xWidget);
/**
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/operation/EmailGroupsBlamTest.java b/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/operation/EmailGroupsBlamTest.java
index 194d96e..3757942 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/operation/EmailGroupsBlamTest.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet.test/src/org/eclipse/osee/framework/ui/skynet/test/blam/operation/EmailGroupsBlamTest.java
@@ -32,7 +32,7 @@ import org.eclipse.osee.framework.skynet.core.util.FrameworkTestUtil;
import org.eclipse.osee.framework.ui.skynet.blam.operation.EmailGroupsBlam;
import org.eclipse.osee.framework.ui.skynet.blam.operation.EmailGroupsData;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.support.test.util.TestUtil;
import org.junit.AfterClass;
import org.junit.Assert;
@@ -68,7 +68,7 @@ public class EmailGroupsBlamTest extends EmailGroupsBlam {
@org.junit.Test
public void testXWidgetsResolved() throws Exception {
SevereLoggingMonitor monitorLog = TestUtil.severeLoggingStart();
- for (DynamicXWidgetLayoutData xWidgetLayoutData : getLayoutDatas()) {
+ for (XWidgetRendererItem xWidgetLayoutData : getLayoutDatas()) {
XWidget xWidget = xWidgetLayoutData.getXWidget();
Assert.assertNotNull(xWidget);
/**
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/XWidgetParser.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/XWidgetParser.java
index aea8a14..b5550a2 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/XWidgetParser.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/XWidgetParser.java
@@ -23,8 +23,8 @@ import org.eclipse.osee.framework.jdk.core.util.xml.Jaxp;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.skynet.internal.Activator;
import org.eclipse.osee.framework.ui.skynet.widgets.XOption;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
@@ -39,8 +39,8 @@ public class XWidgetParser {
public static final String EMPTY_WIDGETS =
"<xWidgets><XWidget xwidgetType=\"XLabel\" displayName=\" \" /></xWidgets>";
- public static List<DynamicXWidgetLayoutData> extractWorkAttributes(DynamicXWidgetLayout dynamicXWidgetLayout, String xml) throws OseeCoreException {
- List<DynamicXWidgetLayoutData> data = Collections.emptyList();
+ public static List<XWidgetRendererItem> extractWorkAttributes(SwtXWidgetRenderer dynamicXWidgetLayout, String xml) throws OseeCoreException {
+ List<XWidgetRendererItem> data = Collections.emptyList();
try {
Document document = Jaxp.readXmlDocument(xml);
Element rootElement = document.getDocumentElement();
@@ -51,8 +51,8 @@ public class XWidgetParser {
return data;
}
- public static DynamicXWidgetLayoutData extractlayoutData(DynamicXWidgetLayout dynamicXWidgetLayout, String xml) throws OseeCoreException {
- DynamicXWidgetLayoutData data = null;
+ public static XWidgetRendererItem extractlayoutData(SwtXWidgetRenderer dynamicXWidgetLayout, String xml) throws OseeCoreException {
+ XWidgetRendererItem data = null;
try {
Document document = Jaxp.readXmlDocument(xml);
Element rootElement = document.getDocumentElement();
@@ -63,9 +63,9 @@ public class XWidgetParser {
return data;
}
- public static List<DynamicXWidgetLayoutData> extractlayoutDatas(DynamicXWidgetLayout dynamicXWidgetLayout, Element xWidgets) {
- NodeList widgets = xWidgets.getElementsByTagName(DynamicXWidgetLayout.XWIDGET);
- List<DynamicXWidgetLayoutData> layoutDatas = new ArrayList<DynamicXWidgetLayoutData>(widgets.getLength());
+ public static List<XWidgetRendererItem> extractlayoutDatas(SwtXWidgetRenderer dynamicXWidgetLayout, Element xWidgets) {
+ NodeList widgets = xWidgets.getElementsByTagName(SwtXWidgetRenderer.XWIDGET);
+ List<XWidgetRendererItem> layoutDatas = new ArrayList<XWidgetRendererItem>(widgets.getLength());
for (int i = 0; i < widgets.getLength(); i++) {
layoutDatas.add(extractWorkAttribute(dynamicXWidgetLayout, (Element) widgets.item(i)));
@@ -73,11 +73,11 @@ public class XWidgetParser {
return layoutDatas;
}
- public static String toXml(DynamicXWidgetLayoutData data) throws OseeCoreException {
+ public static String toXml(XWidgetRendererItem data) throws OseeCoreException {
String xmlData = null;
try {
Document doc = Jaxp.newDocumentNamespaceAware();
- Element element = doc.createElement(DynamicXWidgetLayout.XWIDGET);
+ Element element = doc.createElement(SwtXWidgetRenderer.XWIDGET);
element.setAttribute("displayName", data.getName());
element.setAttribute("storageName", data.getStoreName());
element.setAttribute("toolTip", data.getToolTip());
@@ -98,8 +98,8 @@ public class XWidgetParser {
return xmlData;
}
- private static DynamicXWidgetLayoutData extractWorkAttribute(DynamicXWidgetLayout dynamicXWidgetLayout, Element widget) {
- DynamicXWidgetLayoutData dynamicXWidgetLayoutData = new DynamicXWidgetLayoutData(dynamicXWidgetLayout);
+ private static XWidgetRendererItem extractWorkAttribute(SwtXWidgetRenderer dynamicXWidgetLayout, Element widget) {
+ XWidgetRendererItem dynamicXWidgetLayoutData = new XWidgetRendererItem(dynamicXWidgetLayout);
// Loop through attributes to ensure all are valid and processed
NamedNodeMap attributes = widget.getAttributes();
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java
index f62f7f8..ba7bbfd 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/parts/AttributeFormPart.java
@@ -39,8 +39,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetUtility;
import org.eclipse.osee.framework.ui.skynet.widgets.util.AttributeXWidgetManager;
import org.eclipse.osee.framework.ui.skynet.widgets.util.DefaultAttributeXWidgetProvider;
import org.eclipse.osee.framework.ui.skynet.widgets.util.DefaultXWidgetOptionResolver;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IAttributeXWidgetProvider;
import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetPage;
import org.eclipse.osee.framework.ui.swt.ALayout;
@@ -196,15 +196,15 @@ public class AttributeFormPart extends AbstractFormPart {
try {
IAttributeXWidgetProvider xWidgetProvider = AttributeXWidgetManager.getAttributeXWidgetProvider(attributeType);
- List<DynamicXWidgetLayoutData> concreteWidgets = xWidgetProvider.getDynamicXWidgetLayoutData(attributeType);
+ List<XWidgetRendererItem> concreteWidgets = xWidgetProvider.getDynamicXWidgetLayoutData(attributeType);
if (isExpandable) {
- for (DynamicXWidgetLayoutData data : concreteWidgets) {
+ for (XWidgetRendererItem data : concreteWidgets) {
data.getXOptionHandler().add(XOption.NO_LABEL);
}
}
XWidgetPage workPage = new XWidgetPage(concreteWidgets, new DefaultXWidgetOptionResolver());
- DynamicXWidgetLayout xWidgetLayout =
+ SwtXWidgetRenderer xWidgetLayout =
workPage.createBody(getManagedForm(), internalComposite, artifact, widgetModifiedListener, isEditable);
Collection<XWidget> xWidgets = xWidgetLayout.getXWidgets();
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java
index ec99886..2ec3dfc 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/AbstractBlam.java
@@ -37,8 +37,8 @@ import org.eclipse.osee.framework.ui.skynet.XWidgetParser;
import org.eclipse.osee.framework.ui.skynet.internal.Activator;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.IDynamicWidgetLayoutListener;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.osgi.framework.Bundle;
@@ -177,25 +177,25 @@ public abstract class AbstractBlam implements IDynamicWidgetLayoutListener {
}
@SuppressWarnings("unused")
- public List<DynamicXWidgetLayoutData> getLayoutDatas() throws IllegalArgumentException, ParserConfigurationException, SAXException, IOException, CoreException {
- return XWidgetParser.extractWorkAttributes(new DynamicXWidgetLayout(), getXWidgetsXml());
+ public List<XWidgetRendererItem> getLayoutDatas() throws IllegalArgumentException, ParserConfigurationException, SAXException, IOException, CoreException {
+ return XWidgetParser.extractWorkAttributes(new SwtXWidgetRenderer(), getXWidgetsXml());
}
@SuppressWarnings("unused")
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
// provided for subclass implementation
}
@SuppressWarnings("unused")
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
// provided for subclass implementation
}
@SuppressWarnings("unused")
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
// provided for subclass implementation
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/EmailGroupsBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/EmailGroupsBlam.java
index c4946cc..0cab0c9 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/EmailGroupsBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/EmailGroupsBlam.java
@@ -44,7 +44,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XText;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
import org.eclipse.osee.framework.ui.skynet.widgets.dialog.HtmlDialog;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
@@ -128,7 +128,7 @@ public class EmailGroupsBlam extends AbstractBlam {
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreating(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals("Groups")) {
groupsList = (XArtifactList) xWidget;
@@ -154,7 +154,7 @@ public class EmailGroupsBlam extends AbstractBlam {
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreated(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals("Preview Message")) {
XButtonPush button = (XButtonPush) xWidget;
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateUserGroupBlam.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateUserGroupBlam.java
index f59d683..c85bbcd 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateUserGroupBlam.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/PopulateUserGroupBlam.java
@@ -32,7 +32,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XArtifactList;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.ui.forms.widgets.FormToolkit;
/**
@@ -80,7 +80,7 @@ public class PopulateUserGroupBlam extends AbstractBlam {
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreating(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals("User Groups")) {
XArtifactList listViewer = (XArtifactList) xWidget;
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/XWidgetPopulateExample.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/XWidgetPopulateExample.java
index 885fb77..a9462b0 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/XWidgetPopulateExample.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/operation/XWidgetPopulateExample.java
@@ -20,7 +20,7 @@ import org.eclipse.osee.framework.ui.skynet.blam.VariableMap;
import org.eclipse.osee.framework.ui.skynet.widgets.XCombo;
import org.eclipse.osee.framework.ui.skynet.widgets.XModifiedListener;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayout;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.SwtXWidgetRenderer;
import org.eclipse.ui.forms.widgets.FormToolkit;
/**
@@ -45,7 +45,7 @@ public class XWidgetPopulateExample extends AbstractBlam {
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener modListener, boolean isEditable) throws OseeCoreException {
super.widgetCreating(xWidget, toolkit, art, dynamicXWidgetLayout, modListener, isEditable);
if (xWidget.getLabel().equals("Select an Option")) {
XCombo combo = (XCombo) xWidget;
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java
index faabb20..77dbf08 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/sections/BlamInputSection.java
@@ -21,7 +21,7 @@ import org.eclipse.osee.framework.ui.skynet.internal.Activator;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
import org.eclipse.osee.framework.ui.skynet.widgets.XWidgetUtility;
import org.eclipse.osee.framework.ui.skynet.widgets.util.DefaultXWidgetOptionResolver;
-import org.eclipse.osee.framework.ui.skynet.widgets.util.DynamicXWidgetLayoutData;
+import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetRendererItem;
import org.eclipse.osee.framework.ui.skynet.widgets.util.XWidgetPage;
import org.eclipse.osee.framework.ui.swt.Widgets;
import org.eclipse.swt.SWT;
@@ -38,7 +38,7 @@ import org.eclipse.ui.forms.widgets.Section;
* @author Roberto E. Escobar
*/
public class BlamInputSection extends BaseBlamSection {
- private final Collection<DynamicXWidgetLayoutData> dynamicInputLayouts = new ArrayList<DynamicXWidgetLayoutData>();
+ private final Collection<XWidgetRendererItem> dynamicInputLayouts = new ArrayList<XWidgetRendererItem>();
public BlamInputSection(FormEditor editor, AbstractBlam abstractBlam, Composite parent, FormToolkit toolkit, int style) {
super(editor, abstractBlam, parent, toolkit, style);
@@ -88,7 +88,7 @@ public class BlamInputSection extends BaseBlamSection {
private void createWidgets(Composite parent) {
try {
- List<DynamicXWidgetLayoutData> layoutDatas = getDynamicXWidgetLayouts();
+ List<XWidgetRendererItem> layoutDatas = getDynamicXWidgetLayouts();
XWidgetPage workPage = new XWidgetPage(layoutDatas, new DefaultXWidgetOptionResolver(), getAbstractBlam());
workPage.createBody(getManagedForm(), parent, null, null, true);
} catch (Exception ex) {
@@ -96,8 +96,8 @@ public class BlamInputSection extends BaseBlamSection {
}
}
- private List<DynamicXWidgetLayoutData> getDynamicXWidgetLayouts() throws Exception {
- List<DynamicXWidgetLayoutData> itemsToReturn = new ArrayList<DynamicXWidgetLayoutData>();
+ private List<XWidgetRendererItem> getDynamicXWidgetLayouts() throws Exception {
+ List<XWidgetRendererItem> itemsToReturn = new ArrayList<XWidgetRendererItem>();
itemsToReturn.addAll(getAbstractBlam().getLayoutDatas());
itemsToReturn.addAll(dynamicInputLayouts);
return itemsToReturn;
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/AttributeXWidgetManager.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/AttributeXWidgetManager.java
index 3aa9db4..a925ab8 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/AttributeXWidgetManager.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/AttributeXWidgetManager.java
@@ -40,7 +40,7 @@ public class AttributeXWidgetManager {
public static IAttributeXWidgetProvider getAttributeXWidgetProvider(IAttributeType attributeType) throws OseeCoreException {
for (IAttributeXWidgetProvider provider : instance.getProviders()) {
- List<DynamicXWidgetLayoutData> datas = provider.getDynamicXWidgetLayoutData(attributeType);
+ List<XWidgetRendererItem> datas = provider.getDynamicXWidgetLayoutData(attributeType);
if (!datas.isEmpty()) {
return provider;
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultAttributeXWidgetProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultAttributeXWidgetProvider.java
index 798b10b..ec026e3 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultAttributeXWidgetProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultAttributeXWidgetProvider.java
@@ -29,8 +29,8 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XOption;
*/
public class DefaultAttributeXWidgetProvider implements IAttributeXWidgetProvider {
- private DynamicXWidgetLayoutData createDynamicXWidgetLayout(IAttributeType attributeType, int minOccurrence) {
- DynamicXWidgetLayoutData defaultData = new DynamicXWidgetLayoutData(null);
+ private XWidgetRendererItem createDynamicXWidgetLayout(IAttributeType attributeType, int minOccurrence) {
+ XWidgetRendererItem defaultData = new XWidgetRendererItem(null);
defaultData.setName(attributeType.getName());
defaultData.setStoreName(attributeType.getName());
defaultData.setToolTip(attributeType.getDescription());
@@ -46,10 +46,10 @@ public class DefaultAttributeXWidgetProvider implements IAttributeXWidgetProvide
}
@Override
- public List<DynamicXWidgetLayoutData> getDynamicXWidgetLayoutData(IAttributeType attributeType) throws OseeCoreException {
- List<DynamicXWidgetLayoutData> xWidgetLayoutData = new ArrayList<DynamicXWidgetLayoutData>();
+ public List<XWidgetRendererItem> getDynamicXWidgetLayoutData(IAttributeType attributeType) throws OseeCoreException {
+ List<XWidgetRendererItem> xWidgetLayoutData = new ArrayList<XWidgetRendererItem>();
- DynamicXWidgetLayoutData defaultData =
+ XWidgetRendererItem defaultData =
createDynamicXWidgetLayout(attributeType, AttributeTypeManager.getMinOccurrences(attributeType));
xWidgetLayoutData.add(defaultData);
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultXWidgetOptionResolver.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultXWidgetOptionResolver.java
index b01d57b..6b696df 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultXWidgetOptionResolver.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DefaultXWidgetOptionResolver.java
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
public class DefaultXWidgetOptionResolver implements IXWidgetOptionResolver {
@Override
- public String[] getWidgetOptions(DynamicXWidgetLayoutData xWidgetData) {
+ public String[] getWidgetOptions(XWidgetRendererItem xWidgetData) {
Matcher m = Pattern.compile("\\((.*?)\\)$").matcher(xWidgetData.getXWidgetName());
if (m.find()) {
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/FrameworkXWidgetProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/FrameworkXWidgetProvider.java
index b651926..3da1059 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/FrameworkXWidgetProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/FrameworkXWidgetProvider.java
@@ -100,13 +100,13 @@ public final class FrameworkXWidgetProvider {
IAttributeType attributeType = AttributeTypeManager.getType(attributeTypeName);
if (attributeType != null) {
IAttributeXWidgetProvider xWidgetProvider = AttributeXWidgetManager.getAttributeXWidgetProvider(attributeType);
- List<DynamicXWidgetLayoutData> concreteWidgets = xWidgetProvider.getDynamicXWidgetLayoutData(attributeType);
+ List<XWidgetRendererItem> concreteWidgets = xWidgetProvider.getDynamicXWidgetLayoutData(attributeType);
return concreteWidgets.iterator().next().getXWidgetName();
}
return null;
}
- public XWidget createXWidget(DynamicXWidgetLayoutData xWidgetLayoutData) throws OseeCoreException {
+ public XWidget createXWidget(XWidgetRendererItem xWidgetLayoutData) throws OseeCoreException {
String xWidgetName = xWidgetLayoutData.getXWidgetName();
String name = xWidgetLayoutData.getName();
XWidget xWidget = null;
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IAttributeXWidgetProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IAttributeXWidgetProvider.java
index b1abbd4..33622a6 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IAttributeXWidgetProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IAttributeXWidgetProvider.java
@@ -23,5 +23,5 @@ public interface IAttributeXWidgetProvider {
/**
* Return widget layout data or empty list if this provider doesn't provide for this attribute type
*/
- public List<DynamicXWidgetLayoutData> getDynamicXWidgetLayoutData(IAttributeType attributeType) throws OseeCoreException;
+ public List<XWidgetRendererItem> getDynamicXWidgetLayoutData(IAttributeType attributeType) throws OseeCoreException;
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IDynamicWidgetLayoutListener.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IDynamicWidgetLayoutListener.java
index 56fd174..2f67388 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IDynamicWidgetLayoutListener.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IDynamicWidgetLayoutListener.java
@@ -21,10 +21,10 @@ import org.eclipse.ui.forms.widgets.FormToolkit;
*/
public interface IDynamicWidgetLayoutListener {
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException;
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException;
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException;
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException;
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException;
+ public void createXWidgetLayoutData(XWidgetRendererItem layoutData, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException;
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetOptionResolver.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetOptionResolver.java
index ea4551b..33f0b9e 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetOptionResolver.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetOptionResolver.java
@@ -15,6 +15,6 @@ package org.eclipse.osee.framework.ui.skynet.widgets.util;
*/
public interface IXWidgetOptionResolver {
- public String[] getWidgetOptions(DynamicXWidgetLayoutData xWidgetData);
+ public String[] getWidgetOptions(XWidgetRendererItem xWidgetData);
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetProvider.java
index 88146e4..49f846f 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/IXWidgetProvider.java
@@ -17,6 +17,6 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
*/
public interface IXWidgetProvider {
- public XWidget createXWidget(String xWidgetName, String name, DynamicXWidgetLayoutData xWidgetLayoutData);
+ public XWidget createXWidget(String xWidgetName, String name, XWidgetRendererItem xWidgetLayoutData);
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DynamicXWidgetLayout.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/SwtXWidgetRenderer.java
index 15056b9..3862ad5 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DynamicXWidgetLayout.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/SwtXWidgetRenderer.java
@@ -53,12 +53,12 @@ import org.w3c.dom.Element;
/**
* @author Jeff C. Phillips
*/
-public class DynamicXWidgetLayout {
+public class SwtXWidgetRenderer {
public static final String XWIDGET = "XWidget";
- private final Set<DynamicXWidgetLayoutData> datas = new LinkedHashSet<DynamicXWidgetLayoutData>();
- private final Map<String, DynamicXWidgetLayoutData> nameToLayoutData =
- new HashMap<String, DynamicXWidgetLayoutData>();
+ private final Set<XWidgetRendererItem> datas = new LinkedHashSet<XWidgetRendererItem>();
+ private final Map<String, XWidgetRendererItem> nameToLayoutData =
+ new HashMap<String, XWidgetRendererItem>();
private final Collection<ArrayList<String>> orRequired = new ArrayList<ArrayList<String>>();
private final Collection<ArrayList<String>> xorRequired = new ArrayList<ArrayList<String>>();
@@ -67,11 +67,11 @@ public class DynamicXWidgetLayout {
private final IXWidgetOptionResolver optionResolver;
private final Collection<XWidget> xWidgets = new ArrayList<XWidget>();
- public DynamicXWidgetLayout() {
+ public SwtXWidgetRenderer() {
this(null, new DefaultXWidgetOptionResolver());
}
- public DynamicXWidgetLayout(IDynamicWidgetLayoutListener dynamicWidgetLayoutListener, IXWidgetOptionResolver optionResolver) {
+ public SwtXWidgetRenderer(IDynamicWidgetLayoutListener dynamicWidgetLayoutListener, IXWidgetOptionResolver optionResolver) {
this.dynamicWidgetLayoutListener = dynamicWidgetLayoutListener;
this.optionResolver = optionResolver;
}
@@ -99,7 +99,7 @@ public class DynamicXWidgetLayout {
Composite childComp = null;
Group groupComp = null;
// Create Attributes
- for (DynamicXWidgetLayoutData xWidgetLayoutData : getLayoutDatas()) {
+ for (XWidgetRendererItem xWidgetLayoutData : getLayoutDatas()) {
Composite useComp = attrComp;
GridData gd = new GridData();
@@ -253,7 +253,7 @@ public class DynamicXWidgetLayout {
@Override
public void run() {
try {
- for (DynamicXWidgetLayoutData xWidgetLayoutData : getLayoutDatas()) {
+ for (XWidgetRendererItem xWidgetLayoutData : getLayoutDatas()) {
xWidgetLayoutData.getXWidget().validate();
}
refreshOrAndXOrRequiredFlags();
@@ -285,7 +285,7 @@ public class DynamicXWidgetLayout {
// If group is complete, change all to black, else all red
boolean isComplete = isOrGroupFromAttrNameComplete(orReq.iterator().next());
for (String aName : orReq) {
- DynamicXWidgetLayoutData layoutData = getLayoutData(aName);
+ XWidgetRendererItem layoutData = getLayoutData(aName);
Label label = layoutData.getXWidget().getLabelWidget();
if (label != null && !label.isDisposed()) {
label.setForeground(isComplete ? null : Displays.getSystemColor(SWT.COLOR_RED));
@@ -297,7 +297,7 @@ public class DynamicXWidgetLayout {
// If group is complete, change all to black, else all red
boolean isComplete = isXOrGroupFromAttrNameComplete(xorReq.iterator().next());
for (String aName : xorReq) {
- DynamicXWidgetLayoutData layoutData = getLayoutData(aName);
+ XWidgetRendererItem layoutData = getLayoutData(aName);
Label label = layoutData.getXWidget().getLabelWidget();
if (label != null && !label.isDisposed()) {
label.setForeground(isComplete ? null : Displays.getSystemColor(SWT.COLOR_RED));
@@ -308,7 +308,7 @@ public class DynamicXWidgetLayout {
public IStatus isPageComplete() {
try {
- for (DynamicXWidgetLayoutData data : datas) {
+ for (XWidgetRendererItem data : datas) {
IStatus valid = data.getXWidget().isValid();
if (!valid.isOK()) {
// Check to see if widget is part of a completed OR or XOR group
@@ -323,28 +323,28 @@ public class DynamicXWidgetLayout {
return Status.OK_STATUS;
}
- public Set<DynamicXWidgetLayoutData> getLayoutDatas() {
+ public Set<XWidgetRendererItem> getLayoutDatas() {
return datas;
}
- public void setLayoutDatas(List<DynamicXWidgetLayoutData> datas) {
+ public void setLayoutDatas(List<XWidgetRendererItem> datas) {
this.datas.clear();
- for (DynamicXWidgetLayoutData data : datas) {
+ for (XWidgetRendererItem data : datas) {
data.setDynamicXWidgetLayout(this);
this.datas.add(data);
}
}
- public void addWorkLayoutDatas(List<DynamicXWidgetLayoutData> datas) {
+ public void addWorkLayoutDatas(List<XWidgetRendererItem> datas) {
this.datas.addAll(datas);
}
- public void addWorkLayoutData(DynamicXWidgetLayoutData data) {
+ public void addWorkLayoutData(XWidgetRendererItem data) {
this.datas.add(data);
}
- public DynamicXWidgetLayoutData getLayoutData(String attrName) {
- for (DynamicXWidgetLayoutData layoutData : datas) {
+ public XWidgetRendererItem getLayoutData(String attrName) {
+ for (XWidgetRendererItem layoutData : datas) {
if (layoutData.getStoreName().equals(attrName)) {
return layoutData;
}
@@ -384,7 +384,7 @@ public class DynamicXWidgetLayout {
*/
public boolean isOrGroupFromAttrNameComplete(String name) throws OseeCoreException {
for (String aName : getOrRequiredGroup(name)) {
- DynamicXWidgetLayoutData layoutData = getLayoutData(aName);
+ XWidgetRendererItem layoutData = getLayoutData(aName);
if (layoutData.getXWidget() != null && layoutData.getXWidget().isValid().isOK()) {
return true;
}
@@ -398,7 +398,7 @@ public class DynamicXWidgetLayout {
public boolean isXOrGroupFromAttrNameComplete(String attrName) throws OseeCoreException {
boolean oneFound = false;
for (String aName : getXOrRequiredGroup(attrName)) {
- DynamicXWidgetLayoutData layoutData = getLayoutData(aName);
+ XWidgetRendererItem layoutData = getLayoutData(aName);
if (layoutData.getXWidget() != null && layoutData.getXWidget().isValid().isOK()) {
// If already found one, return false
if (oneFound) {
@@ -436,8 +436,8 @@ public class DynamicXWidgetLayout {
Document document = Jaxp.readXmlDocument(xWidgetXml);
Element rootElement = document.getDocumentElement();
- List<DynamicXWidgetLayoutData> attrs = XWidgetParser.extractlayoutDatas(this, rootElement);
- for (DynamicXWidgetLayoutData attr : attrs) {
+ List<XWidgetRendererItem> attrs = XWidgetParser.extractlayoutDatas(this, rootElement);
+ for (XWidgetRendererItem attr : attrs) {
nameToLayoutData.put(attr.getName(), attr);
datas.add(attr);
}
@@ -447,8 +447,8 @@ public class DynamicXWidgetLayout {
}
public void processLayoutDatas(Element element) {
- List<DynamicXWidgetLayoutData> layoutDatas = XWidgetParser.extractlayoutDatas(this, element);
- for (DynamicXWidgetLayoutData layoutData : layoutDatas) {
+ List<XWidgetRendererItem> layoutDatas = XWidgetParser.extractlayoutDatas(this, element);
+ for (XWidgetRendererItem layoutData : layoutDatas) {
nameToLayoutData.put(layoutData.getName(), layoutData);
datas.add(layoutData);
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetPage.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetPage.java
index d26a487..15e7673 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetPage.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetPage.java
@@ -35,13 +35,13 @@ import org.w3c.dom.Element;
*/
public class XWidgetPage implements IDynamicWidgetLayoutListener {
- protected DynamicXWidgetLayout dynamicXWidgetLayout;
+ protected SwtXWidgetRenderer dynamicXWidgetLayout;
private XWidgetPage(IXWidgetOptionResolver optionResolver, IDynamicWidgetLayoutListener dynamicWidgetLayoutListener) {
if (dynamicWidgetLayoutListener == null) {
- dynamicXWidgetLayout = new DynamicXWidgetLayout(this, optionResolver);
+ dynamicXWidgetLayout = new SwtXWidgetRenderer(this, optionResolver);
} else {
- dynamicXWidgetLayout = new DynamicXWidgetLayout(dynamicWidgetLayoutListener, optionResolver);
+ dynamicXWidgetLayout = new SwtXWidgetRenderer(dynamicWidgetLayoutListener, optionResolver);
}
}
@@ -59,12 +59,12 @@ public class XWidgetPage implements IDynamicWidgetLayoutListener {
}
}
- public XWidgetPage(List<DynamicXWidgetLayoutData> datas, IXWidgetOptionResolver optionResolver, IDynamicWidgetLayoutListener dynamicWidgetLayoutListener) {
+ public XWidgetPage(List<XWidgetRendererItem> datas, IXWidgetOptionResolver optionResolver, IDynamicWidgetLayoutListener dynamicWidgetLayoutListener) {
this(optionResolver, dynamicWidgetLayoutListener);
dynamicXWidgetLayout.setLayoutDatas(datas);
}
- public XWidgetPage(List<DynamicXWidgetLayoutData> datas, IXWidgetOptionResolver optionResolver) {
+ public XWidgetPage(List<XWidgetRendererItem> datas, IXWidgetOptionResolver optionResolver) {
this(datas, optionResolver, null);
}
@@ -88,23 +88,23 @@ public class XWidgetPage implements IDynamicWidgetLayoutListener {
@SuppressWarnings("unused")
@Override
- public void createXWidgetLayoutData(DynamicXWidgetLayoutData workAttr, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
+ public void createXWidgetLayoutData(XWidgetRendererItem workAttr, XWidget xWidget, FormToolkit toolkit, Artifact art, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
// provided for subclass implementation
}
@Override
- public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreated(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
widgetCreated(xWidget, toolkit, art, this, xModListener, isEditable);
}
@Override
- public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, DynamicXWidgetLayout dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
+ public void widgetCreating(XWidget xWidget, FormToolkit toolkit, Artifact art, SwtXWidgetRenderer dynamicXWidgetLayout, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
widgetCreating(xWidget, toolkit, art, this, xModListener, isEditable);
}
public void dispose() {
try {
- for (DynamicXWidgetLayoutData layoutData : getlayoutDatas()) {
+ for (XWidgetRendererItem layoutData : getlayoutDatas()) {
layoutData.getXWidget().dispose();
}
} catch (OseeCoreException ex) {
@@ -112,14 +112,14 @@ public class XWidgetPage implements IDynamicWidgetLayoutListener {
}
}
- public DynamicXWidgetLayout createBody(IManagedForm managedForm, Composite parent, Artifact artifact, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
+ public SwtXWidgetRenderer createBody(IManagedForm managedForm, Composite parent, Artifact artifact, XModifiedListener xModListener, boolean isEditable) throws OseeCoreException {
dynamicXWidgetLayout.createBody(managedForm, parent, artifact, xModListener, isEditable);
return dynamicXWidgetLayout;
}
public Result isPageComplete() {
try {
- for (DynamicXWidgetLayoutData layoutData : dynamicXWidgetLayout.getLayoutDatas()) {
+ for (XWidgetRendererItem layoutData : dynamicXWidgetLayout.getLayoutDatas()) {
if (!layoutData.getXWidget().isValid().isOK()) {
// Check to see if widget is part of a completed OR or XOR group
if (!dynamicXWidgetLayout.isOrGroupFromAttrNameComplete(layoutData.getStoreName()) && !dynamicXWidgetLayout.isXOrGroupFromAttrNameComplete(layoutData.getStoreName())) {
@@ -133,19 +133,19 @@ public class XWidgetPage implements IDynamicWidgetLayoutListener {
return Result.TrueResult;
}
- public Set<DynamicXWidgetLayoutData> getlayoutDatas() {
+ public Set<XWidgetRendererItem> getlayoutDatas() {
return dynamicXWidgetLayout.getLayoutDatas();
}
- public void addLayoutDatas(List<DynamicXWidgetLayoutData> datas) {
+ public void addLayoutDatas(List<XWidgetRendererItem> datas) {
dynamicXWidgetLayout.addWorkLayoutDatas(datas);
}
- public void addLayoutData(DynamicXWidgetLayoutData data) {
+ public void addLayoutData(XWidgetRendererItem data) {
dynamicXWidgetLayout.addWorkLayoutData(data);
}
- public DynamicXWidgetLayoutData getLayoutData(String layoutName) {
+ public XWidgetRendererItem getLayoutData(String layoutName) {
return dynamicXWidgetLayout.getLayoutData(layoutName);
}
@@ -161,7 +161,7 @@ public class XWidgetPage implements IDynamicWidgetLayoutListener {
dynamicXWidgetLayout.processLayoutDatas(element);
}
- public DynamicXWidgetLayout getDynamicXWidgetLayout() {
+ public SwtXWidgetRenderer getDynamicXWidgetLayout() {
return dynamicXWidgetLayout;
}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DynamicXWidgetLayoutData.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetRendererItem.java
index 8fae53f..2f375b7 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/DynamicXWidgetLayoutData.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/util/XWidgetRendererItem.java
@@ -19,7 +19,7 @@ import org.eclipse.osee.framework.ui.skynet.widgets.XWidget;
/**
* @author Donald G. Dunne
*/
-public class DynamicXWidgetLayoutData implements Cloneable {
+public class XWidgetRendererItem implements Cloneable {
private static final FrameworkXWidgetProvider xWidgetFactory = FrameworkXWidgetProvider.getInstance();
private static final String UNKNOWN = "Unknown";
@@ -36,14 +36,14 @@ public class DynamicXWidgetLayoutData implements Cloneable {
private boolean endComposite, endGroupComposite; // indicated end of child composite
private int height = DEFAULT_HEIGHT;
private String toolTip;
- private DynamicXWidgetLayout dynamicXWidgetLayout;
+ private SwtXWidgetRenderer dynamicXWidgetLayout;
private String defaultValue;
private String keyedBranchName;
private final XOptionHandler xOptionHandler = new XOptionHandler();
private Artifact artifact;
private Object object;
- public DynamicXWidgetLayoutData(DynamicXWidgetLayout dynamicXWidgetLayout, XOption... xOption) {
+ public XWidgetRendererItem(SwtXWidgetRenderer dynamicXWidgetLayout, XOption... xOption) {
this.dynamicXWidgetLayout = dynamicXWidgetLayout;
xOptionHandler.add(XOption.EDITABLE);
xOptionHandler.add(XOption.ALIGN_LEFT);
@@ -190,7 +190,7 @@ public class DynamicXWidgetLayoutData implements Cloneable {
this.toolTip = toolTip;
}
- public DynamicXWidgetLayout getDynamicXWidgetLayout() {
+ public SwtXWidgetRenderer getDynamicXWidgetLayout() {
return dynamicXWidgetLayout;
}
@@ -206,7 +206,7 @@ public class DynamicXWidgetLayoutData implements Cloneable {
return keyedBranchName;
}
- public void setDynamicXWidgetLayout(DynamicXWidgetLayout dynamicXWidgetLayout) {
+ public void setDynamicXWidgetLayout(SwtXWidgetRenderer dynamicXWidgetLayout) {
this.dynamicXWidgetLayout = dynamicXWidgetLayout;
}