diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java | 160 |
1 files changed, 80 insertions, 80 deletions
diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java index 6718af9d235..c55586cb915 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/change/Conflict.java @@ -8,84 +8,84 @@ * Contributors: * Boeing - initial API and implementation *******************************************************************************/ -package org.eclipse.osee.framework.branch.management.change;
-
-import org.eclipse.osee.framework.core.enums.ConflictStatus;
-import org.eclipse.osee.framework.core.enums.ConflictType;
-import org.eclipse.osee.framework.core.enums.StorageState;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.IOseeStorable;
-import org.eclipse.osee.framework.core.model.MergeBranch;
-
-public final class Conflict implements IOseeStorable {
- private final MergeBranch mergeBranch;
- private final ConflictStatus conflictStatus;
- private final int itemId;
- private final Long sourceGammaId;
- private final Long destinationGammaId;
- private final ConflictType conflictType;
-
- private StorageState storageState;
- private boolean isDirty;
-
- public Conflict(StorageState storageState, int itemId, ConflictType conflictType, MergeBranch mergeBranch, ConflictStatus conflictStatus, long sourceGammaId, long destinationGammaId) {
- this.mergeBranch = mergeBranch;
- this.storageState = storageState;
- this.conflictStatus = conflictStatus;
- this.itemId = itemId;
- this.conflictType = conflictType;
- this.sourceGammaId = sourceGammaId;
- this.destinationGammaId = destinationGammaId;
- this.isDirty = false;
- }
-
- public ConflictType getType() {
- return conflictType;
- }
-
- public Long getSourceGammaId() {
- return sourceGammaId;
- }
-
- public Long getDestinationGammaId() {
- return destinationGammaId;
- }
-
- public int getId() {
- return itemId;
- }
-
- public MergeBranch getMergeBranch() {
- return mergeBranch;
- }
-
- public ConflictStatus getStatus() {
- return conflictStatus;
- }
-
- @Override
- public StorageState getStorageState() {
- return storageState;
- }
-
- @Override
- public boolean isIdValid() {
- return IOseeStorable.UNPERSISTED_VALUE != getId();
- }
-
- @Override
- public void setId(int uniqueId) throws OseeCoreException {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public void clearDirty() {
- this.isDirty = false;
- this.storageState = StorageState.LOADED;
- }
-
- @Override
- public boolean isDirty() {
- return isDirty;
- }
+package org.eclipse.osee.framework.branch.management.change; + +import org.eclipse.osee.framework.core.enums.ConflictStatus; +import org.eclipse.osee.framework.core.enums.ConflictType; +import org.eclipse.osee.framework.core.enums.StorageState; +import org.eclipse.osee.framework.core.exception.OseeCoreException; +import org.eclipse.osee.framework.core.model.IOseeStorable; +import org.eclipse.osee.framework.core.model.MergeBranch; + +public final class Conflict implements IOseeStorable { + private final MergeBranch mergeBranch; + private final ConflictStatus conflictStatus; + private final int itemId; + private final Long sourceGammaId; + private final Long destinationGammaId; + private final ConflictType conflictType; + + private StorageState storageState; + private boolean isDirty; + + public Conflict(StorageState storageState, int itemId, ConflictType conflictType, MergeBranch mergeBranch, ConflictStatus conflictStatus, long sourceGammaId, long destinationGammaId) { + this.mergeBranch = mergeBranch; + this.storageState = storageState; + this.conflictStatus = conflictStatus; + this.itemId = itemId; + this.conflictType = conflictType; + this.sourceGammaId = sourceGammaId; + this.destinationGammaId = destinationGammaId; + this.isDirty = false; + } + + public ConflictType getType() { + return conflictType; + } + + public Long getSourceGammaId() { + return sourceGammaId; + } + + public Long getDestinationGammaId() { + return destinationGammaId; + } + + public int getId() { + return itemId; + } + + public MergeBranch getMergeBranch() { + return mergeBranch; + } + + public ConflictStatus getStatus() { + return conflictStatus; + } + + @Override + public StorageState getStorageState() { + return storageState; + } + + @Override + public boolean isIdValid() { + return IOseeStorable.UNPERSISTED_VALUE != getId(); + } + + @Override + public void setId(int uniqueId) throws OseeCoreException { + throw new UnsupportedOperationException(); + } + + @Override + public void clearDirty() { + this.isDirty = false; + this.storageState = StorageState.LOADED; + } + + @Override + public boolean isDirty() { + return isDirty; + } }
\ No newline at end of file |