org.eclipse.team.ui_3.6.101.R37x_v20111109-0800

fied_a_folder_5;
  public static String ExportProjectSetMainPage_A_project_must_be_selected;
  public static String ExportProjectSetMainPage_A_working_set_must_be_selected;
  public static String ExportProjectSetMainPage_None_of_the_selected_working_sets_have_an_available_project_to_export;
  public static String ExportProjectSetMainPage_Initial_description;
  public static String ExportProjectSetMainPage_specifyFile;
  public static String ImportProjectSetMainPage_Browse_3;
  public static String ImportProjectSetMainPage_The_given_URL_cannot_be_loaded;
  public static String ImportProjectSetMainPage_The_specified_file_does_not_exist_4;
  public static String ImportProjectSetMainPage_You_have_specified_a_folder_5;
  public static String ImportProjectSetMainPage_workingSetNameEmpty;
  public static String ImportProjectSetMainPage_createWorkingSetLabel;
  public static String ImportProjectSetMainPage_workingSetLabel;
  public static String ImportProjectSetMainPage_runInBackground;
  public static String ImportProjectSetMainPage_jobName;
  public static String ImportProjectSetMainPage_specifyFile;
  public static String ImportProjectSetMainPage_specifyURL;
  public static String ImportProjectSetMainPage_selectWorkingSet;
  public static String ImportProjectSetMainPage_projectSetFileInvalid;
  public static String ProjectSetContentHandler_Element_provider_must_be_contained_in_element_psf_4;
  public static String ProjectSetContentHandler_Element_project_must_be_contained_in_element_provider_7;
  public static String ProjectSetExportWizard_Project_Set_1;
  public static String ProjectSetExportWizard_Export_a_Project_Set_3;
  public static String ProjectSetExportWizard_Question_4;
  public static String ProjectSetExportWizard_Target_directory_does_not_exist__Would_you_like_to_create_it__5;
  public static String ProjectSetExportWizard_Export_Problems_6;
  public static String ProjectSetExportWizard_An_error_occurred_creating_the_target_directory_7;
  public static String ProjectSetExportWizard_Question_8;
  public static String ProjectSetExportWizard_Target_already_exists__Would_you_like_to_overwrite_it__9;
  public static String ProjectSetImportWizard_Project_Set_1;
  public static String ProjectSetImportWizard_0;
  public static String ProjectSetImportWizard_2;
  public static String ProjectSetImportWizard_1;
  public static String ProjectSetImportWizard_3;
  public static String ProjectSetImportWizard_Import_a_Project_Set_3;
  public static String ProjectSetImportWizard_workingSetExistsTitle;
  public static String ProjectSetImportWizard_workingSetExistsMessage;
  public static String ExportProjectSetMainPage_Project_Set_Files_3;
  public static String ExportProjectSetMainPage_default;
  public static String ExportProjectSetMainPage_warning;
  public static String ImportProjectSetMainPage_allFiles;
  public static String ImportProjectSetMainPage_Project_Set_Files_2;
  public static String ExportProjectSetMainPage__File_name__1;
  public static String ImportProjectSetAction_0;
  public static String SyncViewPreferencePage_lastRefreshRunNever;
  public static String SynchronizeView_13;
  public static String SynchronizeView_14;
  public static String SynchronizeView_16;
  public static String SynchronizeView_statusLine;
  public static String SynchronizeView_linkWithEditor;
  public static String SynchronizeView_linkWithEditorDescription;
  public static String SynchronizeView_linkWithEditorTooltip;
  public static String SynchronizeView_fileMustNotBeNull;
  public static String SynchronizeView_noActiveWorkbenchPage;
  public static String StatisticsPanel_outgoing;
  public static String StatisticsPanel_incoming;
  public static String StatisticsPanel_conflicting;
  public static String StatisticsPanel_noWorkingSet;
  public static String StatisticsPanel_numbersTooltip;
  public static String StatisticsPanel_numberTotalSingular;
  public static String StatisticsPanel_numberTotalPlural;
  public static String SyncViewerPreferencePage_0;
  public static String SyncViewerPreferencePage_1;
  public static String SyncViewerPreferencePage_2;
  public static String SyncViewerPreferencePage_3;
  public static String SyncViewerPreferencePage_6;
  public static String SyncViewerPreferencePage_7;
  public static String SyncViewerPreferencePage_13;
  public static String SyncViewerPreferencePage_14;
  public static String SyncViewerPreferencePage_15;
  public static String SyncViewerPreferencePage_16;
  public static String SyncViewerPreferencePage_19;
  public static String SyncViewerPreferencePage_42;
  public static String PreferencePageContainerDialog_6;
  public static String RefreshSubscriberJob_2a;
  public static String RefreshSubscriberJob_2b;
  public static String RefreshSubscriberJob_3;
  public static String SynchronizeManager_7;
  public static String SynchronizeManager_8;
  public static String SynchronizeManager_9;
  public static String SynchronizeManager_10;
  public static String TeamSubscriberSyncPage_labelWithSyncKind;
  public static String AbstractSynchronizeParticipant_4;
  public static String SynchronizeManager_11;
  public static String AbstractSynchronizeParticipant_5;
  public static String ChangesSection_filterHides;
  public static String ChangesSection_filterHidesSingular;
  public static String ChangesSection_filterHidesPlural;
  public static String ChangesSection_filterChange;
  public static String ChangesSection_noChanges;
  public static String Utils_17;
  public static String Utils_18;
  public static String Utils_19;
  public static String Utils_22;
  public static String Utils_23;
  public static String Utils_24;
  public static String Utils_25;
  public static String Utils_26;
  public static String RefreshCompleteDialog_4;
  public static String RefreshCompleteDialog_4a;
  public static String RefreshCompleteDialog_changesSingular;
  public static String RefreshCompleteDialog_changesPlural;
  public static String RefreshCompleteDialog_newChangesSingular;
  public static String RefreshCompleteDialog_newChangesPlural;
  public static String RefreshCompleteDialog_incomingChanges;
  public static String RefreshCompleteDialog_outgoingChanges;
  public static String RefreshCompleteDialog_6;
  public static String ConfigureRefreshScheduleDialog_0;
  public static String ConfigureRefreshScheduleDialog_1;
  public static String ConfigureRefreshScheduleDialog_2;
  public static String ConfigureRefreshScheduleDialog_3;
  public static String ConfigureRefreshScheduleDialog_3a;
  public static String ConfigureRefreshScheduleDialog_4;
  public static String ConfigureRefreshScheduleDialog_5;
  public static String ConfigureRefreshScheduleDialog_6;
  public static String ConfigureRefreshScheduleDialog_7;
  public static String RefreshSchedule_changesSingular;
  public static String RefreshSchedule_changesPlural;
  public static String RefreshSchedule_7;
  public static String RefreshSchedule_9;
  public static String RefreshSchedule_10;
  public static String RefreshSchedule_11;
  public static String RefreshSchedule_12;
  public static String RefreshSchedule_13;
  public static String RefreshSchedule_14;
  public static String RefreshSchedule_15;
  public static String RefreshSchedule_16;
  public static String ChangesSection_8;
  public static String ChangesSection_9;
  public static String ChangesSection_10;
  public static String ChangesSection_11;
  public static String ChangesSection_12;
  public static String OpenComparedDialog_noChangeTitle;
  public static String OpenComparedDialog_noChangesMessage;
  public static String GlobalRefreshAction_4;
  public static String GlobalRefreshAction_5;
  public static String ParticipantCompareDialog_1;
  public static String ParticipantCompareDialog_2;
  public static String ParticipantCompareDialog_3;
  public static String SynchronizeManager_27;
  public static String SynchronizeManager_30;
  public static String SynchronizeManager_31;
  public static String SynchronizeManager_32;
  public static String ParticipantPagePane_0;
  public static String Participant_synchronizing;
  public static String ParticipantPageSaveablePart_0;
  public static String Participant_synchronizingDetails;
  public static String Participant_synchronizingMoreDetails;
  public static String Participant_synchronizingResources;
  public static String GlobalRefreshResourceSelectionPage_1;
  public static String GlobalRefreshResourceSelectionPage_2;
  public static String GlobalRefreshResourceSelectionPage_3;
  public static String GlobalRefreshResourceSelectionPage_5;
  public static String GlobalRefreshResourceSelectionPage_6;
  public static String GlobalRefreshResourceSelectionPage_7;
  public static String GlobalRefreshResourceSelectionPage_8;
  public static String GlobalRefreshResourceSelectionPage_10;
  public static String GlobalRefreshResourceSelectionPage_11;
  public static String GlobalRefreshResourceSelectionPage_12;
  public static String GlobalRefreshResourceSelectionPage_13;
  public static String GlobalRefreshParticipantSelectionPage_0;
  public static String GlobalRefreshParticipantSelectionPage_1;
  public static String GlobalRefreshParticipantSelectionPage_2;
  public static String GlobalRefreshParticipantSelectionPage_3;
  public static String GlobalRefreshSubscriberPage_0;
  public static String GlobalRefreshSubscriberPage_1;
  public static String GlobalRefreshSubscriberPage_2;
  public static String SynchronizeManager_18;
  public static String GlobalSynchronizeWizard_11;
  public static String SynchronizeManager_19;
  public static String SynchronizeModelProvider_0;
  public static String SynchronizeModelUpdateHandler_0;
  public static String WorkingSetsDialog_ErrorMessage;
  public static String WorkingSetsDialog_Label;
  public static String WorkingSetsDialog_Message;
  public static String WorkingSetsDialog_Title;
  public static String WorkingSetsDialog_TitleBar;
  public static String WorkspaceScope_0;
  public static String WorkingSetScope_0;
  public static String SubscriberParticipant_namePattern;
  public static String SubscriberParticipantWizard_0;
  public static String SubscriberParticipantWizard_1;
  public static String RemoveFromView_warningTitle;
  public static String RemoveFromView_warningMessage;
  public static String RemoveFromView_warningDontShow;
  public static String ResourceMappingSelectionArea_0;
  public static String ResourceMappingSelectionArea_1;
  public static String CompressedFoldersModelProvider_0;
  public static String HierarchicalModelProvider_0;
  public static String UIProjectSetSerializationContext_0;
  public static String UIProjectSetSerializationContext_1;
  public static String UIProjectSetSerializationContext_2;
  public static String RemoveSynchronizeParticipantAction_0;
  public static String RemoveSynchronizeParticipantAction_1;
  public static String ConfigureProjectWizard_showAll;
  public static String ImportProjectSetMainPage_description;
  public static String ExportProjectSetMainPage_description;
  public static String DefaultUIFileModificationValidator_0;
  public static String DefaultUIFileModificationValidator_1;
  public static String DefaultUIFileModificationValidator_2;
  public static String DefaultUIFileModificationValidator_3;
  public static String DefaultUIFileModificationValidator_4;
  public static String CopyToClipboardAction_1;
  public static String CopyToClipboardAction_2;
  public static String CopyToClipboardAction_3;
  public static String CopyToClipboardAction_4;
  public static String PasteAction_1;
  public static String PasteAction_2;
  public static String PasteAction_3;
  public static String PasteAction_4;
  public static String FlatModelProvider_6;
  public static String FlatModelProvider_7;
  public static String FlatModelProvider_8;
  public static String FlatModelProvider_9;
  public static String FlatModelProvider_0;
  public static String ChangeLogModelProvider_0a;
  public static String ChangeLogModelProvider_1a;
  public static String ChangeLogModelProvider_2a;
  public static String ChangeLogModelProvider_3a;
  public static String ChangeLogModelProvider_0;
  public static String ChangeLogModelProvider_12;
  public static String ChangeLogModelProvider_13;
  public static String ChangeLogModelProvider_5;
  public static String ChangeLogModelProvider_6;
  public static String ChangeLogModelProvider_7;
  public static String ChangeLogModelProvider_9;
  public static String ChangeLogModelProvider_10;
  public static String ChangeLogModelManager_0;
  public static String ChangeSetActionGroup_0;
  public static String ChangeSetActionGroup_1;
  public static String ChangeSetActionGroup_2;
  public static String CommitSetDiffNode_0;
  public static String FileTypeTable_0;
  public static String FileTypeTable_1;
  public static String FileTypeTable_2;
  public static String FileTypeTable_3;
  public static String FileTypeTable_4;
  public static String FileTypeTable_5;
  public static String FileTypeTable_6;
  public static String OpenWithActionGroup_0;
  public static String nameAndRevision;
  public static String internal;
  public static String TeamCompareEditorInput_repository;
  public static String TeamCompareEditorInput_titleAncestor;
  public static String TeamCompareEditorInput_titleNoAncestor;
  public static String TeamCompareEditorInput_titleNoAncestorDifferent;
  public static String TeamCompareEditorInput_different;
  public static String TeamCompareEditorInput_comparing;
  public static String TeamCompareEditorInput_new;
  public static String TeamCompareEditorInput_deleted;
  public static String TeamCompareEditorInput_fileProgress;
  public static String GenericHistoryView_Refresh;
  public static String GenericHistoryView_GetDirectDescendents;
  public static String GenericHistoryView_GetPredecessor;
  public static String GenericHistoryView_ShowCommentViewer;
  public static String GenericHistoryView_WrapComments;
  public static String GenericHistoryView_ShowTagViewer;
  public static String GenericHistoryView_GenericFileHistoryFetcher;
  public static String GenericHistoryView_LinkWithEditor;
  public static String GenericHistoryTableProvider_Revision;
  public static String GenericHistoryTableProvider_RevisionTime;
  public static String GenericHistoryTableProvider_Author;
  public static String GenericHistoryTableProvider_Comment;
  public static String OpenRevisionAction_DeletedRevisionTitle;
  public static String OpenRevisionAction_DeletedRevisionMessage;
  public static String GenericHistoryView_ErrorFetchingEntries;
  public static String TeamContentProviderDescriptor_1;
  public static String TeamContentProviderDescriptor_2;
  public static String MergeIncomingChangesAction_0;
  public static String AdditionalMappingsDialog_0;
  public static String AdditionalMappingsDialog_1;
  public static String AdditionalMappingsDialog_2;
  public static String ResourceMappingMergeOperation_0;
  public static String ResourceMappingMergeOperation_1;
  public static String ResourceMappingMergeOperation_2;
  public static String ResourceMappingOperation_0;
  public static String AbstractSynchronizationLabelProvider_0;
  public static String ResourceMappingMergeOperation_3;
  public static String ResourceMappingMergeOperation_4;
  public static String GenericHistoryView_PinCurrentHistory;
  public static String TextAutoMerge_inputEncodingError;
  public static String TextAutoMerge_conflict;
  public static String TextAutoMerge_outputEncodingError;
  public static String TextAutoMerge_outputIOError;
  public static String GenericHistoryView_0;
  public static String LocalHistoryTableProvider_localRevision;
  public static String LocalHistoryPage_openRevision;
  public static String LocalHistoryPage_fetchingLocalHistory;
  public static String CompareFileRevisionEditorInput_compareResourceAndVersions;
  public static String CompareFileRevisionEditorInput_repository;
  public static String CompareFileRevisionEditorInput_repositoryWithoutAuthor;
  public static String CompareFileRevisionEditorInput_workspace;
  public static String CompareFileRevisionEditorInput_workspace_authorExists;
  public static String CompareFileRevisionEditorInput_localRevision;
  public static String ShowLocalHistory_1;
  public static String DiffTreeChangesSection_0;
  public static String DiffTreeChangesSection_1;
  public static String DiffTreeChangesSection_2;
  public static String ModelParticipantPageDialog_0;
  public static String ModelElementSelectionPage_0;
  public static String ModelSelectionDropDownAction_0;
  public static String ModelSelectionDropDownAction_1;
  public static String RemoveSynchronizeParticipantAction_2;
  public static String RemoveSynchronizeParticipantAction_3;
  public static String RemoveSynchronizeParticipantAction_4;
  public static String RemoveSynchronizeParticipantAction_5;
  public static String SynchronizationLabelProvider_0;
  public static String ModelMergeOperation_0;
  public static String ModelMergeOperation_1;
  public static String ModelMergeOperation_2;
  public static String ModelSynchronizeParticipant_0;
  public static String ModelSynchronizeParticipant_1;
  public static String ModelParticipantAction_0;
  public static String ModelParticipantAction_1;
  public static String ShowModelProviderAction_0;
  public static String GenericHistoryView_RefreshTooltip;
  public static String GenericHistoryView_LinkWithTooltip;
  public static String CompareFileRevisionEditorInput_0;
  public static String CompareFileRevisionEditorInput_1;
  public static String CompareFileRevisionEditorInput_2;
  public static String SynchronizationCompareAdapter_0;
  public static String HistoryPage_Today;
  public static String HistoryPage_Yesterday;
  public static String HistoryPage_ThisMonth;
  public static String HistoryPage_Previous;
  public static String OpenRevisionAction_DeletedRevTitle;
  public static String OpenRevisionAction_ErrorTitle;
  public static String OpenRevisionAction_ErrorMessage;
  public static String OpenRevisionAction_DeletedRevMessage;
  public static String CompareRevisionAction_DeleteCompareMessage;
  public static String CompareRevisionAction_CompareWithCurrent;
  public static String CompareRevisionAction_CompareWithOther;
  public static String CompareRevisionAction_Revision;
  public static String CompareRevisionAction_Local;
  public static String TeamAction_errorTitle;
  public static String TeamAction_handlerNotEnabledTitle;
  public static String TeamAction_handlerNotEnabledMessage;
  public static String SelectAncestorDialog_title;
  public static String SelectAncestorDialog_message;
  public static String SelectAncestorDialog_option;
  public static String PatchParsedPage_title;
  public static String PatchParsedPage_description;
  public static String PatchParsedPage_clickFinishToGoToSynchronizeView;
  public static String PatchInaccessibleProjectsPage_title;
  public static String PatchInaccessibleProjectsPage_message;
  public static String PatchInaccessibleProjectsPage_projectDoesNotExistInWorkspace;
  public static String PatchInaccessibleProjectsPage_selectExisting;
  public static String PatchInaccessibleProjectsPage_deselectAll;
  public static String PatchInaccessibleProjectsPage_openingProjects;
  public static String IgnoreLeadingPathSegmentsDialog_title;
  public static String IgnoreLeadingPathSegmentsDialog_message;
  public static String IgnoreLeadingPathSegmentsDialog_notANumber;
  public static String IgnoreLeadingPathSegmentsDialog_numberOutOfRange;
  public static String FuzzFactorDialog_title;
  public static String FuzzFactorDialog_message;
  public static String FuzzFactorDialog_guess;
  public static String FuzzFactorDialog_notANumber;
  public static String FuzzFactorDialog_numberOutOfRange;
  public static String NotFound;
  
  static
  {
    NLS.initializeMessages("org.eclipse.team.internal.ui.messages", TeamUIMessages.class);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.TeamUIMessages
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;

class TeamUIPlugin$1
  implements Runnable
{
  private final Object[] val$ret;
  private final IConfigurationElement val$element;
  private final String val$classAttribute;
  private final CoreException[] val$exc;
  
  TeamUIPlugin$1(Object[] paramArrayOfObject, IConfigurationElement paramIConfigurationElement, String paramString, CoreException[] paramArrayOfCoreException)
  {
    val$ret = paramArrayOfObject;val$element = paramIConfigurationElement;val$classAttribute = paramString;val$exc = paramArrayOfCoreException;
  }
  
  public void run()
  {
    try
    {
      val$ret[0] = val$element.createExecutableExtension(val$classAttribute);
    }
    catch (CoreException e)
    {
      val$exc[0] = e;
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.TeamUIPlugin.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.PlatformUI;

class TeamUIPlugin$2
  extends Job
{
  final TeamUIPlugin this$0;
  
  TeamUIPlugin$2(TeamUIPlugin paramTeamUIPlugin, String $anonymous0)
  {
    super($anonymous0);this$0 = paramTeamUIPlugin;
  }
  
  protected IStatus run(IProgressMonitor monitor)
  {
    TeamCapabilityHelper.getInstance();
    this$0.getPreferenceStore().setValue("org.eclipse.team.ui.first_time", false);
    return Status.OK_STATUS;
  }
  
  public boolean shouldRun()
  {
    return PlatformUI.isWorkbenchRunning();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.TeamUIPlugin.2
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui;

import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.team.core.RepositoryProviderType;
import org.eclipse.team.core.subscribers.Subscriber;
import org.eclipse.team.internal.ui.mapping.StreamMergerDelegate;
import org.eclipse.team.internal.ui.mapping.WorkspaceTeamStateProvider;
import org.eclipse.team.internal.ui.synchronize.SynchronizeManager;
import org.eclipse.team.ui.mapping.ITeamStateProvider;
import org.eclipse.team.ui.synchronize.ISynchronizeManager;
import org.eclipse.team.ui.synchronize.SubscriberTeamStateProvider;
import org.eclipse.team.ui.synchronize.TeamStateProvider;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.service.prefs.Preferences;

public class TeamUIPlugin
  extends AbstractUIPlugin
{
  private static TeamUIPlugin instance;
  public static final String ICON_PATH = "$nl$/icons/full/";
  public static final String ID = "org.eclipse.team.ui";
  public static final String PLUGIN_ID = "org.eclipse.team.ui";
  public static final String TRIGGER_POINT_ID = "org.eclipse.team.ui.activityTriggerPoint";
  private static List propertyChangeListeners = new ArrayList(5);
  private Hashtable imageDescriptors = new Hashtable(20);
  private WorkspaceTeamStateProvider provider;
  private Map decoratedStateProviders = new HashMap();
  private SynchronizeManager synchronizeManager;
  public static final String REMOVE_FROM_VIEW_ACTION_ID = "org.eclipse.team.internal.ui.RemoveFromView";
  
  public TeamUIPlugin()
  {
    instance = this;
  }
  
  public static Object createExtension(IConfigurationElement element, String classAttribute)
    throws CoreException
  {
    Bundle bundle = Platform.getBundle(element.getNamespaceIdentifier());
    if (bundle.getState() == 32) {
      return element.createExecutableExtension(classAttribute);
    }
    Object[] ret = new Object[1];
    CoreException[] exc = new CoreException[1];
    BusyIndicator.showWhile(null, new Runnable()
    {
      private final IConfigurationElement val$element;
      private final String val$classAttribute;
      private final CoreException[] val$exc;
      
      public void run()
      {
        try
        {
          TeamUIPlugin.this[0] = val$element.createExecutableExtension(val$classAttribute);
        }
        catch (CoreException e)
        {
          val$exc[0] = e;
        }
      }
    });
    if (exc[0] != null) {
      throw exc[0];
    }
    return ret[0];
  }
  
  public static IWorkbenchPage getActivePage()
  {
    IWorkbenchWindow window = getPlugin().getWorkbench().getActiveWorkbenchWindow();
    if (window == null) {
      return null;
    }
    return window.getActivePage();
  }
  
  public static TeamUIPlugin getPlugin()
  {
    return instance;
  }
  
  protected void initializeDefaultPluginPreferences()
  {
    IPreferenceStore store = getPreferenceStore();
    store.setDefault("org.eclipse.team.ui.view_syncinfo_in_label", false);
    store.setDefault("org.eclipse.team.ui.show_author_in_compare_editor", false);
    store.setDefault("org.eclipse.team.ui.validate_edit_with_no_context", false);
    store.setDefault("org.eclipse.team.ui.reuse_open_compare_editors", true);
    store.setDefault("org.eclipse.team.ui.run_import_in_background_", false);
    store.setDefault("org.eclipse.team.ui.apply_patch_in_sychronize_view", false);
    store.setDefault("org.eclipse.team.ui.compress_folders", true);
    store.setDefault("org.eclipse.team.ui.default_layout", "org.eclipse.team.ui.compressed_layout");
    store.setDefault("org.eclipse.team.ui.syncview_default_perspective", "org.eclipse.team.ui.TeamSynchronizingPerspective");
    store.setDefault("org.eclipse.team.ui.sychronizing_default_participant", "none");
    store.setDefault("org.eclipse.team.ui.sychronizing_default_participant_sec_id", "none");
    store.setDefault("org.eclipse.team.ui.sychronizing_default_perspective_to_show", "prompt");
    store.setDefault("org.eclipse.team.ui.remove_from_view_without_prompt", false);
    store.setDefault("org.eclipse.team.ui.first_time", true);
    if ((!store.isDefault("org.eclipse.team.ui.compress_folders")) && (!store.getBoolean("org.eclipse.team.ui.compress_folders")))
    {
      store.setToDefault("org.eclipse.team.ui.compress_folders");
      
      store.setDefault("org.eclipse.team.ui.default_layout", "org.eclipse.team.ui.tree_layout");
    }
  }
  
  public static void log(IStatus status)
  {
    getPlugin().getLog().log(status);
  }
  
  public static void log(CoreException e)
  {
    IStatus status = e.getStatus();
    log(status.getSeverity(), status.getMessage(), e);
  }
  
  public static void log(int severity, String message, Throwable e)
  {
    log(new Status(severity, "org.eclipse.team.ui", 0, message, e));
  }
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    
    initializeImages(this);
    
    IPreferenceStore store = getPreferenceStore();
    if (store.getBoolean("org.eclipse.team.ui.first_time"))
    {
      Job capabilityInitializer = new Job("")
      {
        protected IStatus run(IProgressMonitor monitor)
        {
          TeamCapabilityHelper.getInstance();
          getPreferenceStore().setValue("org.eclipse.team.ui.first_time", false);
          return Status.OK_STATUS;
        }
        
        public boolean shouldRun()
        {
          return PlatformUI.isWorkbenchRunning();
        }
      };
      capabilityInitializer.setSystem(true);
      capabilityInitializer.setPriority(50);
      capabilityInitializer.schedule(1000L);
    }
    StreamMergerDelegate.start();
  }
  
  /* Error */
  public void stop(BundleContext context)
    throws Exception
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 497	org/eclipse/team/internal/ui/TeamUIPlugin:synchronizeManager	Lorg/eclipse/team/internal/ui/synchronize/SynchronizeManager;
    //   4: ifnull +21 -> 25
    //   7: aload_0
    //   8: getfield 497	org/eclipse/team/internal/ui/TeamUIPlugin:synchronizeManager	Lorg/eclipse/team/internal/ui/synchronize/SynchronizeManager;
    //   11: invokevirtual 548	org/eclipse/team/internal/ui/synchronize/SynchronizeManager:dispose	()V
    //   14: goto +11 -> 25
    //   17: astore_2
    //   18: aload_0
    //   19: aload_1
    //   20: invokespecial 554	org/eclipse/ui/plugin/AbstractUIPlugin:stop	(Lorg/osgi/framework/BundleContext;)V
    //   23: aload_2
    //   24: athrow
    //   25: aload_0
    //   26: aload_1
    //   27: invokespecial 554	org/eclipse/ui/plugin/AbstractUIPlugin:stop	(Lorg/osgi/framework/BundleContext;)V
    //   30: aload_0
    //   31: getfield 496	org/eclipse/team/internal/ui/TeamUIPlugin:provider	Lorg/eclipse/team/internal/ui/mapping/WorkspaceTeamStateProvider;
    //   34: ifnull +10 -> 44
    //   37: aload_0
    //   38: getfield 496	org/eclipse/team/internal/ui/TeamUIPlugin:provider	Lorg/eclipse/team/internal/ui/mapping/WorkspaceTeamStateProvider;
    //   41: invokevirtual 546	org/eclipse/team/internal/ui/mapping/WorkspaceTeamStateProvider:dispose	()V
    //   44: aload_0
    //   45: getfield 494	org/eclipse/team/internal/ui/TeamUIPlugin:decoratedStateProviders	Ljava/util/Map;
    //   48: invokeinterface 561 1 0
    //   53: invokeinterface 555 1 0
    //   58: astore_2
    //   59: goto +17 -> 76
    //   62: aload_2
    //   63: invokeinterface 557 1 0
    //   68: checkcast 323	org/eclipse/team/ui/synchronize/SubscriberTeamStateProvider
    //   71: astore_3
    //   72: aload_3
    //   73: invokevirtual 549	org/eclipse/team/ui/synchronize/SubscriberTeamStateProvider:dispose	()V
    //   76: aload_2
    //   77: invokeinterface 556 1 0
    //   82: ifne -20 -> 62
    //   85: return
    // Line number table:
    //   Java source line #249	-> byte code offset #0
    //   Java source line #250	-> byte code offset #7
    //   Java source line #251	-> byte code offset #17
    //   Java source line #252	-> byte code offset #18
    //   Java source line #253	-> byte code offset #23
    //   Java source line #252	-> byte code offset #25
    //   Java source line #254	-> byte code offset #30
    //   Java source line #255	-> byte code offset #37
    //   Java source line #257	-> byte code offset #44
    //   Java source line #258	-> byte code offset #62
    //   Java source line #259	-> byte code offset #72
    //   Java source line #257	-> byte code offset #76
    //   Java source line #261	-> byte code offset #85
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	86	0	this	TeamUIPlugin
    //   0	86	1	context	BundleContext
    //   17	7	2	localObject	Object
    //   58	19	2	iter	Iterator
    //   71	2	3	sdsp	SubscriberTeamStateProvider
    // Exception table:
    //   from	to	target	type
    //   0	17	17	finally
  }
  
  public static void addPropertyChangeListener(IPropertyChangeListener listener)
  {
    propertyChangeListeners.add(listener);
  }
  
  public static void removePropertyChangeListener(IPropertyChangeListener listener)
  {
    propertyChangeListeners.remove(listener);
  }
  
  public static void broadcastPropertyChange(PropertyChangeEvent event)
  {
    for (Iterator it = propertyChangeListeners.iterator(); it.hasNext();)
    {
      IPropertyChangeListener listener = (IPropertyChangeListener)it.next();
      listener.propertyChange(event);
    }
  }
  
  private static void createImageDescriptor(TeamUIPlugin plugin, String id)
  {
    plugin.privateCreateImageDescriptor(id);
  }
  
  private void privateCreateImageDescriptor(String id)
  {
    ImageDescriptor desc = ImageDescriptor.createFromURL(getImageUrl(id));
    imageDescriptors.put(id, desc);
  }
  
  public static ImageDescriptor getImageDescriptor(String id)
  {
    return getPlugin().privateGetImageDescriptor(id);
  }
  
  private ImageDescriptor privateGetImageDescriptor(String id)
  {
    if (!imageDescriptors.containsKey(id)) {
      createImageDescriptor(getPlugin(), id);
    }
    return (ImageDescriptor)imageDescriptors.get(id);
  }
  
  public static ImageDescriptor getImageDescriptorFromExtension(IExtension extension, String subdirectoryAndFilename)
  {
    URL fullPathString = FileLocator.find(Platform.getBundle(extension.getNamespaceIdentifier()), new Path(subdirectoryAndFilename), null);
    return ImageDescriptor.createFromURL(fullPathString);
  }
  
  private void initializeImages(TeamUIPlugin plugin)
  {
    createImageDescriptor(plugin, "ovr/dirty_ov.gif");
    createImageDescriptor(plugin, "ovr/confchg_ov.gif");
    createImageDescriptor(plugin, "ovr/version_controlled.gif");
    createImageDescriptor(plugin, "ovr/checkedout_ov.gif");
    createImageDescriptor(plugin, "ovr/error_co.gif");
    createImageDescriptor(plugin, "ovr/warning_co.gif");
    createImageDescriptor(plugin, "ovr/waiting_ovr.gif");
    
    createImageDescriptor(plugin, "elcl16/site_element.gif");
    
    createImageDescriptor(plugin, "elcl16/incom_synch.gif");
    createImageDescriptor(plugin, "elcl16/outgo_synch.gif");
    createImageDescriptor(plugin, "elcl16/conflict_synch.gif");
    createImageDescriptor(plugin, "elcl16/refresh.gif");
    createImageDescriptor(plugin, "elcl16/change_filter.gif");
    createImageDescriptor(plugin, "elcl16/ignorews_edit.gif");
    createImageDescriptor(plugin, "elcl16/collapseall.gif");
    createImageDescriptor(plugin, "elcl16/collapseall.gif");
    
    createImageDescriptor(plugin, "dlcl16/incom_synch.gif");
    createImageDescriptor(plugin, "dlcl16/outgo_synch.gif");
    createImageDescriptor(plugin, "dlcl16/conflict_synch.gif");
    createImageDescriptor(plugin, "dlcl16/refresh.gif");
    createImageDescriptor(plugin, "dlcl16/ignorews_edit.gif");
    
    createImageDescriptor(plugin, "elcl16/catchup_rls.gif");
    createImageDescriptor(plugin, "elcl16/release_rls.gif");
    createImageDescriptor(plugin, "elcl16/catchuprelease_rls.gif");
    
    createImageDescriptor(plugin, "dlcl16/catchup_rls.gif");
    createImageDescriptor(plugin, "dlcl16/release_rls.gif");
    createImageDescriptor(plugin, "dlcl16/catchuprelease_rls.gif");
    
    createImageDescriptor(plugin, "elcl16/catchup_rls.gif");
    createImageDescriptor(plugin, "elcl16/release_rls.gif");
    createImageDescriptor(plugin, "elcl16/catchuprelease_rls.gif");
    
    createImageDescriptor(plugin, "wizban/import_projectset_wizban.png");
    createImageDescriptor(plugin, "wizban/export_projectset_wizban.png");
    createImageDescriptor(plugin, "wizban/share_wizban.png");
    
    createImageDescriptor(plugin, "obj/compressed_folder_obj.gif");
    createImageDescriptor(plugin, "eview16/synch_synch.gif");
    createImageDescriptor(plugin, "elcl16/hierarchicalLayout.gif");
    
    createImageDescriptor(plugin, "obj/dates.gif");
    createImageDescriptor(plugin, "eview16/compare_view.gif");
    createImageDescriptor(plugin, "obj/local_entry_tbl.gif");
  }
  
  private URL getImageUrl(String relative)
  {
    return FileLocator.find(Platform.getBundle("org.eclipse.team.ui"), new Path("$nl$/icons/full/" + relative), null);
  }
  
  public static Display getStandardDisplay()
  {
    Display display = Display.getCurrent();
    if (display == null) {
      display = PlatformUI.getWorkbench().getDisplay();
    }
    return display;
  }
  
  public Image getImage(String key)
  {
    Image image = getImageRegistry().get(key);
    if (image == null)
    {
      ImageDescriptor d = getImageDescriptor(key);
      image = d.createImage();
      getImageRegistry().put(key, image);
    }
    return image;
  }
  
  public static void run(IRunnableWithProgress runnable)
  {
    try
    {
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().run(true, true, runnable);
    }
    catch (InvocationTargetException e)
    {
      Utils.handleError(getStandardDisplay().getActiveShell(), e, null, null);
    }
    catch (InterruptedException localInterruptedException) {}
  }
  
  public Preferences getInstancePreferences()
  {
    return new InstanceScope().getNode(getBundle().getSymbolicName());
  }
  
  public synchronized TeamStateProvider getDecoratedStateProvider(RepositoryProviderType rpt)
  {
    TeamStateProvider provider = (TeamStateProvider)decoratedStateProviders.get(rpt.getID());
    if (provider != null) {
      return provider;
    }
    Subscriber subscriber = rpt.getSubscriber();
    if (subscriber != null)
    {
      provider = new SubscriberTeamStateProvider(subscriber);
      decoratedStateProviders.put(rpt.getID(), provider);
      return provider;
    }
    return null;
  }
  
  public synchronized ITeamStateProvider getDecoratedStateProvider()
  {
    if (provider == null) {
      provider = new WorkspaceTeamStateProvider();
    }
    return provider;
  }
  
  public ISynchronizeManager getSynchronizeManager()
  {
    if (synchronizeManager == null) {
      synchronizeManager = new SynchronizeManager();
    }
    return synchronizeManager;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.team.internal.ui.TeamUIPlugin
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.team.internal.ui;

import java.io.File;
import java.util.Arrays;
import java.util.List;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
import org.eclipse.osgi.util.NLS;
import org.eclipse.team.internal.ui.dialogs.IPromptCondition;

class UIProjectSetSerializationContext$1
  implements IPromptCondition
{
  List resources;
  final UIProjectSetSerializationContext this$0;
  
  UIProjectSetSerializationContext$1(UIProjectSetSerializationContext paramUIProjectSetSerializationContext, IProject[] paramArrayOfIProject)
  {
    this$0 = paramUIProjectSetSerializationContext;
    resources = Arrays.asList(paramArrayOfIProject);
  }
  
  public boolean needsPrompt(IResource resource)
  {
    if ((resource instanceof IProject))
    {
      IProject project = (IProject)resource;
      return ((project.exists()) || (getTargetFile(project).exists())) && (resources.contains(resource));
    }
    return false;
  }
  
  public String promptMessage(IResource resource)
  {
    if (resource.exists()) {
      return NLS.bind(TeamUIMessages.UIProjectSetSerializationContext_0, new String[] { resource.getName() });
    }
    return NLS.bind(TeamUIMessages.UIProjectSetSerializationContext_2, new String[] { resource.getName(), getTargetFile((IProject)resource).getAbsolutePath() });
  }
  
  public File getTargetFile(IProject project)
  {
    return new File(project.getParent().getLocation().toFile(), 
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

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