|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.model.changeTracking.merging.conflict.ConflictOption
public class ConflictOption
This class represents an option/solution for a conflict. A conflict may have several options.
Nested Class Summary | |
---|---|
static class |
ConflictOption.OptionType
Type of options. |
Constructor Summary | |
---|---|
ConflictOption(Object obj,
ConflictOption.OptionType type)
Alternative contstrutor which will toString the input object. |
|
ConflictOption(String option,
ConflictOption.OptionType type)
Default constructor. |
Method Summary | |
---|---|
void |
addOperations(Set<AbstractOperation> ops)
Adds the change operations, which will be applied in case, that this option is selected as solution. |
String |
getDetailProvider()
Returns detailprovider string. |
String |
getFullOptionLabel()
Returns the complete option label. |
Set<AbstractOperation> |
getOperations()
Returns the operations, stored in this option. |
String |
getOptionLabel()
Returns the option's label. |
String |
getStrippedOptionLabel()
Returns the Option's label with new line characters removed. |
ConflictOption.OptionType |
getType()
Returns the type. |
boolean |
hasExtraOptionAction()
Returns whether option should be called ( optionChosen() ), if selected. |
boolean |
isDetailsProvider()
Tells whehter option provides details. |
boolean |
optionChosen()
Called if Option is chosen in the UI. |
void |
setDetailProvider(String detailProvider)
Sets a detailprovider. |
void |
setOptionLabel(String option)
Sets the option's label. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConflictOption(String option, ConflictOption.OptionType type)
option
- name of optiontype
- typepublic ConflictOption(Object obj, ConflictOption.OptionType type)
obj
- objecttype
- option typeMethod Detail |
---|
public String getOptionLabel()
public void setOptionLabel(String option)
option
- textpublic String getStrippedOptionLabel()
public String getFullOptionLabel()
public ConflictOption.OptionType getType()
public void addOperations(Set<AbstractOperation> ops)
ops
- operationspublic Set<AbstractOperation> getOperations()
public boolean isDetailsProvider()
public void setDetailProvider(String detailProvider)
detailProvider
- identifying stringpublic String getDetailProvider()
public boolean hasExtraOptionAction()
optionChosen()
), if selected.
public boolean optionChosen()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |