Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-05-16 12:15:01 -0400
committerJean Michel-Lemieux2002-05-16 12:15:01 -0400
commit062e56914389239a097ff710a8201bd9df8c1c0f (patch)
treed9c7d61ed0446b587298d0a0d19ce197c924f7a8
parent9dadad9ca710a75de5fd37702e9db5b4639b1a63 (diff)
downloadeclipse.platform.team-062e56914389239a097ff710a8201bd9df8c1c0f.tar.gz
eclipse.platform.team-062e56914389239a097ff710a8201bd9df8c1c0f.tar.xz
eclipse.platform.team-062e56914389239a097ff710a8201bd9df8c1c0f.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/TeamException.java5
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/TeamException.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/TeamException.java
index 872faece4..78b29ef75 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/TeamException.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/TeamException.java
@@ -74,4 +74,9 @@ public class TeamException extends Exception {
super(e.getMessage());
this.status = new Status(IStatus.ERROR, TeamPlugin.ID, 0, message, e);
}
+
+ public TeamException(String message) {
+ super(message);
+ this.status = new Status(IStatus.ERROR, TeamPlugin.ID, 0, message, null);
+ }
}
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java
index 6c5146e3a..737383c20 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/target/TargetManager.java
@@ -78,7 +78,7 @@ public class TargetManager {
ISynchronizer s = ResourcesPlugin.getWorkspace().getSynchronizer();
byte[] mappingBytes = s.getSyncInfo(TARGET_MAPPINGS, project);
if (mappingBytes != null) {
- throw new TeamException("Problems mapping project. Project is already mapped.", null);
+ throw new TeamException("Problems mapping project. Project is already mapped.");
}
LocationMapping mapping = new LocationMapping(site, path);
s.setSyncInfo(

Back to the top