Package org.fenrir.yggdrasil.ui.dialog

Examples of org.fenrir.yggdrasil.ui.dialog.WorkspaceDialog


    {     
        IWorkspaceAdministrationService workspaceService = (IWorkspaceAdministrationService)ApplicationContext.getInstance().getRegisteredComponent(IWorkspaceAdministrationService.class);
       
        // No s'ha indicat cap directori. S'obre la finestra de sel.lecció
        if(StringUtils.isBlank(workspaceFolder)){
            WorkspaceDialog dialog = new WorkspaceDialog();
            int returnCode = dialog.open();
           
            if(returnCode==WorkspaceDialog.DIALOG_OK){
                workspaceFolder = dialog.getWorkspacePath();
                // S'afegeix al registre el nou workspace
                try{
                    workspaceService.addWorkspace(workspaceFolder, dialog.isDefaultWorkspace());
                }
                catch(PreferenceException e){
                    log.error("Error al carregar workspace: {}", e.getMessage(), e);
                    JOptionPane.showMessageDialog(null, "Error al carregar workspace: " + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
                }
View Full Code Here

TOP

Related Classes of org.fenrir.yggdrasil.ui.dialog.WorkspaceDialog

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.