Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-07-24 13:38:31 -0400
committerrbrooks2010-07-24 13:38:31 -0400
commit4081f04850d3eff9eb1bd7241763707bfbb43a45 (patch)
tree258620df94d4b24077ff103a6c4dea9cb78493fb /plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework
parent4ed8bddc791fda93940f238c5135556a07041dc0 (diff)
downloadorg.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.tar.gz
org.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.tar.xz
org.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.zip
applied Eclipse source cleanup
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.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java6
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java10
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchRow.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItem.java6
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java8
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java34
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/OseeEnumTypeCacheUpdateResponse.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java10
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TransactionCacheUpdateResponse.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/Activator.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java12
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java14
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeItemTranslator.java12
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeVersionTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java2
24 files changed, 83 insertions, 67 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 ace4896d9c..8f99874a78 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
@@ -92,7 +92,7 @@ public class ArtifactTypeCacheUpdateResponse {
public String[] toArray() {
return new String[] {String.valueOf(getId()), getGuid(), getName(), String.valueOf(isAbstract()),
- getStorageState().name()};
+ getStorageState().name()};
}
public static ArtifactTypeRow fromArray(String[] data) {
@@ -116,7 +116,7 @@ public class ArtifactTypeCacheUpdateResponse {
List<Triplet<Integer, Integer, Integer>> artAttrs = new ArrayList<Triplet<Integer, Integer, Integer>>();
for (ArtifactType art : types) {
rows.add(new ArtifactTypeRow(art.getId(), art.getGuid(), art.getName(), art.isAbstract(),
- art.getStorageState()));
+ art.getStorageState()));
Integer artId = art.getId();
Collection<ArtifactType> superTypes = art.getSuperArtifactTypes();
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java
index bfcbe6d79c..e85d79c3d0 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java
@@ -45,9 +45,9 @@ public class AttributeTypeCacheUpdateResponse {
Map<Integer, Integer> attrToEnum = new HashMap<Integer, Integer>();
for (AttributeType item : types) {
AttributeType type =
- factory.create(item.getGuid(), item.getName(), item.getBaseAttributeTypeId(),
- item.getAttributeProviderId(), item.getFileTypeExtension(), item.getDefaultValue(),
- item.getMinOccurrences(), item.getMaxOccurrences(), item.getDescription(), item.getTaggerId());
+ factory.create(item.getGuid(), item.getName(), item.getBaseAttributeTypeId(),
+ item.getAttributeProviderId(), item.getFileTypeExtension(), item.getDefaultValue(),
+ item.getMinOccurrences(), item.getMaxOccurrences(), item.getDescription(), item.getTaggerId());
type.setId(item.getId());
type.setStorageState(item.getStorageState());
rows.add(type);
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java
index 21c747cfa3..f5ecf63843 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCacheUpdateUtil.java
@@ -58,9 +58,9 @@ public final class BranchCacheUpdateUtil {
for (BranchRow srcItem : cacheMessage.getBranchRows()) {
int branchId = srcItem.getBranchId();
Branch updated =
- factory.createOrUpdate(cache, srcItem.getBranchId(), srcItem.getStorageState(), srcItem.getBranchGuid(),
- srcItem.getBranchName(), srcItem.getBranchType(), srcItem.getBranchState(),
- srcItem.getBranchArchived().isArchived());
+ factory.createOrUpdate(cache, srcItem.getBranchId(), srcItem.getStorageState(), srcItem.getBranchGuid(),
+ srcItem.getBranchName(), srcItem.getBranchType(), srcItem.getBranchState(),
+ srcItem.getBranchArchived().isArchived());
updatedItems.add(updated);
updated.setBaseTransaction(getTx(cacheMessage.getBranchToBaseTx(), branchId));
@@ -104,8 +104,8 @@ public final class BranchCacheUpdateUtil {
for (Branch br : types) {
Integer branchId = br.getId();
message.getBranchRows().add(
- new BranchRow(br.getId(), br.getGuid(), br.getName(), br.getBranchType(), br.getBranchState(),
- br.getArchiveState(), br.getStorageState()));
+ new BranchRow(br.getId(), br.getGuid(), br.getName(), br.getBranchType(), br.getBranchState(),
+ br.getArchiveState(), br.getStorageState()));
if (br.hasParentBranch()) {
message.getChildToParent().put(branchId, br.getParentBranch().getId());
}
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 e001d4cc83..f66cc1738a 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
@@ -71,7 +71,7 @@ public final class BranchRow {
public String[] toArray() {
return new String[] {getBranchArchived().name(), getBranchGuid(), String.valueOf(getBranchId()), getBranchName(),
- getBranchState().name(), getBranchType().name(), getStorageState().name()};
+ 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/ChangeItem.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItem.java
index 728912f5b7..da18ea788e 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItem.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItem.java
@@ -75,8 +75,8 @@ public abstract class ChangeItem {
@Override
public String toString() {
return String.format(
- "ChangeItem - itemId:[%s] artId:%s typeId:%s base:%s first:%s current:%s destination:%s net:%s", itemId,
- getArtId(), getItemTypeId(), getBaselineVersion(), getFirstNonCurrentChange(), getCurrentVersion(),
- getDestinationVersion(), getNetChange());
+ "ChangeItem - itemId:[%s] artId:%s typeId:%s base:%s first:%s current:%s destination:%s net:%s", itemId,
+ getArtId(), getItemTypeId(), getBaselineVersion(), getFirstNonCurrentChange(), getCurrentVersion(),
+ getDestinationVersion(), getNetChange());
}
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java
index c0d28daf45..678f19ae79 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeItemUtil.java
@@ -35,17 +35,17 @@ public class ChangeItemUtil {
toReturn = item.getCurrentVersion();
if (!toReturn.isValid()) {
throw new OseeStateException(String.format("Cannot find a valid starting point for change item: %s",
- item));
+ item));
}
}
}
return toReturn;
}
-
- public static void copy(ChangeVersion source, ChangeVersion dest) throws OseeCoreException{
+
+ public static void copy(ChangeVersion source, ChangeVersion dest) throws OseeCoreException {
Conditions.checkNotNull(source, "source");
Conditions.checkNotNull(dest, "Dest");
-
+
dest.setGammaId(source.getGammaId());
dest.setModType(source.getModType());
dest.setValue(source.getValue());
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java
index 019cd6d3c4..9c01fc37a1 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java
@@ -19,26 +19,26 @@ import java.util.List;
*/
public class ChangeReportResponse {
- private final List<ChangeItem> changeItems;
+ private final List<ChangeItem> changeItems;
- public ChangeReportResponse() {
- super();
- this.changeItems = new ArrayList<ChangeItem>();
- }
+ public ChangeReportResponse() {
+ super();
+ this.changeItems = new ArrayList<ChangeItem>();
+ }
- public void setChangeItems(Collection<ChangeItem> items) {
- this.changeItems.addAll(items);
- }
+ public void setChangeItems(Collection<ChangeItem> items) {
+ this.changeItems.addAll(items);
+ }
- public void addItem(ChangeItem item) {
- this.changeItems.add(item);
- }
+ public void addItem(ChangeItem item) {
+ this.changeItems.add(item);
+ }
- public List<ChangeItem> getChangeItems() {
- return changeItems;
- }
+ public List<ChangeItem> getChangeItems() {
+ return changeItems;
+ }
- public boolean wasSuccessful() {
- return !changeItems.isEmpty();
- }
+ public boolean wasSuccessful() {
+ return !changeItems.isEmpty();
+ }
}
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 f469e9bc43..1db6306605 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
@@ -43,10 +43,10 @@ public class OseeEnumTypeCacheUpdateResponse {
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()});
+ type.getGuid(), type.getName()});
for (OseeEnumEntry entry : type.values()) {
enumEntryRows.add(new String[] {type.getGuid(), entry.getGuid(), entry.getName(),
- String.valueOf(entry.ordinal())});
+ String.valueOf(entry.ordinal())});
}
}
return new OseeEnumTypeCacheUpdateResponse(enumTypeRows, enumEntryRows);
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 ea017d4885..67a34f6493 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
@@ -106,8 +106,8 @@ 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()};
+ getSideBName(), String.valueOf(getArtifactTypeSideA()), String.valueOf(getArtifactTypeSideB()),
+ getMultiplicity().name(), getDefaultOrderTypeGuid()};
}
public static RelationTypeRow fromArray(String[] data) {
@@ -126,7 +126,7 @@ public class RelationTypeCacheUpdateResponse {
String defaultOrderTypeGuid = data[index++];
return new RelationTypeRow(id, name, guid, storageState, sideAName, sideBName, artifactTypeSideA,
- artifactTypeSideB, multiplicity, defaultOrderTypeGuid);
+ artifactTypeSideB, multiplicity, defaultOrderTypeGuid);
}
}
@@ -134,8 +134,8 @@ public class RelationTypeCacheUpdateResponse {
List<RelationTypeRow> rows = new ArrayList<RelationTypeRow>();
for (RelationType item : types) {
rows.add(new RelationTypeRow(item.getId(), item.getName(), item.getGuid(), item.getStorageState(),
- item.getSideAName(), item.getSideBName(), item.getArtifactTypeSideA().getId(),
- item.getArtifactTypeSideB().getId(), item.getMultiplicity(), item.getDefaultOrderTypeGuid()));
+ item.getSideAName(), item.getSideBName(), item.getArtifactTypeSideA().getId(),
+ item.getArtifactTypeSideB().getId(), item.getMultiplicity(), item.getDefaultOrderTypeGuid()));
}
return new RelationTypeCacheUpdateResponse(rows);
}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TransactionCacheUpdateResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TransactionCacheUpdateResponse.java
index 7f21d5d15b..03f61ffb19 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TransactionCacheUpdateResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/TransactionCacheUpdateResponse.java
@@ -36,7 +36,7 @@ public class TransactionCacheUpdateResponse {
List<TransactionRecord> rows = new ArrayList<TransactionRecord>();
for (TransactionRecord tx : types) {
rows.add(factory.create(tx.getId(), tx.getBranchId(), tx.getComment(), tx.getTimeStamp(), tx.getAuthor(),
- tx.getCommit(), tx.getTxType()));
+ tx.getCommit(), tx.getTxType()));
}
return new TransactionCacheUpdateResponse(rows);
}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/Activator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/Activator.java
index 7fe5b33711..cc1f1e8902 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/Activator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/Activator.java
@@ -46,6 +46,7 @@ public class Activator implements BundleActivator, IOseeCachingServiceProvider,
mappedTrackers = new HashMap<OseeServiceTrackerId, ServiceTracker>();
}
+ @Override
public void start(BundleContext context) throws Exception {
instance = this;
instance.bundleContext = context;
@@ -62,9 +63,10 @@ public class Activator implements BundleActivator, IOseeCachingServiceProvider,
private IOseeModelFactoryService createFactoryService() {
return new OseeModelFactoryService(new BranchFactory(), new TransactionRecordFactory(),
- new ArtifactTypeFactory(), new AttributeTypeFactory(), new RelationTypeFactory(), new OseeEnumTypeFactory());
+ new ArtifactTypeFactory(), new AttributeTypeFactory(), new RelationTypeFactory(), new OseeEnumTypeFactory());
}
+ @Override
public void stop(BundleContext context) throws Exception {
for (ServiceRegistration service : services) {
service.unregister();
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java
index 8213e9a2a4..920e272b50 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java
@@ -80,7 +80,7 @@ public class DataTranslationServiceFactory {
service.addTranslator(new BranchChangeTypeRequestTranslator(), CoreTranslatorId.CHANGE_BRANCH_TYPE);
service.addTranslator(new BranchChangeStateRequestTranslator(), CoreTranslatorId.CHANGE_BRANCH_STATE);
service.addTranslator(new BranchChangeArchivedStateRequestTranslator(),
- CoreTranslatorId.CHANGE_BRANCH_ARCHIVE_STATE);
+ CoreTranslatorId.CHANGE_BRANCH_ARCHIVE_STATE);
service.addTranslator(new ChangeVersionTranslator(), CoreTranslatorId.CHANGE_VERSION);
service.addTranslator(new ChangeItemTranslator(service), CoreTranslatorId.CHANGE_ITEM);
@@ -93,19 +93,19 @@ public class DataTranslationServiceFactory {
service.addTranslator(new BranchCacheUpdateResponseTranslator(), CoreTranslatorId.BRANCH_CACHE_UPDATE_RESPONSE);
service.addTranslator(new BranchCacheStoreRequestTranslator(), CoreTranslatorId.BRANCH_CACHE_STORE_REQUEST);
service.addTranslator(new TransactionCacheUpdateResponseTranslator(factoryProvider),
- CoreTranslatorId.TX_CACHE_UPDATE_RESPONSE);
+ CoreTranslatorId.TX_CACHE_UPDATE_RESPONSE);
service.addTranslator(new ArtifactTypeCacheUpdateResponseTranslator(),
- CoreTranslatorId.ARTIFACT_TYPE_CACHE_UPDATE_RESPONSE);
+ CoreTranslatorId.ARTIFACT_TYPE_CACHE_UPDATE_RESPONSE);
service.addTranslator(new AttributeTypeCacheUpdateResponseTranslator(factoryProvider),
- CoreTranslatorId.ATTRIBUTE_TYPE_CACHE_UPDATE_RESPONSE);
+ CoreTranslatorId.ATTRIBUTE_TYPE_CACHE_UPDATE_RESPONSE);
service.addTranslator(new RelationTypeCacheUpdateResponseTranslator(),
- CoreTranslatorId.RELATION_TYPE_CACHE_UPDATE_RESPONSE);
+ CoreTranslatorId.RELATION_TYPE_CACHE_UPDATE_RESPONSE);
service.addTranslator(new OseeEnumTypeCacheUpdateResponseTranslator(),
- CoreTranslatorId.OSEE_ENUM_TYPE_CACHE_UPDATE_RESPONSE);
+ CoreTranslatorId.OSEE_ENUM_TYPE_CACHE_UPDATE_RESPONSE);
service.addTranslator(new OseeImportModelRequestTranslator(), CoreTranslatorId.OSEE_IMPORT_MODEL_REQUEST);
service.addTranslator(new OseeImportModelResponseTranslator(service), CoreTranslatorId.OSEE_IMPORT_MODEL_RESPONSE);
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java
index 1ab8bcb0c3..6bb39154ba 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ArtifactTypeCacheUpdateResponseTranslator.java
@@ -16,8 +16,8 @@ import java.util.List;
import java.util.Map;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.message.ArtifactTypeCacheUpdateResponse;
-import org.eclipse.osee.framework.core.message.TranslationUtil;
import org.eclipse.osee.framework.core.message.ArtifactTypeCacheUpdateResponse.ArtifactTypeRow;
+import org.eclipse.osee.framework.core.message.TranslationUtil;
import org.eclipse.osee.framework.core.translation.ITranslator;
import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
import org.eclipse.osee.framework.jdk.core.type.Triplet;
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 6d326a5e41..e71057fc5d 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
@@ -30,7 +30,9 @@ import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
public class AttributeTypeCacheUpdateResponseTranslator implements ITranslator<AttributeTypeCacheUpdateResponse> {
private static enum Fields {
- ROW_COUNT, ROW, ATTR_TO_ENUM;
+ ROW_COUNT,
+ ROW,
+ ATTR_TO_ENUM;
}
private final IOseeModelFactoryServiceProvider provider;
@@ -77,9 +79,9 @@ 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()};
+ 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 {
@@ -97,8 +99,8 @@ public class AttributeTypeCacheUpdateResponseTranslator implements ITranslator<A
String taggerId = data[11];
AttributeType type =
- factory.create(guid, name, baseAttributeTypeId, attributeProviderId, fileTypeExtension, defaultValue,
- minOccurrences, maxOccurrences, description, taggerId);
+ factory.create(guid, name, baseAttributeTypeId, attributeProviderId, fileTypeExtension, defaultValue,
+ minOccurrences, maxOccurrences, description, taggerId);
type.setId(uniqueId);
type.setStorageState(storageState);
return type;
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java
index b217ac1323..80f017fb84 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java
@@ -26,6 +26,7 @@ public final class BranchChangeArchivedStateRequestTranslator implements ITransl
BRANCH_ARCHIVED_STATE,
}
+ @Override
public ChangeBranchArchiveStateRequest convert(PropertyStore propertyStore) throws OseeCoreException {
int branchId = propertyStore.getInt(Entry.BRANCH_ID.name());
BranchArchivedState state = BranchArchivedState.valueOf(propertyStore.get(Entry.BRANCH_ARCHIVED_STATE.name()));
@@ -33,6 +34,7 @@ public final class BranchChangeArchivedStateRequestTranslator implements ITransl
return data;
}
+ @Override
public PropertyStore convert(ChangeBranchArchiveStateRequest data) throws OseeCoreException {
PropertyStore store = new PropertyStore();
store.put(Entry.BRANCH_ID.name(), data.getBranchId());
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java
index fa3e38c19b..df9f7a2d56 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java
@@ -26,6 +26,7 @@ public final class BranchChangeStateRequestTranslator implements ITranslator<Cha
BRANCH_STATE,
}
+ @Override
public ChangeBranchStateRequest convert(PropertyStore propertyStore) throws OseeCoreException {
int branchId = propertyStore.getInt(Entry.BRANCH_ID.name());
BranchState state = BranchState.valueOf(propertyStore.get(Entry.BRANCH_STATE.name()));
@@ -33,6 +34,7 @@ public final class BranchChangeStateRequestTranslator implements ITranslator<Cha
return data;
}
+ @Override
public PropertyStore convert(ChangeBranchStateRequest data) throws OseeCoreException {
PropertyStore store = new PropertyStore();
store.put(Entry.BRANCH_ID.name(), data.getBranchId());
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java
index b2e79c1205..ab3d80f3a3 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java
@@ -26,6 +26,7 @@ public final class BranchChangeTypeRequestTranslator implements ITranslator<Chan
BRANCH_TYPE,
}
+ @Override
public ChangeBranchTypeRequest convert(PropertyStore propertyStore) throws OseeCoreException {
int branchId = propertyStore.getInt(Entry.BRANCH_ID.name());
BranchType type = BranchType.valueOf(propertyStore.get(Entry.BRANCH_TYPE.name()));
@@ -33,6 +34,7 @@ public final class BranchChangeTypeRequestTranslator implements ITranslator<Chan
return data;
}
+ @Override
public PropertyStore convert(ChangeBranchTypeRequest data) throws OseeCoreException {
PropertyStore store = new PropertyStore();
store.put(Entry.BRANCH_ID.name(), data.getBranchId());
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java
index 91a9ffd623..65bae53075 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java
@@ -27,6 +27,7 @@ public final class BranchCommitRequestTranslator implements ITranslator<BranchCo
IS_ARCHIVE_ALLOWED;
}
+ @Override
public BranchCommitRequest convert(PropertyStore propertyStore) throws OseeCoreException {
int srcBranchId = propertyStore.getInt(Entry.SRC_BRANCH_ID.name());
int destBranchId = propertyStore.getInt(Entry.DEST_BRANCH_ID.name());
@@ -37,6 +38,7 @@ public final class BranchCommitRequestTranslator implements ITranslator<BranchCo
return data;
}
+ @Override
public PropertyStore convert(BranchCommitRequest data) throws OseeCoreException {
PropertyStore store = new PropertyStore();
store.put(Entry.IS_ARCHIVE_ALLOWED.name(), data.isArchiveAllowed());
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java
index ce021f7acb..94988fcdc2 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java
@@ -33,6 +33,7 @@ public class BranchCommitResponseTranslator implements ITranslator<BranchCommitR
this.service = service;
}
+ @Override
public BranchCommitResponse convert(PropertyStore propertyStore) throws OseeCoreException {
BranchCommitResponse response = new BranchCommitResponse();
PropertyStore innerStore = propertyStore.getPropertyStore(Entry.TRANSACTION_NUMBER.name());
@@ -41,6 +42,7 @@ public class BranchCommitResponseTranslator implements ITranslator<BranchCommitR
return response;
}
+ @Override
public PropertyStore convert(BranchCommitResponse data) throws OseeCoreException {
PropertyStore store = new PropertyStore();
TransactionRecord record = data.getTransaction();
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java
index cac989c84e..5b583a4942 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java
@@ -55,7 +55,7 @@ public class BranchCreationRequestTranslator implements ITranslator<BranchCreati
int destinationBranchId = store.getInt(Fields.DESTINATION_BRANCH_ID.name());
return new BranchCreationRequest(branchType, sourceTransactionId, parentBranchId, branchGuid, branchName,
- associatedArtifactId, authorId, creationComment, populateBaseTxFromAddressingQueryId, destinationBranchId);
+ associatedArtifactId, authorId, creationComment, populateBaseTxFromAddressingQueryId, destinationBranchId);
}
@Override
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeItemTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeItemTranslator.java
index aef2dfd107..c5d5a14cad 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeItemTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeItemTranslator.java
@@ -76,14 +76,14 @@ public class ChangeItemTranslator implements ITranslator<ChangeItem> {
switch (type) {
case ARTIFACT:
changeItem =
- new ArtifactChangeItem(itemId, itemTypeId, currentChangeVersion.getGammaId(),
- currentChangeVersion.getModType());
+ new ArtifactChangeItem(itemId, itemTypeId, currentChangeVersion.getGammaId(),
+ currentChangeVersion.getModType());
break;
case ATTRIBUTE:
int artId = Integer.parseInt(propertyStore.get(Entry.ART_ID.name()));
changeItem =
- new AttributeChangeItem(itemId, itemTypeId, artId, currentChangeVersion.getGammaId(),
- currentChangeVersion.getModType(), currentChangeVersion.getValue());
+ new AttributeChangeItem(itemId, itemTypeId, artId, currentChangeVersion.getGammaId(),
+ currentChangeVersion.getModType(), currentChangeVersion.getValue());
break;
case RELATION:
int aArtId = Integer.parseInt(propertyStore.get(Entry.A_ART_ID.name()));
@@ -91,8 +91,8 @@ public class ChangeItemTranslator implements ITranslator<ChangeItem> {
String rationale = propertyStore.get(Entry.RATIONALE.name());
changeItem =
- new RelationChangeItem(itemId, itemTypeId, currentChangeVersion.getGammaId(),
- currentChangeVersion.getModType(), aArtId, bArtId, rationale);
+ new RelationChangeItem(itemId, itemTypeId, currentChangeVersion.getGammaId(),
+ currentChangeVersion.getModType(), aArtId, bArtId, rationale);
break;
default:
throw new OseeStateException("Invalid change item type");
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeVersionTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeVersionTranslator.java
index 20ad6b007b..58ef86212b 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeVersionTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeVersionTranslator.java
@@ -38,7 +38,7 @@ public class ChangeVersionTranslator implements ITranslator<ChangeVersion> {
if (!propertyStore.get(Entry.IS_VALID.name()).isEmpty()) {
String value = propertyStore.get(Entry.VALUE.name());
ModificationType modificationType =
- ModificationType.getMod(Integer.parseInt(propertyStore.get(Entry.MOD_TYPE.name())));
+ ModificationType.getMod(Integer.parseInt(propertyStore.get(Entry.MOD_TYPE.name())));
Long gammaId = Long.parseLong(propertyStore.get(Entry.GAMMA_ID.name()));
changeVersion.setGammaId(gammaId);
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 c391d50eb2..68a614fa0f 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
@@ -74,8 +74,8 @@ 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())};
+ 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 {
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java
index b60b86610c..e54132f7f3 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java
@@ -41,6 +41,7 @@ public final class TransactionRecordTranslator implements ITranslator<Transactio
this.factoryProvider = factoryProvider;
}
+ @Override
public TransactionRecord convert(PropertyStore store) throws OseeCoreException {
int transactionNumber = store.getInt(Entry.TRANSACTION_ID.name());
TransactionDetailsType txType = TransactionDetailsType.valueOf(store.get(Entry.TRANSACTION_TX_TYPE.name()));
@@ -53,6 +54,7 @@ public final class TransactionRecordTranslator implements ITranslator<Transactio
return factory.create(transactionNumber, branchId, comment, time, authorArtId, commitArtId, txType);
}
+ @Override
public PropertyStore convert(TransactionRecord data) throws OseeCoreException {
PropertyStore store = new PropertyStore();
store.put(Entry.TRANSACTION_ID.name(), data.getId());

Back to the top