Search in sources :

Example 1 with ClientPluginManager

use of com.servoy.j2db.smart.plugins.ClientPluginManager in project servoy-client by Servoy.

the class J2DBClient method createPluginManager.

@Override
protected void createPluginManager() {
    pluginManager = new ClientPluginManager(this);
    pluginAccess = createClientPluginAccessProvider();
    getScheduledExecutor().execute(new Runnable() {

        public void run() {
            if (isShutDown())
                return;
            getPluginManager().init();
            ((PluginManager) getPluginManager()).initClientPlugins(J2DBClient.this, (IClientPluginAccess) getPluginAccess());
            ((FoundSetManager) getFoundSetManager()).setColumnManangers(getPluginManager().getColumnValidatorManager(), getPluginManager().getColumnConverterManager(), getPluginManager().getUIConverterManager());
        }
    });
}
Also used : ClientPluginManager(com.servoy.j2db.smart.plugins.ClientPluginManager) IClientPluginAccess(com.servoy.j2db.plugins.IClientPluginAccess)

Example 2 with ClientPluginManager

use of com.servoy.j2db.smart.plugins.ClientPluginManager 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

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