Package org.eclipse.jdt.ui.text.java.ClasspathFixProcessor

Examples of org.eclipse.jdt.ui.text.java.ClasspathFixProcessor.ClasspathFixProposal


        fixProposals);
    if (dialog.open() != 0) {
      throw new OperationCanceledException();
    }

    final ClasspathFixProposal fix = dialog.getSelectedClasspathFix();
    if (fix != null) {
      return new IRunnableWithProgress() {

        /*
         * (non-Javadoc)
         * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor)
         */
        @Override
        public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
          if (monitor == null) {
            monitor = new NullProgressMonitor();
          }
          monitor.beginTask(WizardMessages.NewTestCaseCreationWizard_create_progress, 4);
          try {
            Change change = fix.createChange(new SubProgressMonitor(monitor, 1));
            new PerformChangeOperation(change).run(new SubProgressMonitor(monitor, 1));

            runnable.run(new SubProgressMonitor(monitor, 2));
          } catch (OperationCanceledException e) {
            throw new InterruptedException();
View Full Code Here


       * @see org.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object)
       */
      @Override
      public Image getImage(Object element) {
        if (element instanceof ClasspathFixProposal) {
          ClasspathFixProposal classpathFixProposal = (ClasspathFixProposal) element;
          return classpathFixProposal.getImage();
        }
        return null;
      }
View Full Code Here

       * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object)
       */
      @Override
      public String getText(Object element) {
        if (element instanceof ClasspathFixProposal) {
          ClasspathFixProposal classpathFixProposal = (ClasspathFixProposal) element;
          return classpathFixProposal.getDisplayString();
        }
        return null;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.ui.text.java.ClasspathFixProcessor.ClasspathFixProposal

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.