Package org.apache.cayenne.modeler.dialog.db

Examples of org.apache.cayenne.modeler.dialog.db.DataSourceWizard


    public void performAction(ActionEvent e) {

        DBConnectionInfo nodeInfo = preferredDataSource();
        String nodeKey = preferredDataSourceLabel(nodeInfo);

        DataSourceWizard connectWizard = new DataSourceWizard(
                getProjectController(),
                "Generate DB Schema: Connect to Database",
                nodeKey,
                nodeInfo);

        if (!connectWizard.startupAction()) {
            // canceled
            return;
        }

        DataMap map = getProjectController().getCurrentDataMap();

        // sanity check
        if (map == null) {
            throw new IllegalStateException("No current DataMap selected.");
        }

        // ... show dialog...
        new DBGeneratorOptions(
                getProjectController(),
                "Generate DB Schema: Options",
                connectWizard.getConnectionInfo(),
                map).startupAction();
    }
View Full Code Here


    public void performAction(ActionEvent e) {

        DBConnectionInfo nodeInfo = preferredDataSource();
        String nodeKey = preferredDataSourceLabel(nodeInfo);

        DataSourceWizard connectWizard = new DataSourceWizard(
                getProjectController(),
                "Generate DB Schema: Connect to Database",
                nodeKey,
                nodeInfo);

        if (!connectWizard.startupAction()) {
            // canceled
            return;
        }

        DataMap map = getProjectController().getCurrentDataMap();

        // sanity check
        if (map == null) {
            throw new IllegalStateException("No current DataMap selected.");
        }

        // ... show dialog...
        new DBGeneratorOptions(
                getProjectController(),
                "Generate DB Schema: Options",
                connectWizard.getConnectionInfo(),
                map).startupAction();
    }
View Full Code Here

    public void performAction(ActionEvent e) {

        DBConnectionInfo nodeInfo = preferredDataSource();
        String nodeKey = preferredDataSourceLabel(nodeInfo);

        DataSourceWizard connectWizard = new DataSourceWizard(
                getProjectController(),
                "Migrate DB Schema: Connect to Database",
                nodeKey,
                nodeInfo);

        if (!connectWizard.startupAction()) {
            // canceled
            return;
        }

        DataMap map = getProjectController().getCurrentDataMap();

        // sanity check
        if (map == null) {
            throw new IllegalStateException("No current DataMap selected.");
        }

        // ... show dialog...
        new MergerOptions(
                getProjectController(),
                "Migrate DB Schema: Options",
                connectWizard.getConnectionInfo(),
                map).startupAction();
    }
View Full Code Here

    public void performAction(ActionEvent e) {

        DBConnectionInfo nodeInfo = preferredDataSource();
        String nodeKey = preferredDataSourceLabel(nodeInfo);

        DataSourceWizard connectWizard = new DataSourceWizard(
                getProjectController(),
                "Migrate DB Schema: Connect to Database",
                nodeKey,
                nodeInfo);

        if (!connectWizard.startupAction()) {
            // canceled
            return;
        }

        DataMap map = getProjectController().getCurrentDataMap();

        // sanity check
        if (map == null) {
            throw new IllegalStateException("No current DataMap selected.");
        }

        // ... show dialog...
        new MergerOptions(
                getProjectController(),
                "Migrate DB Schema: Options",
                connectWizard.getConnectionInfo(),
                map).startupAction();
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.modeler.dialog.db.DataSourceWizard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.