MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / getLanguageForProperty

Method getLanguageForProperty

src/main/java/fieldbox/io/IO.java:245–252  ·  view source on GitHub ↗
(Dict.Prop<String> editingProperty)

Source from the content-addressed store, hash-verified

243 for (Filespec f : knownFiles.values()) {
244 if (f.name.equals(editingProperty.getName())) return f.language;
245 }
246
247 return editingProperty.getAttributes()
248 .get(language);
249 }
250
251 public boolean isBoxFile(String filename) {
252 String[] pieces = filename.split("\\.");
253 if (pieces.length < 2) return false;
254 return pieces[pieces.length - 1].equals("box");
255 }

Callers 1

changeSelectionMethod · 0.80

Calls 4

getAttributesMethod · 0.80
getMethod · 0.65
equalsMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected