summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshawn.f.cook2011-11-01 16:00:25 (EDT)
committer Roberto E. Escobar2011-11-01 16:00:25 (EDT)
commitaee78e3b11869af0285919ae0e5dbefc6908d47b (patch)
treea43d253c4cea770e9fe07cc64664be632c5b756e
parent01fcb91720f4f8134067f7d1d0cc5f33f6feb83f (diff)
downloadorg.eclipse.osee-aee78e3b11869af0285919ae0e5dbefc6908d47b.zip
org.eclipse.osee-aee78e3b11869af0285919ae0e5dbefc6908d47b.tar.gz
org.eclipse.osee-aee78e3b11869af0285919ae0e5dbefc6908d47b.tar.bz2
feature[ats_18K4T]: RelationComp no longer disables empty lists
-rw-r--r--plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java
index 4d4b8db..9bbbc8f 100644
--- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java
+++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeRelationsComponent.java
@@ -98,7 +98,7 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
if (!lockRelsListener) {
try {
ViewArtifact artifact = (ViewArtifact) leftSelect.getValue();
- handleValue(artifact);
+ selectArtifact(artifact);
} catch (Exception e) {
ComponentUtility.logError(
"OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.",
@@ -114,7 +114,7 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
if (!lockRelsListener) {
try {
ViewArtifact artifact = (ViewArtifact) rightSelect.getValue();
- handleValue(artifact);
+ selectArtifact(artifact);
} catch (Exception e) {
ComponentUtility.logError(
"OseeRelationsComponent.createLayout - CRITICAL ERROR: (WebArtifact) relationsListSelect.getValue() threw an exception.",
@@ -170,7 +170,7 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
setExpandRatio(listBoxesLayout, 1.0f);
}
- private void handleValue(ViewArtifact artifact) {
+ private void selectArtifact(ViewArtifact artifact) {
if (artifact != null) {
String url = ComponentUtility.getUrl(OseeRelationsComponent.this);
SearchPresenter<?, ?> presenter = ComponentUtility.getPresenter(OseeRelationsComponent.this);
@@ -194,7 +194,6 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
@Override
public void addRelationType(ViewId id) {
if (id == null) {
- relTypesSelect.setEnabled(false);
relTypesSelect.removeAllItems();
relTypesSelect.setWidth(LISTBOX_MINWIDTH, UNITS_PIXELS);
} else {
@@ -230,7 +229,6 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
@Override
public void addLeftRelated(ViewArtifact id) {
if (id == null) {
- leftSelect.setEnabled(false);
leftSelect.removeAllItems();
leftSelect.setWidth(LISTBOX_MINWIDTH, UNITS_PIXELS);
} else {
@@ -247,7 +245,6 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
@Override
public void addRightRelated(ViewArtifact id) {
if (id == null) {
- rightSelect.setEnabled(false);
rightSelect.removeAllItems();
rightSelect.setWidth(LISTBOX_MINWIDTH, UNITS_PIXELS);
} else {
@@ -264,10 +261,8 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
@Override
public void setLeftName(String name) {
if (name == null) {
- leftSelect.setEnabled(false);
leftTitle.setValue("");
} else {
- leftSelect.setEnabled(true);
leftTitle.setValue(name);
}
}
@@ -275,10 +270,8 @@ public class OseeRelationsComponent extends VerticalLayout implements RelationCo
@Override
public void setRightName(String name) {
if (name == null) {
- rightSelect.setEnabled(false);
rightTitle.setValue("");
} else {
- rightSelect.setEnabled(true);
rightTitle.setValue(name);
}
}