Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-08-30 18:46:03 +0000
committerRyan D. Brooks2011-08-30 18:46:03 +0000
commitf239db44fd61f0afd57944c26557642ab163abf8 (patch)
tree377e61135ea78a99d9e54152952373ad29439ca1 /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src
parent869c59acf3418cd8c1e7a68744fa8c766fde0502 (diff)
downloadorg.eclipse.osee-f239db44fd61f0afd57944c26557642ab163abf8.tar.gz
org.eclipse.osee-f239db44fd61f0afd57944c26557642ab163abf8.tar.xz
org.eclipse.osee-f239db44fd61f0afd57944c26557642ab163abf8.zip
feature[ats_M1Y56]: Change to OseeTypeDefinition attribute to UriGeneralString type
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslTypeSheetRenderer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslTypeSheetRenderer.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslTypeSheetRenderer.java
index 49f22c950c8..5214f3796de 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslTypeSheetRenderer.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslTypeSheetRenderer.java
@@ -30,6 +30,7 @@ import org.eclipse.osee.framework.skynet.core.types.IArtifact;
import org.eclipse.osee.framework.ui.skynet.render.DefaultArtifactRenderer;
import org.eclipse.osee.framework.ui.skynet.render.FileSystemRenderer;
import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
+import org.eclipse.osee.framework.ui.skynet.render.WholeAttributeUpdateOperation;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.swt.program.Program;
import org.eclipse.ui.IWorkbench;
@@ -110,7 +111,7 @@ public class OseeDslTypeSheetRenderer extends FileSystemRenderer {
public InputStream getRenderInputStream(PresentationType presentationType, List<Artifact> artifacts) throws OseeCoreException {
Artifact artifact = artifacts.iterator().next();
StringBuilder builder = new StringBuilder();
- builder.append(artifact.getSoleAttributeValueAsString(CoreAttributeTypes.GeneralStringData, ""));
+ builder.append(artifact.getSoleAttributeValueAsString(CoreAttributeTypes.UriGeneralStringData, ""));
InputStream inputStream = null;
try {
inputStream = new ByteArrayInputStream(builder.toString().getBytes("UTF-8"));
@@ -127,7 +128,7 @@ public class OseeDslTypeSheetRenderer extends FileSystemRenderer {
@Override
protected IOperation getUpdateOperation(File file, List<Artifact> artifacts, Branch branch, PresentationType presentationType) {
- return null;
+ return new WholeAttributeUpdateOperation(file, artifacts.get(0), CoreAttributeTypes.UriGeneralStringData);
}
}

Back to the top