Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-08-29 01:02:11 -0400
committerrbrooks2010-08-29 01:02:11 -0400
commit5a4058affbff23e1fad7c559eeb691161ea94b57 (patch)
tree709ca8587ec038ecdd4bfbcaff50bb6379e2fa6a /plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework
parentc850774504ad977892dfece2dc330ab769b234f1 (diff)
downloadorg.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.tar.gz
org.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.tar.xz
org.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.zip
Eclipse source cleanup and format
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework')
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ArtifactTypeCacheUpdateResponse.java6
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchRow.java10
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/OseeEnumTypeCacheUpdateResponse.java12
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java14
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java17
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java11
6 files changed, 54 insertions, 16 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ArtifactTypeCacheUpdateResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ArtifactTypeCacheUpdateResponse.java
index 8f99874a78..e24474507d 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ArtifactTypeCacheUpdateResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ArtifactTypeCacheUpdateResponse.java
@@ -91,7 +91,11 @@ public class ArtifactTypeCacheUpdateResponse {
}
public String[] toArray() {
- return new String[] {String.valueOf(getId()), getGuid(), getName(), String.valueOf(isAbstract()),
+ return new String[] {
+ String.valueOf(getId()),
+ getGuid(),
+ getName(),
+ String.valueOf(isAbstract()),
getStorageState().name()};
}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchRow.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchRow.java
index f66cc1738a..4385ad2f8f 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchRow.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchRow.java
@@ -70,8 +70,14 @@ public final class BranchRow {
}
public String[] toArray() {
- return new String[] {getBranchArchived().name(), getBranchGuid(), String.valueOf(getBranchId()), getBranchName(),
- getBranchState().name(), getBranchType().name(), getStorageState().name()};
+ return new String[] {
+ getBranchArchived().name(),
+ getBranchGuid(),
+ String.valueOf(getBranchId()),
+ getBranchName(),
+ getBranchState().name(),
+ getBranchType().name(),
+ getStorageState().name()};
}
public static BranchRow fromArray(String[] data) {
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/OseeEnumTypeCacheUpdateResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/OseeEnumTypeCacheUpdateResponse.java
index 1db6306605..bfbfafd2f5 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/OseeEnumTypeCacheUpdateResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/OseeEnumTypeCacheUpdateResponse.java
@@ -42,10 +42,16 @@ public class OseeEnumTypeCacheUpdateResponse {
List<String[]> enumTypeRows = new ArrayList<String[]>();
List<String[]> enumEntryRows = new ArrayList<String[]>();
for (OseeEnumType type : types) {
- enumTypeRows.add(new String[] {String.valueOf(type.getId()), type.getStorageState().toString(),
- type.getGuid(), type.getName()});
+ enumTypeRows.add(new String[] {
+ String.valueOf(type.getId()),
+ type.getStorageState().toString(),
+ type.getGuid(),
+ type.getName()});
for (OseeEnumEntry entry : type.values()) {
- enumEntryRows.add(new String[] {type.getGuid(), entry.getGuid(), entry.getName(),
+ enumEntryRows.add(new String[] {
+ type.getGuid(),
+ entry.getGuid(),
+ entry.getName(),
String.valueOf(entry.ordinal())});
}
}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java
index 67a34f6493..36aaf04f77 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java
@@ -105,9 +105,17 @@ public class RelationTypeCacheUpdateResponse {
}
public String[] toArray() {
- return new String[] {String.valueOf(getId()), getGuid(), getName(), getStorageState().name(), getSideAName(),
- getSideBName(), String.valueOf(getArtifactTypeSideA()), String.valueOf(getArtifactTypeSideB()),
- getMultiplicity().name(), getDefaultOrderTypeGuid()};
+ return new String[] {
+ String.valueOf(getId()),
+ getGuid(),
+ getName(),
+ getStorageState().name(),
+ getSideAName(),
+ getSideBName(),
+ String.valueOf(getArtifactTypeSideA()),
+ String.valueOf(getArtifactTypeSideB()),
+ getMultiplicity().name(),
+ getDefaultOrderTypeGuid()};
}
public static RelationTypeRow fromArray(String[] data) {
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java
index f3b6cd5588..cbb2e7149a 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java
@@ -77,10 +77,19 @@ public class AttributeTypeCacheUpdateResponseTranslator implements ITranslator<A
}
private String[] toArray(AttributeType type) {
- return new String[] {type.getAttributeProviderId(), type.getBaseAttributeTypeId(), type.getDefaultValue(),
- type.getDescription(), type.getFileTypeExtension(), type.getGuid(), String.valueOf(type.getId()),
- String.valueOf(type.getMaxOccurrences()), String.valueOf(type.getMinOccurrences()),
- type.getStorageState().name(), type.getName(), type.getTaggerId()};
+ return new String[] {
+ type.getAttributeProviderId(),
+ type.getBaseAttributeTypeId(),
+ type.getDefaultValue(),
+ type.getDescription(),
+ type.getFileTypeExtension(),
+ type.getGuid(),
+ String.valueOf(type.getId()),
+ String.valueOf(type.getMaxOccurrences()),
+ String.valueOf(type.getMinOccurrences()),
+ type.getStorageState().name(),
+ type.getName(),
+ type.getTaggerId()};
}
private AttributeType createfromArray(AttributeTypeFactory factory, String[] data) throws OseeCoreException {
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java
index 89883fe1db..a63102c550 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java
@@ -72,9 +72,14 @@ public class TransactionCacheUpdateResponseTranslator implements ITranslator<Tra
}
private String[] toArray(TransactionRecord row) {
- return new String[] {String.valueOf(row.getId()), row.getTxType().name(), row.getComment(),
- String.valueOf(row.getTimeStamp().getTime()), String.valueOf(row.getAuthor()),
- String.valueOf(row.getCommit()), String.valueOf(row.getBranchId())};
+ return new String[] {
+ String.valueOf(row.getId()),
+ row.getTxType().name(),
+ row.getComment(),
+ String.valueOf(row.getTimeStamp().getTime()),
+ String.valueOf(row.getAuthor()),
+ String.valueOf(row.getCommit()),
+ String.valueOf(row.getBranchId())};
}
private static TransactionRecord fromArray(TransactionRecordFactory factory, String[] data) throws OseeCoreException {

Back to the top