summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorTomasz Zarna2013-01-25 05:08:20 (EST)
committer Tomasz Zarna2013-01-25 05:08:20 (EST)
commite9901ed2952ee06f5064aff9ac33e600e748d46e (patch)
tree70b61e6fae7f6632bee17d009c918b71d71f46a9
parentcf20452adce7514bda753174795b02c6d95b6056 (diff)
downloadegit-e9901ed2952ee06f5064aff9ac33e600e748d46e.zip
egit-e9901ed2952ee06f5064aff9ac33e600e748d46e.tar.gz
egit-e9901ed2952ee06f5064aff9ac33e600e748d46e.tar.bz2
Don't use ContextChangeSet#getComment(..), it's deprecated and internalrefs/changes/24/9924/1
ContextChangeSet#getComment(..) is an internal method and it has been deprecated. Use TeamUiUtil.getComment(..) instead. Change-Id: I997373563dd049f87f58302cc5411942c2691844
-rw-r--r--org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java
index f191c06..939cb5a 100644
--- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java
+++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* Chris Aniszczyk <caniszczyk@gmail.com> - initial API and implementation
* Manuel Doninger <manuel@doninger.net>
@@ -17,16 +17,15 @@ import org.eclipse.core.resources.IResource;
import org.eclipse.egit.ui.ICommitMessageProvider;
import org.eclipse.mylyn.context.core.ContextCore;
import org.eclipse.mylyn.context.core.IInteractionContext;
-import org.eclipse.mylyn.internal.team.ui.ContextChangeSet;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.ui.TasksUi;
+import org.eclipse.mylyn.team.ui.TeamUiUtil;
/**
* Gets the active task and combines the description and title with
* the commit message template defined in the preferences
*/
-@SuppressWarnings("restriction")
public class MylynCommitMessageProvider implements ICommitMessageProvider {
/**
@@ -40,9 +39,7 @@ public class MylynCommitMessageProvider implements ICommitMessageProvider {
if (task == null)
return message;
boolean checkTaskRepository = true;
- message = ContextChangeSet.getComment(checkTaskRepository, task,
- resources);
-
+ message = TeamUiUtil.getComment(checkTaskRepository, task, resources);
return message;
}