public OpenStudy open(User user, Study study) {
// -----------------------------------------
ResourceBundle custom = ResourceBundle.getBundle("som",
- ApplicationSettings.getCurrentLocale());
+ getApplicationSettings().getCurrentLocale());
SimpleDateFormat datstring = new SimpleDateFormat(custom
.getString("date.format"));
Revision.Format verstring = new Revision.Format(getProjectSettings()
}
if (getStudyService().isStaffedBy(mystudy, cuser) || getStudyService().hasActor(mystudy, cuser)) {
// ProgressState state = mystudy.getProgressState();
- // if (state == ProgressState.inCHECK) popup = ApplicationSettings.getPopupMenu("stapprovable");
- // else if (state == ProgressState.APPROVED) popup = ApplicationSettings.getPopupMenu("stapproved");
- /* else */popup = ApplicationSettings
+ // if (state == ProgressState.inCHECK) popup = getApplicationSettings().getPopupMenu("stapprovable");
+ // else if (state == ProgressState.APPROVED) popup = getApplicationSettings().getPopupMenu("stapproved");
+ /* else */popup = getApplicationSettings()
.getPopupMenu("steditable");
popup.setContext("study", new StudyRights(cuser, mystudy));
}
public ToolBar getModuleBar() {
// ------------------------------
- return ApplicationSettings.getMe().getModuleBar(getSelectedStep());
+ return getApplicationSettings().getModuleBar(getSelectedStep());
}
public String getReference() {
public String getType() {
// ------------------------
return ResourceBundle.getBundle("labels",
- ApplicationSettings.getCurrentLocale())
+ getApplicationSettings().getCurrentLocale())
.getString("label.study");
}
// Transfer to the document of all known properties
ResourceBundle locale = ResourceBundle.getBundle("som",
- ApplicationSettings.getCurrentLocale());
+ getApplicationSettings().getCurrentLocale());
SimpleDateFormat get = new SimpleDateFormat(locale
.getString("date.format"));
Writer tool = Toolbox.getWriter(credoc);
.replaceAll("''", "'"));
tool.save();
- return new URL(ApplicationSettings.getDownloadURL(author)
+ return new URL(getApplicationSettings().getDownloadURL(author)
+ filename);
} catch (Exception saverror) {
logger.error("Reason:", saverror);
public void selectDocument(String docurl) {
// ------------------------------------------
- String prefix = ApplicationSettings.getRepositoryURL();
+ String prefix = getApplicationSettings().getRepositoryURL();
if (docurl.startsWith(prefix))
try {
cuser = user;
popup = null;
if (getStudyService().isStaffedBy(mystudy, cuser)) {
- popup = ApplicationSettings.getPopupMenu("steditable");
+ popup = getApplicationSettings().getPopupMenu("steditable");
popup.setContext("study", new StudyRights(cuser, mystudy));
}
//ustep = getProjectElementService().getFirstStep(mystudy);