Examples of IReviewboardClientRepository


Examples of com.taobao.eclipse.plugin.reviewboard.core.config.clientmanager.IReviewboardClientRepository

            }
       
        }
        selectedResources = selectedResourceList.toArray( new IResource[selectedResourceList.size()] );

        final IReviewboardClientRepository reviewboardClientRepository = SVNClientRepositoryAwair.getReviewboardClientRepository();
       
        //友好化用户体验
        if( null == reviewboardClientRepository.getClientFromUrlToClientMap()){
            run(new IRunnableWithProgress() {
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    if( null != reviewboardClientRepository ){
                        if( null != monitor ){
                            monitor.setTaskName(RbSubclipseMessages.getString("PROGRESS_READINGCACHE")); //$NON-NLS-1$
                            monitor.worked(1);
                        }
                        try {
                            reviewboardClient = reviewboardClientRepository.getClient(false, monitor);
                        } catch (OperationCanceledException e) {
                            return ;
                        }
                    }
                }
            }, true, PROGRESS_DIALOG);
        }else{
            try {
                reviewboardClient = reviewboardClientRepository.getClient(false, null);
            } catch (OperationCanceledException e) {
                return ;
            }
        }
       
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.config.clientmanager.IReviewboardClientRepository

       
        if( !validateOther() ){
            return ;
        }
       
        final IReviewboardClientRepository reviewboardClientRepository = SVNClientRepositoryAwair.getReviewboardClientRepository();
       
        //友好化用户体验
        if( null == reviewboardClientRepository.getClientFromUrlToClientMap()){
            run(new IRunnableWithProgress() {
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    if( null != reviewboardClientRepository ){
                        if( null != monitor ){
                            monitor.setTaskName(RbSubclipseMessages.getString("PROGRESS_READINGCACHE")); //$NON-NLS-1$
                            monitor.worked(1);
                        }
                        try {
                            reviewboardClient = reviewboardClientRepository.getClient(false, monitor);
                        } catch (OperationCanceledException e) {
                            return ;
                        }
                    }
                }
            }, true, PROGRESS_DIALOG);
        }else{
            try {
                reviewboardClient = reviewboardClientRepository.getClient(false, null);
            } catch (OperationCanceledException e) {
                return ;
            }
        }
       
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.config.clientmanager.IReviewboardClientRepository

                        RbCoreMessages.getString("ERROR_USERNAMEPASSWORD_0"));
                return false;
            }
        }

        IReviewboardClientRepository rbClientRepository = ReviewboardClientRepository.getSingletonInstance();
       
        if( !txtServer.getText().trim().isEmpty() ){
            String serverUrl =  ReviewboardUtil.norminateRepositoryUrl( txtServer.getText().trim() ) ;
            if( !txtUserId.getText().trim().isEmpty() && !txtPassword.getText().trim().isEmpty() ){
                if( null == rbClientRepository ){
                    return false;
                }
                IReviewboardClient reviewboardClient = rbClientRepository.getClientFromUrlToClientMap();
                if( null == reviewboardClient || null == reviewboardClient.getServerUrl()
                        || !reviewboardClient.getServerUrl().trim().equalsIgnoreCase(serverUrl.trim()) ){
                    reviewboardClient = rbClientRepository.getClient( false, serverUrl,
                            txtUserId.getText().trim(), txtPassword.getText().trim(), CHARACTER_ENCODING );
                }
                if( null == reviewboardClient ){
                    reviewboardClient = rbClientRepository.getClient( false, serverUrl,
                            txtUserId.getText().trim(), txtPassword.getText().trim(), CHARACTER_ENCODING );
                }
                IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
                //验证用户名和密码是否正确
                boolean isSuccess = reviewboardService.validCredentials( txtUserId.getText().trim(), txtPassword.getText().trim(), null );
View Full Code Here

Examples of com.taobao.eclipse.plugin.reviewboard.core.config.clientmanager.IReviewboardClientRepository

        cacheResetButton = new Button(group, SWT.NONE);
        cacheResetButton.setText(RbCoreMessages.getString("CACHE_RESET_BTN"));
        cacheResetButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
              IReviewboardClientRepository rbClientRepository = ReviewboardClientRepository.getSingletonInstance();
                if( null != rbClientRepository ){
                    rbClientRepository.resetCache();
                }
                MessageDialog.openInformation( getShell(),
                        RbCoreMessages.getString("TITLE_INFORMATION"),
                        RbCoreMessages.getString("CACHE_RESET_ALREADY"));
            }
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.