public void loadState(UISettings object) { XmlSerializerUtil.copyBean(object, this); // Check tab placement in editor if (EDITOR_TAB_PLACEMENT != TABS_NONE && EDITOR_TAB_PLACEMENT != SwingConstants.TOP && EDITOR_TAB_PLACEMENT != SwingConstants.LEFT && EDITOR_TAB_PLACEMENT != SwingConstants.BOTTOM && EDITOR_TAB_PLACEMENT != SwingConstants.RIGHT) { EDITOR_TAB_PLACEMENT = SwingConstants.TOP; } // Check that alpha delay and ratio are valid if (ALPHA_MODE_DELAY < 0) { ALPHA_MODE_DELAY = 1500; } if (ALPHA_MODE_RATIO < 0.0f || ALPHA_MODE_RATIO > 1.0f) { ALPHA_MODE_RATIO = 0.5f; } setSystemFontFaceAndSize(); // 1. Sometimes system font cannot display standard ASCII symbols. If so we have // find any other suitable font withing "preferred" fonts first. boolean fontIsValid = isValidFont(new Font(FONT_FACE, Font.PLAIN, FONT_SIZE)); if (!fontIsValid) { @NonNls final String[] preferredFonts = {"dialog", "Arial", "Tahoma"}; for (String preferredFont : preferredFonts) { if (isValidFont(new Font(preferredFont, Font.PLAIN, FONT_SIZE))) { FONT_FACE = preferredFont; fontIsValid = true; break; } } // 2. If all preferred fonts are not valid in current environment // we have to find first valid font (if any) if (!fontIsValid) { Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); for (Font font : fonts) { if (isValidFont(font)) { FONT_FACE = font.getName(); break; } } } } if (MAX_CLIPBOARD_CONTENTS <= 0) { MAX_CLIPBOARD_CONTENTS = 5; } fireUISettingsChanged(); }
@SuppressWarnings({"unchecked"}) public void loadState(Config config) { XmlSerializerUtil.copyBean(config, myConfig); myTasks.clear(); for (LocalTaskImpl task : config.tasks) { addTask(task); } myRepositories.clear(); Element element = config.servers; List<TaskRepository> repositories = loadRepositories(element); myRepositories.addAll(repositories); }
@Override public void loadState(JetEditorOptions state) { XmlSerializerUtil.copyBean(state, this); }
public void loadState(CafeBabeConfiguration state) { XmlSerializerUtil.copyBean(state, this); }
protected void loadState(final MasterDetailsState object) { XmlSerializerUtil.copyBean(object, myState); }
@Override public void loadState(Config state) { XmlSerializerUtil.copyBean(state, myConfig); }
@Override public void loadState(@NotNull EmacsSettings emacsSettings) { XmlSerializerUtil.copyBean(emacsSettings, this); }
public void loadState(SonarQubeSettings state) { XmlSerializerUtil.copyBean(state, this); }
@Override public void loadState(PyPackageService state) { XmlSerializerUtil.copyBean(state, this); }
@Override public void loadState(TestRunnerService state) { XmlSerializerUtil.copyBean(state, this); }
public void loadState(DirectoryPackagingElement state) { XmlSerializerUtil.copyBean(state, this); }
@Override public void loadState(GoExcludedPathsSettings state) { XmlSerializerUtil.copyBean(state, this); }
@Override public void loadState(Settings settings) { XmlSerializerUtil.copyBean(settings, this); }
@Override public void loadState(SuppressNotificationState state) { XmlSerializerUtil.copyBean(state, this); }
@Override public void loadState(ProjectStructureProblemsSettingsBase state) { XmlSerializerUtil.copyBean(state, this); }
public void loadState(ZkConfigPersistence state) { XmlSerializerUtil.copyBean(state, this); }
public void loadState(@NotNull ProjectSettings state) { XmlSerializerUtil.copyBean(state, this); }
@Override public void loadState(DuplocatorSettings object) { XmlSerializerUtil.copyBean(object, this); }