org.eclipse.mylyn.tasks.ui_3.7.1.v20120425-0100

});
    }
    if (needsClear)
    {
      Button clearButton = new Button(composite, 8);
      clearButton.setText(Messages.AbstractRepositoryQueryPage2_Clear_Fields);
      clearButton.addSelectionListener(new SelectionAdapter()
      {
        public void widgetSelected(SelectionEvent e)
        {
          doClearControls();
        }
      });
    }
    ProgressMonitorPart progressMonitorPart = new ProgressMonitorPart(composite, null);
    GridDataFactory.fillDefaults().align(4, 1).grab(true, false).applyTo(progressMonitorPart);
    progressMonitorPart.setVisible(false);
    progressContainer = new ProgressContainer(composite.getShell(), progressMonitorPart)
    {
      protected void restoreUiState(Map<Object, Object> state)
      {
        cancelButton.setVisible(false);
        CommonUiUtil.setEnabled(innerComposite, true);
        Control[] arrayOfControl;
        int j = (arrayOfControl = composite.getChildren()).length;
        for (int i = 0; i < j; i++)
        {
          Control control = arrayOfControl[i];
          if ((control instanceof ProgressMonitorPart)) {
            break;
          }
          control.setEnabled(true);
        }
      }
      
      protected void saveUiState(Map<Object, Object> savedState)
      {
        CommonUiUtil.setEnabled(innerComposite, false);
        Control[] arrayOfControl;
        int j = (arrayOfControl = composite.getChildren()).length;
        for (int i = 0; i < j; i++)
        {
          Control control = arrayOfControl[i];
          if ((control instanceof ProgressMonitorPart)) {
            break;
          }
          control.setEnabled(false);
        }
        cancelButton.setEnabled(true);
        cancelButton.setVisible(true);
      }
    };
    cancelButton = new Button(composite, 8);
    cancelButton.setText(IDialogConstants.CANCEL_LABEL);
    cancelButton.setVisible(false);
    progressContainer.setCancelButton(cancelButton);
  }
  
  protected abstract void createPageContent(SectionComposite paramSectionComposite);
  
  protected void doClearControls() {}
  
  protected abstract void doRefreshControls();
  
  protected AbstractRepositoryConnector getConnector()
  {
    return connector;
  }
  
  protected String getSavedStateSettingKey()
  {
    return getName() + "." + getTaskRepository().getRepositoryUrl();
  }
  
  protected abstract boolean hasRepositoryConfiguration();
  
  protected boolean restoreSavedState()
  {
    IDialogSettings settings = getDialogSettings();
    if (settings != null)
    {
      String queryUrl = settings.get(getSavedStateSettingKey());
      if (queryUrl != null)
      {
        RepositoryQuery query = new RepositoryQuery(getTaskRepository().getConnectorKind(), "handle");
        query.setUrl(queryUrl);
        return restoreState(query);
      }
    }
    return false;
  }
  
  protected abstract boolean restoreState(IRepositoryQuery paramIRepositoryQuery);
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositoryQueryPage2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.swt.widgets.Composite;

class AbstractRepositorySettingsPage$19
  extends StringFieldEditor
{
  AbstractRepositorySettingsPage$19(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, String $anonymous0, String $anonymous1, int $anonymous2, Composite $anonymous3)
  {
    super($anonymous0, $anonymous1, $anonymous2, $anonymous3);
  }
  
  protected boolean doCheckState()
  {
    return true;
  }
  
  protected void valueChanged()
  {
    super.valueChanged();
    if (this$0.getWizard() != null) {
      this$0.getWizard().getContainer().updateButtons();
    }
  }
  
  public int getNumberOfControls()
  {
    return 3;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.19
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Button;

class AbstractRepositorySettingsPage$25
  implements SelectionListener
{
  AbstractRepositorySettingsPage$25(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    this$0.setProxyAuth(AbstractRepositorySettingsPage.access$8(this$0).getSelection());
  }
  
  public void widgetDefaultSelected(SelectionEvent e) {}
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.25
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.swt.widgets.Composite;

class AbstractRepositorySettingsPage$7
  extends StringFieldEditor
{
  AbstractRepositorySettingsPage$7(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, String $anonymous0, String $anonymous1, int $anonymous2, Composite $anonymous3)
  {
    super($anonymous0, $anonymous1, $anonymous2, $anonymous3);
  }
  
  protected boolean doCheckState()
  {
    return true;
  }
  
  protected void valueChanged()
  {
    super.valueChanged();
    this$0.isPageComplete();
    if (this$0.getWizard() != null) {
      this$0.getWizard().getContainer().updateButtons();
    }
  }
  
  public int getNumberOfControls()
  {
    return 2;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.7
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import java.util.Map;
import org.eclipse.jface.wizard.ProgressMonitorPart;
import org.eclipse.mylyn.commons.ui.CommonUiUtil;
import org.eclipse.mylyn.commons.ui.ProgressContainer;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;

class AbstractRepositoryQueryPage2$6
  extends ProgressContainer
{
  AbstractRepositoryQueryPage2$6(AbstractRepositoryQueryPage2 paramAbstractRepositoryQueryPage2, Shell $anonymous0, ProgressMonitorPart $anonymous1, Composite paramComposite)
  {
    super($anonymous0, $anonymous1);
  }
  
  protected void restoreUiState(Map<Object, Object> state)
  {
    AbstractRepositoryQueryPage2.access$3(this$0).setVisible(false);
    CommonUiUtil.setEnabled(AbstractRepositoryQueryPage2.access$4(this$0), true);
    Control[] arrayOfControl;
    int j = (arrayOfControl = val$composite.getChildren()).length;
    for (int i = 0; i < j; i++)
    {
      Control control = arrayOfControl[i];
      if ((control instanceof ProgressMonitorPart)) {
        break;
      }
      control.setEnabled(true);
    }
  }
  
  protected void saveUiState(Map<Object, Object> savedState)
  {
    CommonUiUtil.setEnabled(AbstractRepositoryQueryPage2.access$4(this$0), false);
    Control[] arrayOfControl;
    int j = (arrayOfControl = val$composite.getChildren()).length;
    for (int i = 0; i < j; i++)
    {
      Control control = arrayOfControl[i];
      if ((control instanceof ProgressMonitorPart)) {
        break;
      }
      control.setEnabled(false);
    }
    AbstractRepositoryQueryPage2.access$3(this$0).setEnabled(true);
    AbstractRepositoryQueryPage2.access$3(this$0).setVisible(true);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositoryQueryPage2.6
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.mylyn.tasks.core.TaskRepository;

public abstract interface ITaskRepositoryPage
  extends IWizardPage
{
  public abstract void applyTo(TaskRepository paramTaskRepository);
  
  public abstract String getRepositoryUrl();
  
  public abstract void performFinish(TaskRepository paramTaskRepository);
  
  public abstract boolean preFinish(TaskRepository paramTaskRepository);
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.ITaskRepositoryPage
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.mylyn.tasks.core.data.TaskAttachmentMapper;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.widgets.Text;

class TaskAttachmentPage$5
  implements ModifyListener
{
  TaskAttachmentPage$5(TaskAttachmentPage paramTaskAttachmentPage) {}
  
  public void modifyText(ModifyEvent e)
  {
    TaskAttachmentPage.access$0(this$0).setFileName(TaskAttachmentPage.access$6(this$0).getText());
    TaskAttachmentPage.access$7(this$0, TaskAttachmentPage.access$6(this$0).getText());
    TaskAttachmentPage.access$2(this$0);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.TaskAttachmentPage.5
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IContributor;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.resource.FontRegistry;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.util.SafeRunnable;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.wizards.Messages;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.forms.events.ExpansionAdapter;
import org.eclipse.ui.forms.events.ExpansionEvent;
import org.eclipse.ui.forms.widgets.ExpandableComposite;
import org.eclipse.ui.forms.widgets.FormToolkit;

public abstract class AbstractTaskRepositoryPage
  extends WizardPage
  implements ITaskRepositoryPage
{
  private static final String CLASS = "class";
  private static final String ID = "id";
  private static final String KIND = "connectorKind";
  private static final String TASK_REPOSITORY_PAGE_CONTRIBUTION = "taskRepositoryPageContribution";
  private static final String TASK_REPOSITORY_PAGE_CONTRIBUTION_EXTENSION = "org.eclipse.mylyn.tasks.ui.taskRepositoryPageContribution";
  private static final Comparator<AbstractTaskRepositoryPageContribution> CONTRIBUTION_COMPARATOR = new ContributionComparator(null);
  private final TaskRepository repository;
  private final List<AbstractTaskRepositoryPageContribution> contributions;
  FormToolkit toolkit;
  private final AbstractTaskRepositoryPageContribution.Listener contributionListener = new AbstractTaskRepositoryPageContribution.Listener()
  {
    public void validationRequired(AbstractTaskRepositoryPageContribution contribution)
    {
      AbstractTaskRepositoryPage.this.validatePageSettings();
    }
  };
  
  public AbstractTaskRepositoryPage(String title, String description, TaskRepository repository)
  {
    super(title);
    if ((repository != null) && (!repository.getConnectorKind().equals(getConnectorKind()))) {
      throw new IllegalArgumentException(
        "connectorKind of repository does not match connectorKind of page, expected '" + getConnectorKind() + "', got '" + repository.getConnectorKind() + "'");
    }
    this.repository = repository;
    contributions = new ArrayList();
    setTitle(title);
    setDescription(description);
  }
  
  public abstract String getConnectorKind();
  
  public void dispose()
  {
    if (toolkit != null)
    {
      toolkit.dispose();
      toolkit = null;
    }
    super.dispose();
  }
  
  public void createControl(Composite parent)
  {
    initializeDialogUnits(parent);
    toolkit = new FormToolkit(TasksUiPlugin.getDefault().getFormColors(parent.getDisplay()));
    
    Composite compositeContainer = new Composite(parent, 0);
    GridLayout layout = new GridLayout(3, false);
    compositeContainer.setLayout(layout);
    
    createSettingControls(compositeContainer);
    createContributionControls(compositeContainer);
    
    Dialog.applyDialogFont(compositeContainer);
    setControl(compositeContainer);
  }
  
  protected abstract void createSettingControls(Composite paramComposite);
  
  public boolean isPageComplete()
  {
    return (super.isPageComplete()) && (conributionsIsPageComplete());
  }
  
  public boolean canFlipToNextPage()
  {
    return (super.canFlipToNextPage()) && (contributionsCanFlipToNextPage());
  }
  
  private boolean contributionsCanFlipToNextPage()
  {
    for (AbstractTaskRepositoryPageContribution contribution : contributions) {
      if (!contribution.canFlipToNextPage()) {
        return false;
      }
    }
    return true;
  }
  
  private boolean conributionsIsPageComplete()
  {
    for (AbstractTaskRepositoryPageContribution contribution : contributions) {
      if (!contribution.isPageComplete()) {
        return false;
      }
    }
    return true;
  }
  
  protected void createContributionControls(Composite parentControl)
  {
    contributions.clear();
    contributions.addAll(findApplicableContributors());
    if (!contributions.isEmpty())
    {
      final List<AbstractTaskRepositoryPageContribution> badContributions = new ArrayList();
      for (final AbstractTaskRepositoryPageContribution contribution : contributions) {
        SafeRunnable.run(new SafeRunnable()
        {
          public void run()
            throws Exception
          {
            contribution.init(getConnectorKind(), repository);
            contribution.addListener(contributionListener);
          }
          
          public void handleException(Throwable e)
          {
            badContributions.add(contribution);
            StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", NLS.bind(
              "Problems occured when initializing contribution \"{0}\"", contribution.getId()), e));
          }
        });
      }
      contributions.removeAll(badContributions);
      
      Collections.sort(contributions, CONTRIBUTION_COMPARATOR);
      for (final AbstractTaskRepositoryPageContribution contribution : contributions)
      {
        final ExpandableComposite section = createSection(parentControl, contribution.getTitle());
        section.setToolTipText(contribution.getDescription());
        
        SafeRunnable.run(new SafeRunnable()
        {
          public void run()
            throws Exception
          {
            Control control = contribution.createControl(section);
            section.setClient(control);
          }
          
          public void handleException(Throwable e)
          {
            section.dispose();
            StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", NLS.bind(
              "Problems occured when creating control for contribution \"{0}\"", 
              contribution.getId()), e));
          }
        });
      }
    }
  }
  
  protected ExpandableComposite createSection(final Composite parentControl, String title)
  {
    ExpandableComposite section = toolkit.createExpandableComposite(parentControl, 
      50);
    clientVerticalSpacing = 0;
    section.setBackground(parentControl.getBackground());
    section.setFont(JFaceResources.getFontRegistry().getBold("org.eclipse.jface.dialogfont"));
    section.addExpansionListener(new ExpansionAdapter()
    {
      public void expansionStateChanged(ExpansionEvent e)
      {
        parentControl.layout(true);
        getControl().getShell().pack();
      }
    });
    section.setText(title);
    GridDataFactory.fillDefaults().indent(0, 5).grab(true, false).span(3, -1).applyTo(section);
    return section;
  }
  
  protected abstract IStatus validate();
  
  public void applyTo(TaskRepository repository)
  {
    applyContributionSettingsTo(repository);
  }
  
  private void applyContributionSettingsTo(TaskRepository repository)
  {
    for (AbstractTaskRepositoryPageContribution contribution : contributions) {
      contribution.applyTo(repository);
    }
  }
  
  public void performFinish(TaskRepository repository)
  {
    applyTo(repository);
  }
  
  public boolean preFinish(TaskRepository repository)
  {
    return true;
  }
  
  private IStatus computeValidation()
  {
    final MultiStatus cumulativeResult = new MultiStatus("org.eclipse.mylyn.tasks.ui", 0, 
      Messages.AbstractTaskRepositoryPage_Validation_failed, null);
    
    IStatus result = validate();
    if (result != null) {
      cumulativeResult.add(result);
    }
    for (final AbstractTaskRepositoryPageContribution contribution : contributions) {
      SafeRunnable.run(new SafeRunnable()
      {
        public void run()
          throws Exception
        {
          IStatus result = contribution.validate();
          if (result != null) {
            cumulativeResult.add(result);
          }
        }
        
        public void handleException(Throwable e)
        {
          StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", NLS.bind(
            "Problems occured when validating contribution \"{0}\"", contribution.getId()), e));
        }
      });
    }
    return cumulativeResult;
  }
  
  private void validatePageSettings()
  {
    IStatus validationStatus = computeValidation();
    applyValidationResult(validationStatus);
    getWizard().getContainer().updateButtons();
  }
  
  private void applyValidationResult(IStatus status)
  {
    if ((status == null) || (status.isOK()))
    {
      setMessage(null, 1);
      setErrorMessage(null);
    }
    else
    {
      int messageType;
      int messageType;
      int messageType;
      switch (status.getSeverity())
      {
      case 0: 
      case 1: 
        messageType = 1;
        break;
      case 2: 
        messageType = 2;
        break;
      case 3: 
      case 4: 
      default: 
        messageType = 3;
      }
      setErrorMessage(null);
      setMessage(status.getMessage(), messageType);
    }
  }
  
  private List<AbstractTaskRepositoryPageContribution> findApplicableContributors()
  {
    List<AbstractTaskRepositoryPageContribution> contributors = new ArrayList();
    
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    
    IExtensionPoint editorExtensionPoint = registry.getExtensionPoint("org.eclipse.mylyn.tasks.ui.taskRepositoryPageContribution");
    IExtension[] editorExtensions = editorExtensionPoint.getExtensions();
    IExtension[] arrayOfIExtension1;
    int j = (arrayOfIExtension1 = editorExtensions).length;
    for (int i = 0; i < j; i++)
    {
      IExtension extension = arrayOfIExtension1[i];
      IConfigurationElement[] elements = extension.getConfigurationElements();
      IConfigurationElement[] arrayOfIConfigurationElement1;
      int m = (arrayOfIConfigurationElement1 = elements).length;
      for (int k = 0; k < m; k++)
      {
        IConfigurationElement element = arrayOfIConfigurationElement1[k];
        if (element.getName().equals("taskRepositoryPageContribution"))
        {
          String kind = element.getAttribute("connectorKind");
          if ((kind == null) || (kind.length() == 0) || (kind.equals(getConnectorKind())))
          {
            String id = element.getAttribute("id");
            try
            {
              if ((id == null) || (id.length() == 0)) {
                throw new IllegalStateException("taskRepositoryPageContribution/@id is required");
              }
              Object contributor = element.createExecutableExtension("class");
              AbstractTaskRepositoryPageContribution pageContributor = (AbstractTaskRepositoryPageContribution)contributor;
              pageContributor.setId(id);
              if (pageContributor.isEnabled()) {
                contributors.add(pageContributor);
              }
            }
            catch (Throwable e)
            {
              StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", "Could not load taskRepositoryPageContribution '" + 
                id + "' from plug-in " + 
                element.getContributor().getName(), e));
            }
          }
        }
      }
    }
    return contributors;
  }
  
  private static class ContributionComparator
    implements Comparator<AbstractTaskRepositoryPageContribution>
  {
    public int compare(AbstractTaskRepositoryPageContribution o1, AbstractTaskRepositoryPageContribution o2)
    {
      if (o1 == o2) {
        return 0;
      }
      String s1 = o1.getTitle();
      String s2 = o2.getTitle();
      int i = s1.compareTo(s2);
      if (i == 0) {
        i = o1.getId().compareTo(o2.getId());
      }
      return i;
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractTaskRepositoryPage
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import java.util.HashMap;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.commons.ui.dialogs.EnhancedWizardDialog;
import org.eclipse.mylyn.internal.tasks.ui.wizards.Messages;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;

public class TaskRepositoryWizardDialog
  extends EnhancedWizardDialog
{
  private static final String VALIDATE_BUTTON_KEY = "validate";
  private Button validateServerButton;
  private static final int VALIDATE_BUTTON_ID = 2000;
  
  public TaskRepositoryWizardDialog(Shell parentShell, IWizard newWizard)
  {
    super(parentShell, newWizard);
    setHelpAvailable(false);
  }
  
  protected void createExtraButtons(Composite composite)
  {
    validateServerButton = createButton(composite, 2000, 
      Messages.AbstractRepositorySettingsPage_Validate_Settings, false);
    validateServerButton.setImage(CommonImages.getImage(TasksUiImages.REPOSITORY_VALIDATE));
    validateServerButton.setVisible(false);
    setButtonLayoutData(validateServerButton);
  }
  
  public void updateExtraButtons()
  {
    if (((getCurrentPage() instanceof AbstractRepositorySettingsPage)) && 
      (((AbstractRepositorySettingsPage)getCurrentPage()).needsValidation()))
    {
      if (!validateServerButton.isVisible()) {
        validateServerButton.setVisible(true);
      }
      validateServerButton.setEnabled(((AbstractRepositorySettingsPage)getCurrentPage()).canValidate());
    }
    else if ((validateServerButton != null) && (validateServerButton.isVisible()))
    {
      validateServerButton.setVisible(false);
    }
  }
  
  protected boolean handleExtraButtonPressed(int buttonId)
  {
    if ((buttonId == 2000) && 
      ((getCurrentPage() instanceof AbstractRepositorySettingsPage)))
    {
      ((AbstractRepositorySettingsPage)getCurrentPage()).validateSettings();
      return true;
    }
    return false;
  }
  
  /* Error */
  public void run(boolean fork, boolean cancelable, org.eclipse.jface.operation.IRunnableWithProgress runnable)
    throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore 4
    //   3: aload_0
    //   4: invokevirtual 140	org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog:saveAndSetEnabledStateMylyn	()Ljava/util/HashMap;
    //   7: astore 4
    //   9: aload_0
    //   10: iload_1
    //   11: iload_2
    //   12: aload_3
    //   13: invokespecial 134	org/eclipse/mylyn/commons/ui/dialogs/EnhancedWizardDialog:run	(ZZLorg/eclipse/jface/operation/IRunnableWithProgress;)V
    //   16: goto +19 -> 35
    //   19: astore 5
    //   21: aload 4
    //   23: ifnull +9 -> 32
    //   26: aload_0
    //   27: aload 4
    //   29: invokevirtual 141	org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog:restoreEnabledStateMylyn	(Ljava/util/HashMap;)V
    //   32: aload 5
    //   34: athrow
    //   35: aload 4
    //   37: ifnull +9 -> 46
    //   40: aload_0
    //   41: aload 4
    //   43: invokevirtual 141	org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog:restoreEnabledStateMylyn	(Ljava/util/HashMap;)V
    //   46: return
    // Line number table:
    //   Java source line #110	-> byte code offset #0
    //   Java source line #112	-> byte code offset #3
    //   Java source line #113	-> byte code offset #9
    //   Java source line #114	-> byte code offset #19
    //   Java source line #115	-> byte code offset #21
    //   Java source line #116	-> byte code offset #26
    //   Java source line #118	-> byte code offset #32
    //   Java source line #115	-> byte code offset #35
    //   Java source line #116	-> byte code offset #40
    //   Java source line #119	-> byte code offset #46
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	47	0	this	TaskRepositoryWizardDialog
    //   0	47	1	fork	boolean
    //   0	47	2	cancelable	boolean
    //   0	47	3	runnable	org.eclipse.jface.operation.IRunnableWithProgress
    //   1	41	4	savedEnabledState	HashMap<String, Boolean>
    //   19	14	5	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   3	19	19	finally
  }
  
  protected HashMap<String, Boolean> saveAndSetEnabledStateMylyn()
  {
    HashMap<String, Boolean> savedEnabledState = null;
    if (getShell() != null)
    {
      savedEnabledState = new HashMap();
      if ((validateServerButton != null) && (validateServerButton.getShell() == getShell()))
      {
        savedEnabledState.put("validate", Boolean.valueOf(validateServerButton.getEnabled()));
        validateServerButton.setEnabled(false);
      }
    }
    return savedEnabledState;
  }
  
  protected void restoreEnabledStateMylyn(HashMap<String, Boolean> savedEnabledState)
  {
    if (savedEnabledState != null)
    {
      Boolean savedValidateEnabledState = (Boolean)savedEnabledState.get("validate");
      if ((validateServerButton != null) && (savedValidateEnabledState != null)) {
        validateServerButton.setEnabled(savedValidateEnabledState.booleanValue());
      }
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.TaskRepositoryWizardDialog
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.core.runtime.Status;
import org.eclipse.jface.util.SafeRunnable;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.forms.widgets.ExpandableComposite;

class AbstractTaskRepositoryPage$3
  extends SafeRunnable
{
  AbstractTaskRepositoryPage$3(AbstractTaskRepositoryPage paramAbstractTaskRepositoryPage, AbstractTaskRepositoryPageContribution paramAbstractTaskRepositoryPageContribution, ExpandableComposite paramExpandableComposite) {}
  
  public void run()
    throws Exception
  {
    Control control = val$contribution.createControl(val$section);
    val$section.setClient(control);
  }
  
  public void handleException(Throwable e)
  {
    val$section.dispose();
    StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", NLS.bind(
      "Problems occured when creating control for contribution \"{0}\"", 
      val$contribution.getId()), e));
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractTaskRepositoryPage.3
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;

class AbstractRepositorySettingsPage$13
  extends SelectionAdapter
{
  AbstractRepositorySettingsPage$13(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    if (AbstractRepositorySettingsPage.access$1(this$0).getSelection())
    {
      AbstractRepositorySettingsPage.access$2(this$0).setSelection(false);
      AbstractRepositorySettingsPage.access$3(this$0).setEnabled(true);
    }
    else
    {
      AbstractRepositorySettingsPage.access$2(this$0).setSelection(true);
      AbstractRepositorySettingsPage.access$3(this$0).setEnabled(false);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.13
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class AbstractRepositorySettingsPage$1
  extends SelectionAdapter
{
  AbstractRepositorySettingsPage$1(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    this$0.validateSettings();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.swt.widgets.Composite;

class AbstractRepositorySettingsPage$26
  extends StringFieldEditor
{
  AbstractRepositorySettingsPage$26(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, String $anonymous0, String $anonymous1, int $anonymous2, Composite $anonymous3)
  {
    super($anonymous0, $anonymous1, $anonymous2, $anonymous3);
  }
  
  protected boolean doCheckState()
  {
    return true;
  }
  
  protected void valueChanged()
  {
    super.valueChanged();
    if (this$0.getWizard() != null) {
      this$0.getWizard().getContainer().updateButtons();
    }
  }
  
  public int getNumberOfControls()
  {
    return 3;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.26
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;

class AbstractRepositorySettingsPage$8
  extends SelectionAdapter
{
  AbstractRepositorySettingsPage$8(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    this$0.setAnonymous(this$0.anonymousButton.getSelection());
    this$0.isPageComplete();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.8
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.data.TaskData;

class NewTaskWizard$1
  implements IRunnableWithProgress
{
  NewTaskWizard$1(NewTaskWizard paramNewTaskWizard, TaskData[] paramArrayOfTaskData, ITaskMapping paramITaskMapping1, ITaskMapping paramITaskMapping2) {}
  
  public void run(IProgressMonitor monitor)
    throws InvocationTargetException, InterruptedException
  {
    try
    {
      val$taskData[0] = TasksUiInternal.createTaskData(NewTaskWizard.access$0(this$0), val$initializationData, val$selectionData, 
        monitor);
    }
    catch (OperationCanceledException localOperationCanceledException)
    {
      throw new InterruptedException();
    }
    catch (CoreException e)
    {
      throw new InvocationTargetException(e);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.NewTaskWizard.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.jface.operation.IRunnableContext;

public abstract interface ITaskSearchPageContainer
{
  public abstract IRunnableContext getRunnableContext();
  
  public abstract void setPerformActionEnabled(boolean paramBoolean);
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.ITaskSearchPageContainer
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.mylyn.tasks.core.data.TaskAttachmentMapper;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;

class TaskAttachmentPage$6
  extends SelectionAdapter
{
  private int lastSelected;
  
  TaskAttachmentPage$6(TaskAttachmentPage paramTaskAttachmentPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    TaskAttachmentPage.access$0(this$0).setPatch(Boolean.valueOf(TaskAttachmentPage.access$8(this$0).getSelection()));
    if (TaskAttachmentPage.access$8(this$0).getSelection())
    {
      lastSelected = TaskAttachmentPage.access$5(this$0).getSelectionIndex();
      TaskAttachmentPage.access$5(this$0).select(0);
      TaskAttachmentPage.access$5(this$0).setEnabled(false);
      if (TaskAttachmentPage.access$9(this$0).isEnabled()) {
        TaskAttachmentPage.access$9(this$0).setSelection(true);
      }
    }
    else
    {
      TaskAttachmentPage.access$5(this$0).setEnabled(true);
      TaskAttachmentPage.access$5(this$0).select(lastSelected);
    }
    TaskAttachmentPage.access$2(this$0);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.TaskAttachmentPage.6
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.forms.events.ExpansionAdapter;
import org.eclipse.ui.forms.events.ExpansionEvent;

class AbstractTaskRepositoryPage$4
  extends ExpansionAdapter
{
  AbstractTaskRepositoryPage$4(AbstractTaskRepositoryPage paramAbstractTaskRepositoryPage, Composite paramComposite) {}
  
  public void expansionStateChanged(ExpansionEvent e)
  {
    val$parentControl.layout(true);
    this$0.getControl().getShell().pack();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractTaskRepositoryPage.4
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Button;

class AbstractRepositorySettingsPage$14
  implements SelectionListener
{
  AbstractRepositorySettingsPage$14(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    this$0.setCertAuth(AbstractRepositorySettingsPage.access$4(this$0).getSelection());
  }
  
  public void widgetDefaultSelected(SelectionEvent e) {}
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.14
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.widgets.Composite;

class AbstractRepositorySettingsPage$20
  extends AbstractRepositorySettingsPage.RepositoryStringFieldEditor
{
  AbstractRepositorySettingsPage$20(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, String $anonymous0, String $anonymous1, int $anonymous2, Composite $anonymous3)
  {
    super($anonymous0, $anonymous1, $anonymous2, $anonymous3);
  }
  
  public int getNumberOfControls()
  {
    return 2;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.20
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;

class AbstractRepositorySettingsPage$2
  implements ModifyListener
{
  AbstractRepositorySettingsPage$2(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void modifyText(ModifyEvent e)
  {
    if (this$0.getWizard() != null) {
      this$0.getWizard().getContainer().updateButtons();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.widgets.Composite;

class AbstractRepositorySettingsPage$27
  extends AbstractRepositorySettingsPage.RepositoryStringFieldEditor
{
  AbstractRepositorySettingsPage$27(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, String $anonymous0, String $anonymous1, int $anonymous2, Composite $anonymous3)
  {
    super($anonymous0, $anonymous1, $anonymous2, $anonymous3);
  }
  
  public int getNumberOfControls()
  {
    return 2;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.27
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.swt.widgets.Composite;

class AbstractRepositorySettingsPage$9
  extends AbstractRepositorySettingsPage.RepositoryStringFieldEditor
{
  AbstractRepositorySettingsPage$9(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, String $anonymous0, String $anonymous1, int $anonymous2, Composite $anonymous3)
  {
    super($anonymous0, $anonymous1, $anonymous2, $anonymous3);
  }
  
  protected boolean doCheckState()
  {
    return true;
  }
  
  protected void valueChanged()
  {
    super.valueChanged();
    this$0.isPageComplete();
    if (this$0.getWizard() != null) {
      this$0.getWizard().getContainer().updateButtons();
    }
  }
  
  public int getNumberOfControls()
  {
    return 2;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.9
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.mylyn.tasks.ui.wizards;

import org.eclipse.swt.widgets.Control;

class AbstractRepositoryQueryPage2$1
  implements Runnable
{
  AbstractRepositoryQueryPage2$1(AbstractRepositoryQueryPage2 paramAbstractRepositoryQueryPage2) {}
  
  public void run()
  {
    if ((this$0.getControl() != null) && (!this$0.getControl().isDisposed())) {
      AbstractRepositoryQueryPage2.access$0(this$0);
    }
  }
}

/* Location:
 * Qualified Name:     org
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd