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

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

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

public abstract class AbstractTaskRepositoryPageContribution
{
  private final List<Listener> listeners = new CopyOnWriteArrayList();
  private final String title;
  private final String description;
  private TaskRepository repository;
  private String connectorKind;
  private String id;
  
  protected AbstractTaskRepositoryPageContribution(String title, String description)
  {
    this.title = title;
    this.description = description;
    id = "";
  }
  
  public void init(String connectorKind, TaskRepository repository)
  {
    this.connectorKind = connectorKind;
    this.repository = repository;
  }
  
  public void addListener(Listener listener)
  {
    listeners.add(listener);
  }
  
  public void removeListener(Listener listener)
  {
    listeners.remove(listener);
  }
  
  public abstract Control createControl(Composite paramComposite);
  
  public String getTitle()
  {
    return title;
  }
  
  public String getDescription()
  {
    return description;
  }
  
  public abstract boolean isPageComplete();
  
  public abstract boolean canFlipToNextPage();
  
  public abstract IStatus validate();
  
  public abstract void applyTo(TaskRepository paramTaskRepository);
  
  protected void fireValidationRequired()
  {
    for (Listener l : listeners) {
      l.validationRequired(this);
    }
  }
  
  protected final TaskRepository getRepository()
  {
    return repository;
  }
  
  protected final String getConnectorKind()
  {
    return connectorKind;
  }
  
  void setId(String id)
  {
    Assert.isNotNull(id);
    this.id = id;
  }
  
  public final String getId()
  {
    return id;
  }
  
  public boolean isEnabled()
  {
    return true;
  }
  
  public static abstract interface Listener
  {
    public abstract void validationRequired(AbstractTaskRepositoryPageContribution paramAbstractTaskRepositoryPageContribution);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractTaskRepositoryPageContribution
 * 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 TaskAttachmentPage$7
  extends SelectionAdapter
{
  TaskAttachmentPage$7(TaskAttachmentPage paramTaskAttachmentPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    TaskAttachmentPage.access$2(this$0);
  }
}

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

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
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;

class AbstractTaskRepositoryPage$5
  extends SafeRunnable
{
  AbstractTaskRepositoryPage$5(AbstractTaskRepositoryPage paramAbstractTaskRepositoryPage, AbstractTaskRepositoryPageContribution paramAbstractTaskRepositoryPageContribution, MultiStatus paramMultiStatus) {}
  
  public void run()
    throws Exception
  {
    IStatus result = val$contribution.validate();
    if (result != null) {
      val$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}\"", val$contribution.getId()), e));
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractTaskRepositoryPage.5
 * 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$15
  extends StringFieldEditor
{
  AbstractRepositorySettingsPage$15(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 2;
  }
}

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

import java.beans.Beans;
import java.util.Set;
import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylyn.internal.tasks.core.AbstractTaskCategory;
import org.eclipse.mylyn.internal.tasks.core.ITaskList;
import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
import org.eclipse.mylyn.internal.tasks.ui.search.SearchUtil;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.wizards.Messages;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.IRepositoryManager;
import org.eclipse.mylyn.tasks.core.IRepositoryModel;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

public abstract class AbstractRepositoryQueryPage
  extends WizardPage
  implements ITaskSearchPage
{
  private ITaskSearchPageContainer searchContainer;
  private final TaskRepository taskRepository;
  private final IRepositoryQuery query;
  
  public AbstractRepositoryQueryPage(String pageName, TaskRepository taskRepository, IRepositoryQuery query)
  {
    super(pageName);
    if (!Beans.isDesignTime()) {
      Assert.isNotNull(taskRepository);
    }
    this.taskRepository = taskRepository;
    this.query = query;
    setTitle(Messages.AbstractRepositoryQueryPage_Enter_query_parameters);
    setDescription(Messages.AbstractRepositoryQueryPage_If_attributes_are_blank_or_stale_press_the_Update_button);
    if (!Beans.isDesignTime()) {
      setImageDescriptor(TasksUiImages.BANNER_REPOSITORY);
    }
    setPageComplete(false);
  }
  
  public AbstractRepositoryQueryPage(String pageName, TaskRepository taskRepository)
  {
    this(pageName, taskRepository, null);
  }
  
  public IRepositoryQuery getQuery()
  {
    return query;
  }
  
  public abstract String getQueryTitle();
  
  public boolean isPageComplete()
  {
    setErrorMessage(null);
    
    String queryTitle = getQueryTitle();
    if ((queryTitle == null) || (queryTitle.equals("")))
    {
      setMessage(Messages.AbstractRepositoryQueryPage_Please_specify_a_title_for_the_query);
      return false;
    }
    Set<RepositoryQuery> queries = TasksUiInternal.getTaskList().getQueries();
    Set<AbstractTaskCategory> categories = TasksUiInternal.getTaskList().getCategories();
    String oldSummary = null;
    if (query != null) {
      oldSummary = query.getSummary();
    }
    if ((oldSummary == null) || (!queryTitle.equals(oldSummary)))
    {
      for (AbstractTaskCategory category : categories) {
        if (queryTitle.equals(category.getSummary()))
        {
          setMessage(Messages.AbstractRepositoryQueryPage_A_category_with_this_name_already_exists, 
            3);
          return false;
        }
      }
      for (RepositoryQuery repositoryQuery : queries) {
        if (((query == null) || (!query.equals(repositoryQuery))) && 
          (queryTitle.equals(repositoryQuery.getSummary())) && 
          (repositoryQuery.getRepositoryUrl().equals(getTaskRepository().getRepositoryUrl())))
        {
          setMessage(Messages.AbstractRepositoryQueryPage_A_query_with_this_name_already_exists, 
            2);
          return true;
        }
      }
    }
    setMessage(null);
    return true;
  }
  
  public IRepositoryQuery createQuery()
  {
    IRepositoryQuery query = TasksUi.getRepositoryModel().createRepositoryQuery(getTaskRepository());
    applyTo(query);
    return query;
  }
  
  public abstract void applyTo(IRepositoryQuery paramIRepositoryQuery);
  
  public void saveState() {}
  
  public void setContainer(ITaskSearchPageContainer container)
  {
    searchContainer = container;
  }
  
  public boolean inSearchContainer()
  {
    return searchContainer != null;
  }
  
  public boolean performSearch()
  {
    AbstractRepositoryConnector connector = TasksUi.getRepositoryManager().getRepositoryConnector(
      taskRepository.getConnectorKind());
    if (connector != null) {
      try
      {
        SearchUtil.runSearchQuery(TasksUiInternal.getTaskList(), taskRepository, createQuery(), true);
      }
      catch (UnsupportedOperationException localUnsupportedOperationException)
      {
        SearchUtil.runSearchQuery(TasksUiInternal.getTaskList(), taskRepository, getQuery(), true);
      }
    }
    return true;
  }
  
  public void setControlsEnabled(boolean enabled)
  {
    setControlsEnabled(getControl(), enabled);
  }
  
  private void setControlsEnabled(Control control, boolean enabled)
  {
    if ((control instanceof Composite))
    {
      Control[] arrayOfControl;
      int j = (arrayOfControl = ((Composite)control).getChildren()).length;
      for (int i = 0; i < j; i++)
      {
        Control childControl = arrayOfControl[i];
        childControl.setEnabled(enabled);
        setControlsEnabled(childControl, enabled);
      }
    }
    setPageComplete(isPageComplete());
  }
  
  public ITaskSearchPageContainer getSearchContainer()
  {
    return searchContainer;
  }
  
  public TaskRepository getTaskRepository()
  {
    return taskRepository;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositoryQueryPage
 * 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$21
  implements SelectionListener
{
  AbstractRepositorySettingsPage$21(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    this$0.setUseDefaultProxy(AbstractRepositorySettingsPage.access$7(this$0).getSelection());
  }
  
  public void widgetDefaultSelected(SelectionEvent e) {}
}

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

import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;

class AbstractRepositorySettingsPage$3
  extends FocusAdapter
{
  AbstractRepositorySettingsPage$3(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void focusLost(FocusEvent e)
  {
    AbstractRepositorySettingsPage.access$0(this$0);
  }
}

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

import org.eclipse.mylyn.internal.tasks.core.RepositoryTemplateManager;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.RepositoryTemplate;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Combo;

class AbstractRepositorySettingsPage$28
  extends SelectionAdapter
{
  AbstractRepositorySettingsPage$28(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, RepositoryTemplateManager paramRepositoryTemplateManager) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    String text = this$0.serverUrlCombo.getText();
    RepositoryTemplate template = val$templateManager.getTemplate(this$0.connector.getConnectorKind(), text);
    if (template != null)
    {
      this$0.repositoryTemplateSelected(template);
      return;
    }
  }
}

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

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

class AbstractRepositoryQueryPage2$2
  implements ModifyListener
{
  AbstractRepositoryQueryPage2$2(AbstractRepositoryQueryPage2 paramAbstractRepositoryQueryPage2) {}
  
  public void modifyText(ModifyEvent e)
  {
    AbstractRepositoryQueryPage2.access$1(this$0).updateButtons();
  }
}

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

import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.mylyn.internal.tasks.ui.wizards.Messages;
import org.eclipse.mylyn.internal.tasks.ui.wizards.NewWebTaskPage;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.mylyn.tasks.ui.TasksUiUtil;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;

public class NewWebTaskWizard
  extends Wizard
  implements INewWizard
{
  protected TaskRepository taskRepository;
  protected String newTaskUrl;
  private final ITaskMapping taskSelection;
  
  public NewWebTaskWizard(TaskRepository taskRepository, String newTaskUrl, ITaskMapping taskSelection)
  {
    this.taskRepository = taskRepository;
    this.newTaskUrl = newTaskUrl;
    this.taskSelection = taskSelection;
    
    setWindowTitle(Messages.NewWebTaskWizard_New_Task);
    setDefaultPageImageDescriptor(TasksUiImages.BANNER_REPOSITORY);
  }
  
  public void init(IWorkbench workbench, IStructuredSelection selection) {}
  
  public void addPages()
  {
    addPage(new NewWebTaskPage(taskSelection));
  }
  
  public boolean canFinish()
  {
    return true;
  }
  
  public boolean performFinish()
  {
    handleSelection(taskSelection);
    TasksUiUtil.openUrl(newTaskUrl);
    return true;
  }
  
  private void handleSelection(ITaskMapping taskSelection)
  {
    if (taskSelection == null) {
      return;
    }
    String summary = taskSelection.getSummary();
    String description = taskSelection.getDescription();
    
    Clipboard clipboard = new Clipboard(getShell().getDisplay());
    clipboard.setContents(new Object[] { summary + "\n" + description }, 
      new Transfer[] { TextTransfer.getInstance() });
    
    MessageDialog.openInformation(getShell(), Messages.NewWebTaskWizard_New_Task, 
      Messages.NewWebTaskWizard_This_connector_does_not_provide_a_rich_task_editor_for_creating_tasks);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.NewWebTaskWizard
 * 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;

class TaskAttachmentPage$1
  extends SelectionAdapter
{
  TaskAttachmentPage$1(TaskAttachmentPage paramTaskAttachmentPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    TaskAttachmentPage.access$0(this$0).setReplaceExisting(Boolean.valueOf(TaskAttachmentPage.access$1(this$0).getSelection()));
    TaskAttachmentPage.access$2(this$0);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.TaskAttachmentPage.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.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.FileDialog;

class AbstractRepositorySettingsPage$16
  extends SelectionAdapter
{
  AbstractRepositorySettingsPage$16(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    FileDialog fileDialog = new FileDialog(this$0.getShell(), 4096);
    fileDialog.setFilterPath(System.getProperty("user.home", "."));
    String returnFile = fileDialog.open();
    if (returnFile != null) {
      AbstractRepositorySettingsPage.access$5(this$0).setStringValue(returnFile);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.16
 * 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.Assert;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.IWizardContainer;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.wizards.Messages;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.TaskData;
import org.eclipse.mylyn.tasks.ui.TasksUiImages;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.progress.IProgressService;
import org.eclipse.ui.statushandlers.StatusManager;

public class NewTaskWizard
  extends Wizard
  implements INewWizard
{
  private final TaskRepository taskRepository;
  private ITaskMapping taskSelection;
  
  public NewTaskWizard(TaskRepository taskRepository, ITaskMapping taskSelection)
  {
    Assert.isNotNull(taskRepository);
    this.taskRepository = taskRepository;
    this.taskSelection = taskSelection;
    setDefaultPageImageDescriptor(TasksUiImages.BANNER_REPOSITORY);
    setNeedsProgressMonitor(true);
  }
  
  @Deprecated
  public NewTaskWizard(TaskRepository taskRepository)
  {
    this.taskRepository = taskRepository;
  }
  
  public void init(IWorkbench workbench, IStructuredSelection selection) {}
  
  public void addPages() {}
  
  protected ITaskMapping getInitializationData()
  {
    return null;
  }
  
  public TaskRepository getTaskRepository()
  {
    return taskRepository;
  }
  
  public ITaskMapping getTaskSelection()
  {
    return taskSelection;
  }
  
  public boolean performFinish()
  {
    final TaskData[] taskData = new TaskData[1];
    final ITaskMapping initializationData = getInitializationData();
    final ITaskMapping selectionData = getTaskSelection();
    try
    {
      IRunnableWithProgress runnable = new IRunnableWithProgress()
      {
        public void run(IProgressMonitor monitor)
          throws InvocationTargetException, InterruptedException
        {
          try
          {
            taskData[0] = TasksUiInternal.createTaskData(taskRepository, initializationData, selectionData, 
              monitor);
          }
          catch (OperationCanceledException localOperationCanceledException)
          {
            throw new InterruptedException();
          }
          catch (CoreException e)
          {
            throw new InvocationTargetException(e);
          }
        }
      };
      if (getContainer().getShell().isVisible()) {
        getContainer().run(true, true, runnable);
      } else {
        PlatformUI.getWorkbench().getProgressService().busyCursorWhile(runnable);
      }
    }
    catch (InvocationTargetException e)
    {
      if ((e.getCause() instanceof CoreException)) {
        TasksUiInternal.displayStatus(Messages.NewTaskWizard_Error_creating_new_task, 
          ((CoreException)e.getCause()).getStatus());
      } else {
        StatusManager.getManager().handle(
          new Status(4, "org.eclipse.mylyn.tasks.ui", 
          Messages.NewTaskWizard_Error_creating_new_task, e), 
          3);
      }
      return false;
    }
    catch (InterruptedException localInterruptedException)
    {
      return false;
    }
    try
    {
      TasksUiInternal.createAndOpenNewTask(taskData[0]);
      return true;
    }
    catch (CoreException e)
    {
      StatusHandler.log(new Status(4, "org.eclipse.mylyn.tasks.ui", "Failed to open new task", e));
      TasksUiInternal.displayStatus(Messages.NewTaskWizard_Create_Task, new Status(4, 
        "org.eclipse.mylyn.tasks.ui", Messages.NewTaskWizard_Failed_to_create_new_task_ + e.getMessage()));
    }
    return false;
  }
}

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

import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.ui.dialogs.PreferencesUtil;
import org.eclipse.ui.forms.events.HyperlinkEvent;
import org.eclipse.ui.forms.events.IHyperlinkListener;

class AbstractRepositorySettingsPage$22
  implements IHyperlinkListener
{
  AbstractRepositorySettingsPage$22(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void linkActivated(HyperlinkEvent e)
  {
    PreferenceDialog dlg = PreferencesUtil.createPreferenceDialogOn(this$0.getShell(), "org.eclipse.ui.net.NetPreferences", 
      new String[] { "org.eclipse.ui.net.NetPreferences" }, null);
    dlg.open();
  }
  
  public void linkEntered(HyperlinkEvent e) {}
  
  public void linkExited(HyperlinkEvent e) {}
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.22
 * 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.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class AbstractRepositorySettingsPage$4
  extends SelectionAdapter
{
  AbstractRepositorySettingsPage$4(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    if (this$0.getWizard() != null) {
      this$0.getWizard().getContainer().updateButtons();
    }
  }
}

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

import org.eclipse.jface.operation.IRunnableWithProgress;

class AbstractRepositorySettingsPage$29
  implements IRunnableWithProgress
{
  AbstractRepositorySettingsPage$29(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage, AbstractRepositorySettingsPage.Validator paramValidator) {}
  
  /* Error */
  public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
    throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
  {
    // Byte code:
    //   0: aload_1
    //   1: getstatic 72	org/eclipse/mylyn/internal/tasks/ui/wizards/Messages:AbstractRepositorySettingsPage_Validating_server_settings	Ljava/lang/String;
    //   4: iconst_m1
    //   5: invokeinterface 83 3 0
    //   10: aload_0
    //   11: getfield 74	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$29:val$validator	Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator;
    //   14: aload_1
    //   15: invokevirtual 79	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator:run	(Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   18: aload_0
    //   19: getfield 74	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$29:val$validator	Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator;
    //   22: invokevirtual 80	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator:getStatus	()Lorg/eclipse/core/runtime/IStatus;
    //   25: ifnonnull +75 -> 100
    //   28: aload_0
    //   29: getfield 74	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$29:val$validator	Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator;
    //   32: getstatic 71	org/eclipse/core/runtime/Status:OK_STATUS	Lorg/eclipse/core/runtime/IStatus;
    //   35: invokevirtual 81	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator:setStatus	(Lorg/eclipse/core/runtime/IStatus;)V
    //   38: goto +62 -> 100
    //   41: astore_2
    //   42: aload_0
    //   43: getfield 74	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$29:val$validator	Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator;
    //   46: aload_2
    //   47: invokevirtual 78	org/eclipse/core/runtime/CoreException:getStatus	()Lorg/eclipse/core/runtime/IStatus;
    //   50: invokevirtual 81	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator:setStatus	(Lorg/eclipse/core/runtime/IStatus;)V
    //   53: aload_1
    //   54: invokeinterface 82 1 0
    //   59: goto +47 -> 106
    //   62: pop
    //   63: aload_0
    //   64: getfield 74	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$29:val$validator	Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator;
    //   67: getstatic 70	org/eclipse/core/runtime/Status:CANCEL_STATUS	Lorg/eclipse/core/runtime/IStatus;
    //   70: invokevirtual 81	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositorySettingsPage$Validator:setStatus	(Lorg/eclipse/core/runtime/IStatus;)V
    //   73: new 31	java/lang/InterruptedException
    //   76: dup
    //   77: invokespecial 75	java/lang/InterruptedException:<init>	()V
    //   80: athrow
    //   81: astore_2
    //   82: new 33	java/lang/reflect/InvocationTargetException
    //   85: dup
    //   86: aload_2
    //   87: invokespecial 77	java/lang/reflect/InvocationTargetException:<init>	(Ljava/lang/Throwable;)V
    //   90: athrow
    //   91: astore_3
    //   92: aload_1
    //   93: invokeinterface 82 1 0
    //   98: aload_3
    //   99: athrow
    //   100: aload_1
    //   101: invokeinterface 82 1 0
    //   106: return
    // Line number table:
    //   Java source line #1904	-> byte code offset #0
    //   Java source line #1905	-> byte code offset #4
    //   Java source line #1904	-> byte code offset #5
    //   Java source line #1907	-> byte code offset #10
    //   Java source line #1908	-> byte code offset #18
    //   Java source line #1909	-> byte code offset #28
    //   Java source line #1911	-> byte code offset #41
    //   Java source line #1912	-> byte code offset #42
    //   Java source line #1919	-> byte code offset #53
    //   Java source line #1913	-> byte code offset #62
    //   Java source line #1914	-> byte code offset #63
    //   Java source line #1915	-> byte code offset #73
    //   Java source line #1916	-> byte code offset #81
    //   Java source line #1917	-> byte code offset #82
    //   Java source line #1918	-> byte code offset #91
    //   Java source line #1919	-> byte code offset #92
    //   Java source line #1920	-> byte code offset #98
    //   Java source line #1919	-> byte code offset #100
    //   Java source line #1921	-> byte code offset #106
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	107	0	this	29
    //   0	107	1	monitor	org.eclipse.core.runtime.IProgressMonitor
    //   41	6	2	e	org.eclipse.core.runtime.CoreException
    //   81	6	2	e	Exception
    //   91	8	3	localObject	Object
    //   62	1	5	localOperationCanceledException	org.eclipse.core.runtime.OperationCanceledException
    // Exception table:
    //   from	to	target	type
    //   10	38	41	org/eclipse/core/runtime/CoreException
    //   10	38	62	org/eclipse/core/runtime/OperationCanceledException
    //   10	38	81	java/lang/Exception
    //   10	53	91	finally
    //   62	91	91	finally
  }
}

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

import org.eclipse.jface.operation.IRunnableWithProgress;

class AbstractRepositoryQueryPage2$3
  implements IRunnableWithProgress
{
  AbstractRepositoryQueryPage2$3(AbstractRepositoryQueryPage2 paramAbstractRepositoryQueryPage2) {}
  
  /* Error */
  public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
    throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
  {
    // Byte code:
    //   0: aload_1
    //   1: invokestatic 69	org/eclipse/core/runtime/SubMonitor:convert	(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/SubMonitor;
    //   4: astore_1
    //   5: aload_1
    //   6: getstatic 64	org/eclipse/mylyn/internal/tasks/ui/wizards/Messages:AbstractRepositoryQueryPage2_Refresh_Configuration_Button_Label	Ljava/lang/String;
    //   9: iconst_m1
    //   10: invokeinterface 74 3 0
    //   15: aload_0
    //   16: getfield 65	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2$3:this$0	Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2;
    //   19: invokestatic 72	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2:access$2	(Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2;)Lorg/eclipse/mylyn/tasks/core/AbstractRepositoryConnector;
    //   22: aload_0
    //   23: getfield 65	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2$3:this$0	Lorg/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2;
    //   26: invokevirtual 71	org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2:getTaskRepository	()Lorg/eclipse/mylyn/tasks/core/TaskRepository;
    //   29: aload_1
    //   30: invokevirtual 70	org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector:updateRepositoryConfiguration	(Lorg/eclipse/mylyn/tasks/core/TaskRepository;Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   33: goto +31 -> 64
    //   36: astore_2
    //   37: new 30	java/lang/reflect/InvocationTargetException
    //   40: dup
    //   41: aload_2
    //   42: invokespecial 68	java/lang/reflect/InvocationTargetException:<init>	(Ljava/lang/Throwable;)V
    //   45: athrow
    //   46: pop
    //   47: new 28	java/lang/InterruptedException
    //   50: dup
    //   51: invokespecial 66	java/lang/InterruptedException:<init>	()V
    //   54: athrow
    //   55: astore_3
    //   56: aload_1
    //   57: invokeinterface 73 1 0
    //   62: aload_3
    //   63: athrow
    //   64: aload_1
    //   65: invokeinterface 73 1 0
    //   70: return
    // Line number table:
    //   Java source line #317	-> byte code offset #0
    //   Java source line #318	-> byte code offset #5
    //   Java source line #319	-> byte code offset #9
    //   Java source line #318	-> byte code offset #10
    //   Java source line #321	-> byte code offset #15
    //   Java source line #322	-> byte code offset #36
    //   Java source line #323	-> byte code offset #37
    //   Java source line #324	-> byte code offset #46
    //   Java source line #325	-> byte code offset #47
    //   Java source line #326	-> byte code offset #55
    //   Java source line #327	-> byte code offset #56
    //   Java source line #328	-> byte code offset #62
    //   Java source line #327	-> byte code offset #64
    //   Java source line #329	-> byte code offset #70
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	71	0	this	3
    //   0	71	1	monitor	org.eclipse.core.runtime.IProgressMonitor
    //   36	6	2	e	org.eclipse.core.runtime.CoreException
    //   55	8	3	localObject	Object
    //   46	1	4	localOperationCanceledException	org.eclipse.core.runtime.OperationCanceledException
    // Exception table:
    //   from	to	target	type
    //   15	33	36	org/eclipse/core/runtime/CoreException
    //   15	33	46	org/eclipse/core/runtime/OperationCanceledException
    //   15	55	55	finally
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositoryQueryPage2.3
 * 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$2
  implements ModifyListener
{
  TaskAttachmentPage$2(TaskAttachmentPage paramTaskAttachmentPage) {}
  
  public void modifyText(ModifyEvent e)
  {
    TaskAttachmentPage.access$0(this$0).setDescription(TaskAttachmentPage.access$3(this$0).getText().trim());
    TaskAttachmentPage.access$2(this$0);
  }
}

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

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;

public abstract class AbstractRepositorySettingsPage$Validator
{
  private IStatus status;
  
  public AbstractRepositorySettingsPage$Validator(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public abstract void run(IProgressMonitor paramIProgressMonitor)
    throws CoreException;
  
  public IStatus getStatus()
  {
    return status;
  }
  
  public void setStatus(IStatus status)
  {
    this.status = status;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.Validator
 * 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.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;

class AbstractRepositorySettingsPage$10
  extends SelectionAdapter
{
  AbstractRepositorySettingsPage$10(AbstractRepositorySettingsPage paramAbstractRepositorySettingsPage) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    super.widgetSelected(e);
    this$0.isPageComplete();
    if (this$0.getWizard() != null) {
      this$0.getWizard().getContainer().updateButtons();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.10
 * 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$17
  extends AbstractRepositorySettingsPage.RepositoryStringFieldEditor
{
  AbstractRepositorySettingsPage$17(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.17
 * 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$23
  extends StringFieldEditor
{
  AbstractRepositorySettingsPage$23(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.23
 * 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$5
  extends StringFieldEditor
{
  AbstractRepositorySettingsPage$5(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 2;
  }
}

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

import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.mylyn.internal.tasks.ui.wizards.Messages;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Display;

class AbstractRepositoryQueryPage2$4
  extends SelectionAdapter
{
  AbstractRepositoryQueryPage2$4(AbstractRepositoryQueryPage2 paramAbstractRepositoryQueryPage2) {}
  
  public void widgetSelected(SelectionEvent e)
  {
    if (this$0.getTaskRepository() != null) {
      this$0.refreshConfiguration(true);
    } else {
      MessageDialog.openInformation(
        Display.getCurrent().getActiveShell(), 
        Messages.AbstractRepositoryQueryPage2_Update_Attributes_Failed, 
        Messages.AbstractRepositoryQueryPage2_No_repository_available_please_add_one_using_the_Task_Repositories_view);
    }
  }
}

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

import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclips
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