Commit 29795903 authored by Carmen Carlan's avatar Carmen Carlan
Browse files

Deleted a method related to old functionality



Issue-ref: 3174
Signed-off-by: Carmen Carlan's avatarCarmen Carlan <carlan@fortiss.org>
parent 598f5552
AF3SelectionDialogUtils.java 606c377620ecf8902101585cf60fa8117397bf30 GREEN
DropdownDialog.java 1ec9b26db0e5c2cf40f1761de7bb9a0e3b1b1355 GREEN
GSNSelectionDialogUtils.java 01cdc5c80a6d678e47b39d4dbd571de15b283d8f GREEN
InstantiationOfGSNElementsUtils.java af39910854aacfc955e7c0465831cb330b1e234a YELLOW
InstantiationOfGSNElementsUtils.java 17c317ebdf5b1ba3e98df37622a519d07c444ac4 YELLOW
MaintenanceUtils.java 6666dea44eb6784c9f23c0c549bd6eada1eb1e17 GREEN
MultiPageWizard.java a901e2eb4967e3663b71a96cb22948283c200c2c GREEN
OptionEntityInstantiation.java 05f5cf61184d6db033b47d58c19492799468943e GREEN
......
......@@ -117,42 +117,6 @@ public class InstantiationOfGSNElementsUtils {
}
}
/**
* This method replaces a word from textual information of the given {@link ArgumentElement}
* with information about the element it makes reference to.
*
* @param word
* The word to be instantiated.
* @param instantiatedWord
* The information about the referenced item.
* @param argEle
* The argument element.
*/
public static void instantiateWordFromTextualInformation(String word, String instantiatedWord,
final ArgumentElement argEle) {
String textualInfo = argEle.getSafetyClaimPattern().getSentence();
String textualInformation = argEle.getTextualInformation();
if(textualInformation != "" && textualInformation.contains("{" + word + "}")) {
textualInfo = textualInformation;
}
if(textualInfo.contains("{" + word + "}")) {
final String updatedTextualInformation =
textualInfo.replace("{" + word + "}", instantiatedWord);
final ITopLevelElement topLevel =
IPersistencyService.getInstance().getTopLevelElementFor(argEle);
topLevel.runAsCommand(new Runnable() {
@Override
public void run() {
argEle.setTextualInformation(updatedTextualInformation);
}
});
} else {
instantiateClaim(instantiatedWord, argEle);
}
}
/**
* This method replaces the claim of the given {@link ArgumentElement} with
* information about the absolute path of the item it makes reference to.
......@@ -260,11 +224,7 @@ public class InstantiationOfGSNElementsUtils {
}
}
/**
* This method creates a copy of the given argument element.
*
* @return The copy.
*/
/** This method creates a copy of the given argument element. */
public static ArgumentElement createCopyOfArgumentElement(ArgumentElement argumentElement) {
ArgumentElement ae = instantiateCopyOfArgumentElement(argumentElement);
argumentElement.getModule().getContainedElements().add(ae);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment