MCPcopy Create free account
hub / github.com/PCGen/pcgen / openParty

Method openParty

code/src/java/pcgen/system/CharacterManager.java:283–289  ·  view source on GitHub ↗

This opens an existing party from a file and adds all characters to the list of open characters. @param file the file to load this party from @param delegate the UIDelegate that these characters will use @param dataset the dataset that this will be loaded with @return The party that was opened.

(File file, final UIDelegate delegate, final DataSetFacade dataset)

Source from the content-addressed store, hash-verified

281 * @return The party that was opened.
282 */
283 public static PartyFacade openParty(File file, final UIDelegate delegate, final DataSetFacade dataset)
284 {
285 Logging.log(Logging.INFO, "Loading party " + file.getAbsolutePath()); //$NON-NLS-1$
286 PCGIOHandler.readCharacterFileList(file).forEach(charFile -> openCharacter(charFile, delegate, dataset));
287 CHARACTERS.setFile(file);
288 return CHARACTERS;
289 }
290
291 public static SourceSelectionFacade getRequiredSourcesForParty(File pcpFile, UIDelegate delegate)
292 {

Callers 2

loadPartyFromFileMethod · 0.95
exportPartyMethod · 0.95

Calls 5

logMethod · 0.95
readCharacterFileListMethod · 0.95
openCharacterMethod · 0.95
forEachMethod · 0.80
setFileMethod · 0.65

Tested by

no test coverage detected