Examples of OmsBoxView


Examples of org.locationtech.udig.omsbox.view.OmsBoxView

        this.view = view;
    }

    public void run( IAction action ) {
        if (view instanceof OmsBoxView) {
            OmsBoxView omsView = (OmsBoxView) view;
            try {
                String script = omsView.generateScriptForSelectedModule();
                if (script == null) {
                    return;
                }
                Program program = Program.findProgram(".txt");
                if (program != null) {
View Full Code Here

Examples of org.locationtech.udig.omsbox.view.OmsBoxView

        this.view = view;
    }

    public void run( IAction action ) {
        if (view instanceof OmsBoxView) {
            OmsBoxView omsView = (OmsBoxView) view;
            try {
                omsView.runSelectedModule();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
View Full Code Here

Examples of org.locationtech.udig.omsbox.view.OmsBoxView

    }

    public void run( IAction action ) {
        if (view instanceof OmsBoxView) {

            final OmsBoxView dbView = (OmsBoxView) view;

            Shell shell = dbView.getSite().getShell();

            SettingsDialog dialog = new SettingsDialog();
            dialog.open(shell, SWT.MULTI);

            if (dialog.isCancelPressed()) {
                return;
            }

            final List<String> resources = dialog.getSelectedResources();
            IRunnableWithProgress operation = new IRunnableWithProgress(){
                public void run( IProgressMonitor pm ) throws InvocationTargetException, InterruptedException {
                    pm.beginTask(OmsBoxView.LOADING_MODULES_FROM_LIBRARIES, IProgressMonitor.UNKNOWN);
                    try {

                        OmsModulesManager manager = OmsModulesManager.getInstance();
                        manager.clearJars();
                        for( String resource : resources ) {
                            manager.addJar(resource);
                        }
                        manager.browseModules(true);

                        dbView.relayout();
                    } catch (Exception e) {
                        e.printStackTrace();
                    } finally {
                        pm.done();
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.