Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-06-14 11:32:25 -0400
committerMichael Valenta2002-06-14 11:32:25 -0400
commit13de6bbb616651fd2f93eb1c5d16fc913e78cbba (patch)
treecbdaa10a24e96cb13d0425a2d798c134166ba31c
parente142341f5eb34cc86c942786bbc9f69a3deb2860 (diff)
downloadeclipse.platform.team-RepositoryMappingNotification.tar.gz
eclipse.platform.team-RepositoryMappingNotification.tar.xz
eclipse.platform.team-RepositoryMappingNotification.zip
*** empty log message ***RepositoryMappingNotification
-rw-r--r--bundles/org.eclipse.team.core/pdepatch.txt85
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java2
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties1
3 files changed, 86 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.core/pdepatch.txt b/bundles/org.eclipse.team.core/pdepatch.txt
new file mode 100644
index 000000000..fac94bed1
--- /dev/null
+++ b/bundles/org.eclipse.team.core/pdepatch.txt
@@ -0,0 +1,85 @@
+Index: plugin.xml
+===================================================================
+RCS file: /home/eclipse/org.eclipse.pde.core/plugin.xml,v
+retrieving revision 1.11
+diff -u -r1.11 plugin.xml
+--- plugin.xml 1 Jun 2002 03:10:34 -0000 1.11
++++ plugin.xml 14 Jun 2002 15:31:28 -0000
+@@ -30,5 +30,13 @@
+ class="org.eclipse.pde.internal.core.EclipseHomeInitializer">
+ </classpathVariableInitializer>
+ </extension>
++
++ <!-- *************** Repository Mapping Notification **************** -->
++ <extension
++ point="org.eclipse.team.core.repositoryMappingNotification">
++ <repository
++ class="org.eclipse.pde.internal.core.RepositoryMappingListener">
++ </repository>
++ </extension>
+
+ </plugin>
+Index: src/org/eclipse/pde/internal/core/RepositoryMappingListener.java
+===================================================================
+RCS file: src/org/eclipse/pde/internal/core/RepositoryMappingListener.java
+diff -N src/org/eclipse/pde/internal/core/RepositoryMappingListener.java
+--- /dev/null 1 Jan 1970 00:00:00 -0000
++++ src/org/eclipse/pde/internal/core/RepositoryMappingListener.java 14 Jun 2002 15:31:29 -0000
+@@ -0,0 +1,57 @@
++/*******************************************************************************
++ * Copyright (c) 2002 IBM Corporation and others.
++ * All rights reserved. This program and the accompanying materials
++ * are made available under the terms of the Common Public License v0.5
++ * which accompanies this distribution, and is available at
++ * http://www.eclipse.org/legal/cpl-v05.html
++ *
++ * Contributors:
++ * IBM - Initial API and implementation
++ ******************************************************************************/
++package org.eclipse.pde.internal.core;
++
++import org.eclipse.core.resources.IProject;
++import org.eclipse.core.runtime.CoreException;
++import org.eclipse.team.core.IRepositoryMappingListener;
++
++public class RepositoryMappingListener implements IRepositoryMappingListener {
++
++ /**
++ * Constructor for RepositoryMappingListener.
++ */
++ public RepositoryMappingListener() {
++ super();
++ }
++
++ /**
++ * @see org.eclipse.team.core.IRepositoryMappingListener#repositoryProviderMapped(IProject)
++ */
++ public void repositoryProviderMapped(IProject project) {
++ // The project has been mapped to a repository provider.
++ // Ensure that it is not a binary project anymore.
++ if (WorkspaceModelManager.isPluginProject(project)) {
++ try {
++ String binary =
++ project.getPersistentProperty(
++ PDECore.EXTERNAL_PROJECT_PROPERTY);
++ if (binary != null) {
++ // The project contents has been replaced by
++ // core - this is not a binary project any more
++ project.setPersistentProperty(
++ PDECore.EXTERNAL_PROJECT_PROPERTY,
++ null);
++ // Not sure of what action to take to ensure the decorator gets refreshed
++ }
++ } catch (CoreException e) {
++ PDECore.logException(e);
++ }
++ }
++ }
++
++ /**
++ * @see org.eclipse.team.core.IRepositoryMappingListener#repositoryProviderUnmapped(IProject)
++ */
++ public void repositoryProviderUnmapped(IProject project) {
++ }
++
++}
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
index 983fd5260..591e5e91d 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/RepositoryProvider.java
@@ -166,7 +166,7 @@ public abstract class RepositoryProvider implements IProjectNature {
// The reason could be that the provider's plugin is no longer available.
// Better log it just in case this is unexpected.
TeamPlugin.log(new Status(IStatus.ERROR, TeamPlugin.ID, 0,
- Policy.bind("RepositoryProvider.couldNotInstantiateProvider", id), null));
+ Policy.bind("RepositoryProvider.couldNotInstantiateProvider", project.getName(), id), null));
} else {
provider.deconfigure();
}
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties
index 73678e030..556023450 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/messages.properties
@@ -32,7 +32,6 @@ RepositoryProvider_providerTypeIdNotRegistered=Error configuring the RepositoryP
RepositoryProvider.couldNotInstantiateProvider=Could not instantiate provider {1} for project {0}.
RepositoryProvider.No_Provider_Registered=No provider registered for {0}.
RepositoryProvider.propertyMismatch=Inconsistent session/persistent property state looking up provider {1}.
-RepositoryProvider.couldNotInstantiateProvider=Could not instantiate provider with ID ''{0}''.
TeamPlugin_setting_global_ignore_7=setting global ignore
TeamPlugin_renaming_21=renaming

Back to the top