421422423424425426427428429430431
} } return folders; } else if (type == WGDocument.TYPE_LANGUAGE) { return Collections.singletonList(new WGFakeLanguage(_db, _fakeLanguage, _fakeLanguage)); } return null; }
437438439440441442443444445446447
if (type == WGDocument.TYPE_AREA) { return new BeanFolder(this, name); } else if (type == WGDocument.TYPE_LANGUAGE && _fakeLanguage.equals(name)) { return new WGFakeLanguage(_db, name, name); } return null;
5650565156525653565456555656565756585659
return null; } WGLanguage lang = (WGLanguage) getDesignObject(WGDocument.TYPE_LANGUAGE, name); if (lang == null) { lang = (WGLanguage) createDesignDocumentObject(new WGFakeLanguage(this, name, "(Not defined)")); lang.setDummy(true); } return lang; }
242243244245246247248249250251252
} public List getDesignObjects(int type) { if (type == WGDocument.TYPE_LANGUAGE) { return Collections.singletonList(new WGFakeLanguage(db, _fakeLanguage, _fakeLanguage)); } return Collections.emptyList(); }
252253254255256257258259260261262
} public WGDocumentCore getDesignObject(int type, String name, String strMediaKey) { if (type == WGDocument.TYPE_LANGUAGE && _fakeLanguage.equals(name)) { return new WGFakeLanguage(db, _fakeLanguage, _fakeLanguage); } else { return null; }