Package org.eclipse.jdt.internal.ui.util

Examples of org.eclipse.jdt.internal.ui.util.BusyIndicatorRunnableContext


    browsePackage = new Button(classGroup, SWT.PUSH);
    browsePackage.setText(ClickPlugin.getString("action.browse"));
    browsePackage.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent evt){
        IRunnableContext context= new BusyIndicatorRunnableContext();
        int style = PackageSelectionDialog.F_REMOVE_DUPLICATES |
                    PackageSelectionDialog.F_SHOW_PARENTS |
                    PackageSelectionDialog.F_HIDE_DEFAULT_PACKAGE;

        JavaSearchScope scope = new JavaSearchScope();
View Full Code Here


        ISchedulingRule schedulingRule = ResourcesPlugin.getWorkspace()
                .getRoot();
        PtolemySortMembersOperation operation = new PtolemySortMembersOperation(
                compilationUnit, null, false);
        try {
            BusyIndicatorRunnableContext context = new BusyIndicatorRunnableContext();
            PlatformUI.getWorkbench().getProgressService().runInUI(context,
                    new WorkbenchRunnableAdapter(operation, schedulingRule),
                    schedulingRule);
        } catch (InvocationTargetException e) {
            OutputConsole.outputError(e.getMessage());
View Full Code Here

   
    browsePackage = new Button(classGroup, SWT.PUSH);
    browsePackage.setText(ClickPlugin.getString("action.browse"));
    browsePackage.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent evt){
        IRunnableContext context= new BusyIndicatorRunnableContext();
        int style = PackageSelectionDialog.F_REMOVE_DUPLICATES |
                    PackageSelectionDialog.F_SHOW_PARENTS |
                    PackageSelectionDialog.F_HIDE_DEFAULT_PACKAGE;
       
        JavaSearchScope scope = new JavaSearchScope();
View Full Code Here

    IJavaProject project = invocationContext.getCompilationUnit().getJavaProject();
    IClasspathEntry entry = BuildPathSupport.getTestNGClasspathEntry();
    if (entry != null) {
      Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
      try {
        addToClasspath(shell, project, entry, new BusyIndicatorRunnableContext());
      }
      catch (JavaModelException e) {
        ErrorDialog.openError(shell,
                              ResourceUtil.getString("AddTestNGLibraryProposal.error"), //$NON-NLS-1$
                              ResourceUtil.getString("AddTestNGLibraryProposal.cannotAdd"), //$NON-NLS-1$
View Full Code Here

    int constraints = IJavaSearchScope.SOURCES;
    constraints |= IJavaSearchScope.APPLICATION_LIBRARIES;

    IJavaSearchScope searchScope = SearchEngine.createJavaSearchScope( elements, constraints );
    BusyIndicatorRunnableContext context = new BusyIndicatorRunnableContext();

    MainTypeSelectionDialog dialog = new MainTypeSelectionDialog( parent, context, searchScope, 0 );
    dialog.setTitle( "Find class" );
    dialog.setMessage( "Find the class used to launch the application" );
    if ( dialog.open() == Window.CANCEL ) {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.ui.util.BusyIndicatorRunnableContext

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.