diff options
author | Tomasz Zarna | 2013-01-25 10:08:20 +0000 |
---|---|---|
committer | Tomasz Zarna | 2013-01-25 10:08:20 +0000 |
commit | e9901ed2952ee06f5064aff9ac33e600e748d46e (patch) | |
tree | 70b61e6fae7f6632bee17d009c918b71d71f46a9 /org.eclipse.egit.mylyn.ui/src/org | |
parent | cf20452adce7514bda753174795b02c6d95b6056 (diff) | |
download | egit-e9901ed2952ee06f5064aff9ac33e600e748d46e.tar.gz egit-e9901ed2952ee06f5064aff9ac33e600e748d46e.tar.xz egit-e9901ed2952ee06f5064aff9ac33e600e748d46e.zip |
Don't use ContextChangeSet#getComment(..), it's deprecated and internal
ContextChangeSet#getComment(..) is an internal method and it has been
deprecated. Use TeamUiUtil.getComment(..) instead.
Change-Id: I997373563dd049f87f58302cc5411942c2691844
Diffstat (limited to 'org.eclipse.egit.mylyn.ui/src/org')
-rw-r--r-- | org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/MylynCommitMessageProvider.java | 9 |
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 f191c0693e..939cb5a142 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;
}
|