Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2008-11-28 18:40:53 +0000
committerddunne2008-11-28 18:40:53 +0000
commit152b25e3eef3093cd4482dabe019e2fd0ff727f0 (patch)
tree8504f402eacef35d822da1d21834cd97d5dcc4a3 /org.eclipse.osee.framework.ui.skynet
parentf08ac8e3afde445545bf89223ce4397450fa109b (diff)
downloadorg.eclipse.osee-152b25e3eef3093cd4482dabe019e2fd0ff727f0.tar.gz
org.eclipse.osee-152b25e3eef3093cd4482dabe019e2fd0ff727f0.tar.xz
org.eclipse.osee-152b25e3eef3093cd4482dabe019e2fd0ff727f0.zip
Diffstat (limited to 'org.eclipse.osee.framework.ui.skynet')
-rw-r--r--org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPromptChange.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPromptChange.java b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPromptChange.java
index aae8baf557d..2b8fc1e2d91 100644
--- a/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPromptChange.java
+++ b/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/ArtifactPromptChange.java
@@ -74,21 +74,21 @@ public class ArtifactPromptChange {
}
public static boolean promptChangeIntegerAttribute(String attributeName, String displayName, final Collection<? extends Artifact> artifacts, boolean persist) throws Exception {
- return promptChangeStringAttribute(attributeName, displayName, VALID_INTEGER_REG_EX, artifacts, persist);
+ return promptChangeStringAttribute(attributeName, displayName, VALID_INTEGER_REG_EX, artifacts, persist, false);
}
public static boolean promptChangeIntegerAttribute(String attributeName, String displayName, final Artifact artifact, boolean persist) throws Exception {
return promptChangeStringAttribute(attributeName, displayName, VALID_INTEGER_REG_EX, Arrays.asList(artifact),
- persist);
+ persist, false);
}
public static boolean promptChangePercentAttribute(String attributeName, String displayName, final Artifact artifact, boolean persist) throws Exception {
return promptChangeStringAttribute(attributeName, displayName, VALID_PERCENT_REG_EX, Arrays.asList(artifact),
- persist);
+ persist, false);
}
public static boolean promptChangePercentAttribute(String attributeName, String displayName, final Collection<? extends Artifact> artifacts, boolean persist) throws Exception {
- return promptChangeStringAttribute(attributeName, displayName, VALID_PERCENT_REG_EX, artifacts, persist);
+ return promptChangeStringAttribute(attributeName, displayName, VALID_PERCENT_REG_EX, artifacts, persist, false);
}
public static boolean promptChangeFloatAttribute(String attributeName, String displayName, final Artifact artifact, boolean persist) throws Exception {
@@ -96,15 +96,15 @@ public class ArtifactPromptChange {
}
public static boolean promptChangeFloatAttribute(String attributeName, String displayName, final Collection<? extends Artifact> smas, boolean persist) throws Exception {
- return promptChangeStringAttribute(attributeName, displayName, VALID_FLOAT_REG_EX, smas, persist);
+ return promptChangeStringAttribute(attributeName, displayName, VALID_FLOAT_REG_EX, smas, persist, false);
}
public static boolean promptChangeStringAttribute(String attributeName, String displayName, final Artifact artifact, boolean persist) throws Exception {
- return promptChangeStringAttribute(attributeName, displayName, null, Arrays.asList(artifact), persist);
+ return promptChangeStringAttribute(attributeName, displayName, null, Arrays.asList(artifact), persist, true);
}
public static boolean promptChangeStringAttribute(String attributeName, String displayName, final Collection<? extends Artifact> smas, boolean persist) throws Exception {
- return promptChangeStringAttribute(attributeName, displayName, null, smas, persist);
+ return promptChangeStringAttribute(attributeName, displayName, null, smas, persist, true);
}
public static boolean promptChangeDate(String attributeName, String displayName, Artifact artifact, boolean persist) throws Exception {
@@ -166,11 +166,11 @@ public class ArtifactPromptChange {
return true;
}
- public static boolean promptChangeStringAttribute(String attributeName, String displayName, String validationRegEx, final Collection<? extends Artifact> smas, boolean persist) throws OseeCoreException {
+ public static boolean promptChangeStringAttribute(String attributeName, String displayName, String validationRegEx, final Collection<? extends Artifact> smas, boolean persist, boolean multiLine) throws OseeCoreException {
EntryDialog ed =
new EntryDialog(Display.getCurrent().getActiveShell(), "Enter " + displayName, null,
"Enter " + displayName, MessageDialog.QUESTION, new String[] {"OK", "Clear", "Cancel"}, 0);
- ed.setFillVertically(true);
+ ed.setFillVertically(multiLine);
if (smas.size() == 1) {
try {
Object obj = smas.iterator().next().getSoleAttributeValue(attributeName);

Back to the top