Search in sources :

Example 1 with ApplicationPreferences

use of com.servoy.j2db.preference.ApplicationPreferences in project servoy-client by Servoy.

the class J2DBClient method showAppPrefs.

/**
 * Show the application dialog
 */
public void showAppPrefs() {
    if (ap == null) {
        // $NON-NLS-1$
        blockGUI(Messages.getString("servoy.client.status.loading.preferencepanels"));
        // show cursor / hide menu
        SwingHelper.dispatchEvents(300);
        try {
            ap = new ApplicationPreferences(this);
            // Load all default tabs
            loadPreferecesPanels(ap);
            // Load plugins tabs
            ((ClientPluginManager) pluginManager).addPreferenceTabs(ap);
            ap.pack();
            ap.setLocationRelativeTo(mainPanel);
        } finally {
            releaseGUI();
        }
    }
    ap.setVisible(true);
}
Also used : ClientPluginManager(com.servoy.j2db.smart.plugins.ClientPluginManager) ApplicationPreferences(com.servoy.j2db.preference.ApplicationPreferences)

Aggregations

ApplicationPreferences (com.servoy.j2db.preference.ApplicationPreferences)1 ClientPluginManager (com.servoy.j2db.smart.plugins.ClientPluginManager)1