no message
This commit is contained in:
@@ -111,35 +111,23 @@ public class GlobalDatabase extends VisualiserDatabase {
|
||||
}
|
||||
}
|
||||
//--
|
||||
|
||||
public LinkedHashMap<String, String> getSapforSettingsForProfile() {
|
||||
/*
|
||||
LinkedHashMap<SettingName, String> res = new LinkedHashMap<>();
|
||||
for (DBSetting setting : settings.getSettingsByOwner(ComponentType.SapforOptions))
|
||||
if (setting.Visible)
|
||||
res.put(setting.Name, setting.Value);
|
||||
*/
|
||||
return null;
|
||||
}
|
||||
//проверить, есть ли профиль с таким же набором настроек.
|
||||
public SapforProfile checkProfileForCurrentSettings() {
|
||||
/*
|
||||
LinkedHashMap<SettingName, String> current_values = getSapforSettingsForProfile();
|
||||
|
||||
LinkedHashMap<String, String> current_values = Global.mainModule.getProject().sapforProperties.toMap();
|
||||
for (SapforProfile profile : sapforProfiles.Data.values()) {
|
||||
//--получить все настройки профиля
|
||||
LinkedHashMap<SettingName, String> profileValues = new LinkedHashMap<>();
|
||||
LinkedHashMap<String, String> profileValues = new LinkedHashMap<>();
|
||||
for (SapforProfileSetting setting : sapforProfilesSettings.Data.values())
|
||||
if (setting.sapforprofile_id == profile.id) profileValues.put(setting.name, setting.value);
|
||||
//--
|
||||
if (current_values.equals(profileValues)) return profile;
|
||||
}
|
||||
*/
|
||||
return null;
|
||||
}
|
||||
public void insertProfileSettings(SapforProfile profile) throws Exception {
|
||||
/*
|
||||
LinkedHashMap<SettingName, String> current_values = getSapforSettingsForProfile();
|
||||
for (SettingName name : current_values.keySet()) {
|
||||
LinkedHashMap<String, String> current_values = Global.mainModule.getProject().sapforProperties.toMap();
|
||||
for (String name : current_values.keySet()) {
|
||||
//--
|
||||
SapforProfileSetting sapforProfileSetting = new SapforProfileSetting();
|
||||
sapforProfileSetting.name = name;
|
||||
@@ -148,7 +136,6 @@ public class GlobalDatabase extends VisualiserDatabase {
|
||||
//--
|
||||
Insert(sapforProfileSetting);
|
||||
}
|
||||
*/
|
||||
}
|
||||
public void saveCurrentProfile(String name_in) throws Exception {
|
||||
if (checkProfileForCurrentSettings() == null) {
|
||||
|
||||
Reference in New Issue
Block a user