Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2017-05-15 11:21:45 -0400
committerMegumi Telles2017-05-16 09:36:51 -0400
commited8ec4c7f6e371844659cefc8c948b501f88d979 (patch)
tree0d667ef5c38db694b0e3eb27dbf6bfb492f849f7
parent61f184fc3d9aa7f8dbe4ab454e3d16675500b946 (diff)
downloadorg.eclipse.osee-ed8ec4c7f6e371844659cefc8c948b501f88d979.tar.gz
org.eclipse.osee-ed8ec4c7f6e371844659cefc8c948b501f88d979.tar.xz
org.eclipse.osee-ed8ec4c7f6e371844659cefc8c948b501f88d979.zip
feature[ats_ATS374964]: Add disable/enable of hyperlink labels
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XHyperlinkLabelCmdValueSelection.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XHyperlinkLabelCmdValueSelection.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XHyperlinkLabelCmdValueSelection.java
index 3ffbc3a0f9..515ef90394 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XHyperlinkLabelCmdValueSelection.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XHyperlinkLabelCmdValueSelection.java
@@ -191,4 +191,22 @@ public abstract class XHyperlinkLabelCmdValueSelection extends GenericXWidget {
public void setTruncateValueLength(Integer truncateValueLength) {
this.truncateValueLength = truncateValueLength;
}
+
+ public void setDisableHyperLink() {
+ if (selectHyperLinkLabel != null && !selectHyperLinkLabel.isDisposed()) {
+ selectHyperLinkLabel.setEnabled(false);
+ }
+ if (clearHyperLinkLabel != null && !clearHyperLinkLabel.isDisposed()) {
+ clearHyperLinkLabel.setEnabled(false);
+ }
+ }
+
+ public void setEnableHyperLink() {
+ if (selectHyperLinkLabel != null && !selectHyperLinkLabel.isDisposed()) {
+ selectHyperLinkLabel.setEnabled(true);
+ }
+ if (clearHyperLinkLabel != null && !clearHyperLinkLabel.isDisposed()) {
+ clearHyperLinkLabel.setEnabled(true);
+ }
+ }
}

Back to the top