diff options
author | Matthias Sohn | 2013-05-03 14:23:20 +0000 |
---|---|---|
committer | Robin Stocker | 2013-05-03 15:00:32 +0000 |
commit | 91861e58ca2cfddf11253a17dc574233b967cdaa (patch) | |
tree | 2afbde2f54082ec1e4723dd0d7bd2b8c7edc5f71 /org.eclipse.egit.mylyn.ui/src/org | |
parent | dadf0386a08feff68b62bf1a1b506611ec7fce6b (diff) | |
download | egit-91861e58ca2cfddf11253a17dc574233b967cdaa.tar.gz egit-91861e58ca2cfddf11253a17dc574233b967cdaa.tar.xz egit-91861e58ca2cfddf11253a17dc574233b967cdaa.zip |
Fix line endings
Change-Id: Id7f665b3f4cd7aa48c31593f8b7ce74ee417d5c3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Robin Stocker <robin@nibor.org>
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 | 120 |
1 files changed, 60 insertions, 60 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 939cb5a142..66c398ef6d 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 @@ -1,60 +1,60 @@ -/*******************************************************************************
- * Copyright (c) 2011 Chris Aniszczyk and others.
- * All rights reserved. This program and the accompanying materials
- * 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>
- * Benjamin Muskalla <benjamin.muskalla@tasktop.com>
- * Thorsten Kamann <thorsten@kamann.info>
- *******************************************************************************/
-package org.eclipse.egit.internal.mylyn.ui.commit;
-
-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.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
- */
-public class MylynCommitMessageProvider implements ICommitMessageProvider {
-
- /**
- * @return the mylyn commit message template defined in the preferences
- */
- public String getMessage(IResource[] resources) {
- String message = ""; //$NON-NLS-1$
- if (resources == null)
- return message;
- ITask task = getCurrentTask();
- if (task == null)
- return message;
- boolean checkTaskRepository = true;
- message = TeamUiUtil.getComment(checkTaskRepository, task, resources);
- return message;
- }
-
- /**
- * @return the currently activated task or <code>null</code> if no task is
- * activated
- */
- protected ITask getCurrentTask() {
- return TasksUi.getTaskActivityManager().getActiveTask();
- }
-
- /**
- * @return the activecontext or <code>null</code> if no activecontext exists
- */
- protected IInteractionContext getActiveContext() {
- return ContextCore.getContextManager().getActiveContext();
- }
-}
+/******************************************************************************* + * Copyright (c) 2011 Chris Aniszczyk and others. + * All rights reserved. This program and the accompanying materials + * 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> + * Benjamin Muskalla <benjamin.muskalla@tasktop.com> + * Thorsten Kamann <thorsten@kamann.info> + *******************************************************************************/ +package org.eclipse.egit.internal.mylyn.ui.commit; + +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.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 + */ +public class MylynCommitMessageProvider implements ICommitMessageProvider { + + /** + * @return the mylyn commit message template defined in the preferences + */ + public String getMessage(IResource[] resources) { + String message = ""; //$NON-NLS-1$ + if (resources == null) + return message; + ITask task = getCurrentTask(); + if (task == null) + return message; + boolean checkTaskRepository = true; + message = TeamUiUtil.getComment(checkTaskRepository, task, resources); + return message; + } + + /** + * @return the currently activated task or <code>null</code> if no task is + * activated + */ + protected ITask getCurrentTask() { + return TasksUi.getTaskActivityManager().getActiveTask(); + } + + /** + * @return the activecontext or <code>null</code> if no activecontext exists + */ + protected IInteractionContext getActiveContext() { + return ContextCore.getContextManager().getActiveContext(); + } +} |