Initializes the settings object to work with depending on the dialog state and request parameters.<p>
199766
protected void initSettingsObject() {

        Object o;

        if (CmsStringUtil.isEmpty(getParamAction())) {
            o = new CmsVfsImportExportHandler();
        } else {
            // this is not the initial call, get the job object from session
            o = getDialogObject();
        }

        if (!(o instanceof CmsElementChangeLocaleSettings)) {
            // create a new export handler object
            m_settings = new CmsElementChangeLocaleSettings();
        } else {
            // reuse export handler object stored in session
            m_settings = (CmsElementChangeLocaleSettings)o;
        }

    }
1338235
protected void initMembers() {

        synchronized (LOCK) {
            m_resourceInitHandlers = new ArrayList<I_CmsResourceInit>();
            m_requestHandlers = new HashMap<String, I_CmsRequestHandler>();
            m_systemInfo = new CmsSystemInfo();
            m_exportPoints = Collections.emptySet();
            m_defaultUsers = new CmsDefaultUsers();
            m_localeManager = new CmsLocaleManager(Locale.ENGLISH);
            m_sessionManager = new CmsSessionManager();
            m_runtimeProperties = new Hashtable<Object, Object>();
            // the default event manager must be available because the configuration already registers events
            m_eventManager = new CmsEventManager();
            // default link manager is required for test cases
            m_linkManager = new CmsLinkManager(new CmsDefaultLinkSubstitutionHandler());
        }
    }
1159928
private void initUI() {

        m_enabled.setValue(new Boolean(m_synchronizeSettings.isEnabled()));
        if (m_synchronizeSettings.getDestinationPathInRfs() != null) {
            m_target.setValue(m_synchronizeSettings.getDestinationPathInRfs());
        }
        List<String> resources = m_synchronizeSettings.getSourceListInVfs();
        for (String resource : resources) {
            addResource(resource);
        }
        setOkButtonEnabled(false);
    }
854689
private void init() {

        m_height = -1;
        m_width = -1;
        m_maxHeight = -1;
        m_maxWidth = -1;
        m_type = 0;
        m_position = 0;
        m_renderMode = 0;
        m_quality = 0;
        m_cropX = -1;
        m_cropY = -1;
        m_cropHeight = -1;
        m_cropWidth = -1;
        m_color = Color.WHITE;
        m_filters = new ArrayList<String>();
        m_maxBlurSize = CmsImageLoader.getMaxBlurSize();
        m_isOriginalScaler = false;
    }
701767
@Override
    protected void defineWidgets() {

        // initialize the object to use for the dialog
        initSynchronizeSettingsObject();
        setKeyPrefix(KEY_PREFIX);
        addWidget(new CmsWidgetDialogParameter(m_synchronizeSettings, "enabled", PAGES[0], new CmsCheckboxWidget()));
        addWidget(
            new CmsWidgetDialogParameter(
                m_synchronizeSettings,
                "destinationPathInRfs",
                PAGES[0],
                new CmsInputWidget()));
        addWidget(
            new CmsWidgetDialogParameter(
                m_synchronizeSettings,
                "sourceListInVfs",
                "/",
                PAGES[0],
                new CmsVfsFileWidget(false, ""),
                1,
                CmsWidgetDialogParameter.MAX_OCCURENCES));

    }
1123412
protected void initializePropertyEditor() {

        Map<String, CmsXmlContentProperty> propertyConfig = m_values.getPropertyDefinitions();
        m_propertyEditorHandler = new CmsUploadPropertyEditorHandler(m_dialog, m_values);
        CmsSimplePropertyEditor propertyEditor = new CmsUploadPropertyEditor(propertyConfig, m_propertyEditorHandler);
        propertyEditor.getForm().setFormHandler(this);
        m_propertyEditor = propertyEditor;
        m_propertyEditor.initializeWidgets(null);
        A_CmsFormFieldPanel propertiesPanel = m_propertyEditor.getForm().getWidget();
        add(propertiesPanel);
    }
1074553
private void initialize() {
        this.setTitle(Constant.messages.getString("siteselect.dialog.title"));
        this.setContentPane(getJPanel());
        this.addWindowListener(new java.awt.event.WindowAdapter() {   
        	@Override
        	public void windowOpened(java.awt.event.WindowEvent e) {    
        	} 

        	@Override
        	public void windowClosing(java.awt.event.WindowEvent e) {    
        	    cancelButton.doClick();
        	}
        });
		pack();
	}
1316505
protected void init() {
        if (defaults) {
            initializeDefaults();
            return;
        }
        mapfx(cfgMap, new MapFunction<String, String>() {
            @Override
            public void apply(String name, String value) {
                processSetting(name, value);
            }
        });
        readComplete();
    }
563971
protected void initMessageObject() {

        Object o = null;

        try {
            // this is not the initial call, get the message info object from session
            o = getDialogObject();
            m_msgInfo = (CmsMessageInfo)o;
            // test
            m_msgInfo.getTo();
        } catch (Exception e) {
            // create a new message info object
            m_msgInfo = new CmsMessageInfo();
        }
        m_msgInfo.setFrom(getCms().getRequestContext().getCurrentUser().getFullName());
        m_msgInfo.setTo(getToNames());
    }
1057125
private void initialize() {
        this.setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));
        this.setContentPane(getJPanel());
        if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        	this.setSize(282, 118);
        }
        this.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        this.setResizable(false);
			
	}
455473
protected void initUserObject() {

        if (m_fieldconfiguration == null) {
            try {
                m_fieldconfiguration = m_searchManager.getFieldConfiguration(getParamFieldconfiguration());
                if (m_fieldconfiguration == null) {
                    m_fieldconfiguration = new CmsLuceneFieldConfiguration();
                }
            } catch (Exception e) {
                m_fieldconfiguration = new CmsLuceneFieldConfiguration();
            }
        }
    }
533904
void iniSite(CmsUserSettings settings) {

        List<CmsSite> sitesList = OpenCms.getSiteManager().getAvailableSites(m_cms, false, false, m_ou.getValue());

        IndexedContainer container = new IndexedContainer();
        container.addContainerProperty("caption", String.class, "");
        CmsSite firstNoRootSite = null;
        for (CmsSite site : sitesList) {
            if (CmsStringUtil.isEmptyOrWhitespaceOnly(site.getSiteRoot())) {
                if (hasRole(CmsRole.VFS_MANAGER)
                    | ((m_user == null)
                        & m_group.getValue().equals(OpenCms.getDefaultUsers().getGroupAdministrators()))) {
                    Item item = container.addItem(site.getSiteRoot());
                    item.getItemProperty("caption").setValue(site.getTitle());
                }
            } else {
                if (firstNoRootSite == null) {
                    firstNoRootSite = site;
                }
                Item item = container.addItem(site.getSiteRoot());
                item.getItemProperty("caption").setValue(site.getTitle());
            }
        }
        if (container.size() == 0) {
            if (!container.containsId(A_CmsUI.getCmsObject().getRequestContext().getSiteRoot())) {
                Item defaultItem = container.addItem(A_CmsUI.getCmsObject().getRequestContext().getSiteRoot());
                defaultItem.getItemProperty("caption").setValue(
                    A_CmsUI.getCmsObject().getRequestContext().getSiteRoot());
            }
            m_visSites = false;
        }
        m_site.setContainerDataSource(container);
        m_site.setItemCaptionPropertyId("caption");
        m_site.setNewItemsAllowed(false);
        m_site.setNullSelectionAllowed(false);
        if (settings != null) {
            if (settings.getStartSite().length() >= 1) {
                m_site.select(settings.getStartSite().substring(0, settings.getStartSite().length() - 1));
            } else {
                LOG.error("The start site is unvalid configured");
            }
        } else {

            if (firstNoRootSite != null) {
                m_site.select(firstNoRootSite.getSiteRoot());
            } else {
                m_site.select(container.getItemIds().get(0));
            }
        }
    }
91463
private void initialize() {
        this.setContentPane(getJPanel());
        this.setVisible(false);
        this.setTitle(Constant.messages.getString("history.filter.title"));
        if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        	this.setSize(600, 300);
        }
        centreDialog();
        this.getRootPane().setDefaultButton(btnApply);
        this.pack();
	}
759588
public void init(CmsUser user) {

        m_user = user;

        // try to initialize the User Settings with the values stored in the user object.
        // if no values are found, the default user settings will be used.

        // workplace button style
        try {
            m_workplaceButtonStyle = ((Integer)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_WORKPLACEGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_BUTTONSTYLE)).intValue();
        } catch (Throwable t) {
            m_workplaceButtonStyle = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceButtonStyle();
        }
        // workplace time warp setting
        Object timeWarpObj = m_user.getAdditionalInfo(ADDITIONAL_INFO_TIMEWARP);
        try {
            m_timeWarp = ((Long)timeWarpObj).longValue();
        } catch (ClassCastException e) {
            try {
                m_timeWarp = Long.parseLong((String)timeWarpObj);
                if (m_timeWarp < 0) {
                    m_timeWarp = CmsContextInfo.CURRENT_TIME;
                }
            } catch (Throwable t) {
                m_timeWarp = CmsContextInfo.CURRENT_TIME;
            }
        } catch (Throwable t) {
            m_timeWarp = CmsContextInfo.CURRENT_TIME;
        }
        // workplace report type
        m_workplaceReportType = (String)m_user.getAdditionalInfo(
            PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACEGENERALOPTIONS + CmsWorkplaceConfiguration.N_REPORTTYPE);
        if (m_workplaceReportType == null) {
            m_workplaceReportType = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceReportType();
        }
        // workplace list all projects
        try {
            m_listAllProjects = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_WORKPLACEGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_LISTALLPROJECTS)).booleanValue();
        } catch (Throwable t) {
            m_listAllProjects = OpenCms.getWorkplaceManager().getDefaultUserSettings().getListAllProjects();
        }
        // workplace show publish notification
        try {
            m_showPublishNotification = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_WORKPLACEGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_PUBLISHNOTIFICATION)).booleanValue();
        } catch (Throwable t) {
            m_showPublishNotification = OpenCms.getWorkplaceManager().getDefaultUserSettings().getShowPublishNotification();
        }
        // workplace upload applet mode
        setUploadVariant(
            String.valueOf(
                m_user.getAdditionalInfo(
                    PREFERENCES
                        + CmsWorkplaceConfiguration.N_WORKPLACEGENERALOPTIONS
                        + CmsWorkplaceConfiguration.N_UPLOADAPPLET)));

        // locale
        Object obj = m_user.getAdditionalInfo(
            PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS + CmsWorkplaceConfiguration.N_LOCALE);
        if (obj == null) {
            m_locale = null;
        } else {
            m_locale = CmsLocaleManager.getLocale(String.valueOf(obj));
        }
        if (m_locale == null) {
            m_locale = OpenCms.getWorkplaceManager().getDefaultUserSettings().getLocale();
        }
        // start project
        try {
            m_project = (String)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS
                    + CmsWorkplaceConfiguration.N_PROJECT);
        } catch (Throwable t) {
            m_project = null;
        }
        if (m_project == null) {
            m_project = OpenCms.getWorkplaceManager().getDefaultUserSettings().getStartProject();
            String ou = user.getOuFqn();
            if (ou == null) {
                ou = "";
            }
            m_project = user.getOuFqn() + m_project;
        }
        // start view
        m_view = (String)m_user.getAdditionalInfo(
            PREFERENCES
                + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS
                + CmsWorkplaceConfiguration.N_WORKPLACEVIEW);
        if (m_view == null) {
            m_view = OpenCms.getWorkplaceManager().getDefaultUserSettings().getStartView();
        }
        // explorer button style
        try {
            m_explorerButtonStyle = ((Integer)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_EXPLORERGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_BUTTONSTYLE)).intValue();
        } catch (Throwable t) {
            m_explorerButtonStyle = OpenCms.getWorkplaceManager().getDefaultUserSettings().getExplorerButtonStyle();
        }
        // explorer file entries
        try {
            m_explorerFileEntries = ((Integer)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_EXPLORERGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_ENTRIES)).intValue();
        } catch (Throwable t) {
            m_explorerFileEntries = OpenCms.getWorkplaceManager().getDefaultUserSettings().getExplorerFileEntries();
        }
        // explorer settings
        try {
            m_explorerSettings = ((Integer)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_EXPLORERGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_EXPLORERDISPLAYOPTIONS)).intValue();
        } catch (Throwable t) {
            m_explorerSettings = OpenCms.getWorkplaceManager().getDefaultUserSettings().getExplorerSettings();
        }
        // dialog file copy mode
        try {
            m_dialogFileCopy = CmsResourceCopyMode.valueOf(
                ((Integer)m_user.getAdditionalInfo(
                    PREFERENCES
                        + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                        + CmsWorkplaceConfiguration.N_FILECOPY)).intValue());
        } catch (Throwable t) {
            m_dialogFileCopy = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogCopyFileMode();
        }
        // dialog folder copy mode
        try {
            m_dialogFolderCopy = CmsResourceCopyMode.valueOf(
                ((Integer)m_user.getAdditionalInfo(
                    PREFERENCES
                        + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                        + CmsWorkplaceConfiguration.N_FOLDERCOPY)).intValue());
        } catch (Throwable t) {
            m_dialogFolderCopy = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogCopyFolderMode();
        }
        // dialog file delete mode
        try {
            m_dialogFileDelete = CmsResourceDeleteMode.valueOf(
                ((Integer)m_user.getAdditionalInfo(
                    PREFERENCES
                        + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                        + CmsWorkplaceConfiguration.N_FILEDELETION)).intValue());
        } catch (Throwable t) {
            m_dialogFileDelete = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogDeleteFileMode();
        }
        // dialog direct publish mode
        try {
            m_dialogDirectpublish = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                    + CmsWorkplaceConfiguration.N_DIRECTPUBLISH)).booleanValue();
        } catch (Throwable t) {
            m_dialogDirectpublish = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogPublishSiblings();
        }
        // dialog show lock mode
        try {
            m_showLock = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                    + CmsWorkplaceConfiguration.N_SHOWLOCK)).booleanValue();
        } catch (Throwable t) {
            m_showLock = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogShowLock();
        }
        // dialog show export settings mode
        try {
            m_showExportSettings = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                    + CmsWorkplaceConfiguration.N_SHOWEXPORTSETTINGS)).booleanValue();
        } catch (Throwable t) {
            m_showExportSettings = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogShowExportSettings();
        }
        // dialog permissions inheriting mode
        try {
            m_dialogPermissionsInheritOnFolder = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                    + CmsWorkplaceConfiguration.N_PERMISSIONSINHERITONFOLDER)).booleanValue();
        } catch (Throwable t) {
            m_dialogPermissionsInheritOnFolder = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogPermissionsInheritOnFolder();
        }
        // dialog expand inherited permissions mode
        try {
            m_dialogExpandInheritedPermissions = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                    + CmsWorkplaceConfiguration.N_EXPANDPERMISSIONSINHERITED)).booleanValue();
        } catch (Throwable t) {
            m_dialogExpandInheritedPermissions = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogExpandInheritedPermissions();
        }
        // dialog expand users permissions mode
        try {
            m_dialogExpandUserPermissions = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_DIALOGSDEFAULTSETTINGS
                    + CmsWorkplaceConfiguration.N_EXPANDPERMISSIONSUSER)).booleanValue();
        } catch (Throwable t) {
            m_dialogExpandUserPermissions = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDialogExpandUserPermissions();
        }
        // editor button style
        try {
            m_editorButtonStyle = ((Integer)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_EDITORGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_BUTTONSTYLE)).intValue();
        } catch (Throwable t) {
            m_editorButtonStyle = OpenCms.getWorkplaceManager().getDefaultUserSettings().getEditorButtonStyle();
        }
        // direct edit button style
        try {
            m_directeditButtonStyle = ((Integer)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_EDITORGENERALOPTIONS
                    + CmsWorkplaceConfiguration.N_DIRECTEDITSTYLE)).intValue();
        } catch (Throwable t) {
            m_directeditButtonStyle = OpenCms.getWorkplaceManager().getDefaultUserSettings().getDirectEditButtonStyle();
        }
        // editor settings
        m_editorSettings = new TreeMap<String, String>();
        Iterator<String> itKeys = m_user.getAdditionalInfo().keySet().iterator();
        while (itKeys.hasNext()) {
            String key = itKeys.next();
            if (key.startsWith(PREFERENCES + CmsWorkplaceConfiguration.N_EDITORPREFERREDEDITORS)) {
                String editKey = key.substring(
                    (PREFERENCES + CmsWorkplaceConfiguration.N_EDITORPREFERREDEDITORS).length());
                m_editorSettings.put(editKey, m_user.getAdditionalInfo(key).toString());
            }
        }
        if (m_editorSettings.isEmpty()) {
            m_editorSettings = new TreeMap<String, String>(
                OpenCms.getWorkplaceManager().getDefaultUserSettings().getEditorSettings());

        }
        // start gallery settings
        m_startGalleriesSettings = new TreeMap<String, String>();
        Iterator<String> gKeys = m_user.getAdditionalInfo().keySet().iterator();
        while (gKeys.hasNext()) {
            String key = gKeys.next();
            if (key.startsWith(PREFERENCES + CmsWorkplaceConfiguration.N_STARTGALLERIES)) {
                String editKey = key.substring((PREFERENCES + CmsWorkplaceConfiguration.N_STARTGALLERIES).length());
                m_startGalleriesSettings.put(editKey, m_user.getAdditionalInfo(key).toString());
            }
        }
        if (m_startGalleriesSettings.isEmpty()) {
            m_startGalleriesSettings = new TreeMap<String, String>(
                OpenCms.getWorkplaceManager().getDefaultUserSettings().getStartGalleriesSettings());
        }

        // start site
        m_startSite = (String)m_user.getAdditionalInfo(
            PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS + I_CmsXmlConfiguration.N_SITE);
        if (m_startSite == null) {
            m_startSite = OpenCms.getWorkplaceManager().getDefaultUserSettings().getStartSite();
        }
        // start folder, we use the setter here for default logic in case of illegal folder string:
        String startFolder = (String)m_user.getAdditionalInfo(
            PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS + CmsWorkplaceConfiguration.N_FOLDER);
        if (startFolder == null) {
            startFolder = OpenCms.getWorkplaceManager().getDefaultUserSettings().getStartFolder();
        }
        setStartFolder(startFolder);

        // restrict explorer folder view
        try {
            m_restrictExplorerView = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_WORKPLACESTARTUPSETTINGS
                    + CmsWorkplaceConfiguration.N_RESTRICTEXPLORERVIEW)).booleanValue();
        } catch (Throwable t) {
            m_restrictExplorerView = OpenCms.getWorkplaceManager().getDefaultUserSettings().getRestrictExplorerView();
        }
        // workplace search
        m_workplaceSearchIndexName = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceSearchIndexName();

        m_workplaceSearchViewStyle = CmsSearchResultStyle.valueOf(
            (String)m_user.getAdditionalInfo(
                PREFERENCES
                    + CmsWorkplaceConfiguration.N_WORKPLACESEARCH
                    + CmsWorkplaceConfiguration.N_SEARCHVIEWSTYLE));
        if (m_workplaceSearchViewStyle == null) {
            m_workplaceSearchViewStyle = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceSearchViewStyle();
        }
        // synchronize settings
        try {
            boolean enabled = ((Boolean)m_user.getAdditionalInfo(
                PREFERENCES + SYNC_SETTINGS + SYNC_ENABLED)).booleanValue();
            String destination = (String)m_user.getAdditionalInfo(PREFERENCES + SYNC_SETTINGS + SYNC_DESTINATION);
            List<String> vfsList = CmsStringUtil.splitAsList(
                (String)m_user.getAdditionalInfo(PREFERENCES + SYNC_SETTINGS + SYNC_VFS_LIST),
                '|');
            m_synchronizeSettings = new CmsSynchronizeSettings();
            m_synchronizeSettings.setEnabled(enabled);
            m_synchronizeSettings.setDestinationPathInRfs(destination);
            m_synchronizeSettings.setSourceListInVfs(vfsList);
        } catch (Throwable t) {
            // default is to disable the synchronize settings
            m_synchronizeSettings = null;
        }
        // upload applet client folder path
        m_uploadAppletClientFolder = (String)m_user.getAdditionalInfo(ADDITIONAL_INFO_UPLOADAPPLET_CLIENTFOLDER);

        for (Map.Entry<String, Object> entry : m_user.getAdditionalInfo().entrySet()) {
            String key = entry.getKey();
            if (key.startsWith(CmsUserSettings.PREFERENCES_ADDITIONAL_PREFIX)) {
                try {
                    String value = (String)entry.getValue();
                    m_additionalPreferences.put(
                        key.substring(CmsUserSettings.PREFERENCES_ADDITIONAL_PREFIX.length()),
                        value);
                } catch (ClassCastException e) {
                    LOG.warn(e.getLocalizedMessage(), e);
                }
            }
        }

        try {
            save(null);
        } catch (CmsException e) {
            // ignore
            if (LOG.isWarnEnabled()) {
                LOG.warn(e.getLocalizedMessage(), e);
            }
        }
    }
759274
protected void initHistorySettingsObject() {

        Object o;

        if (CmsStringUtil.isEmpty(getParamAction())) {
            o = new CmsHistorySettings();
        } else {
            // this is not the initial call, get the job object from session
            o = getDialogObject();
        }

        if (!(o instanceof CmsHistorySettings)) {

            // create a new history settings handler object
            m_historySettings = new CmsHistorySettings();
        } else {

            // reuse html import handler object stored in session
            m_historySettings = (CmsHistorySettings)o;
        }
    }
582421
protected void initExportObject() {

        try {
            if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
                // create a new list
                m_reasons = new HashMap();
            } else {
                Map objects = (Map)getSettings().getDialogObject();
                if (objects == null) {
                    // using hashtable as most efficient version of a synchronized map
                    objects = new Hashtable();
                    getSettings().setDialogObject(objects);
                }
                m_reasons = (Map)objects.get(getClass().getName());
            }
        } catch (Exception e) {
            // create a new list
            m_reasons = new HashMap();
        }
    }
333737
protected void initOptions() {
        if (null != toolOptions && !optionsHaveInited) {
            for (CLIToolOptions toolOpts : toolOptions) {
                toolOpts.addOptions(options);
            }
            optionsHaveInited=true;
        }
    }