From 91861e58ca2cfddf11253a17dc574233b967cdaa Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 3 May 2013 16:23:20 +0200 Subject: Fix line endings Change-Id: Id7f665b3f4cd7aa48c31593f8b7ce74ee417d5c3 Signed-off-by: Matthias Sohn Signed-off-by: Robin Stocker --- .../ui/commit/MylynCommitMessageProvider.java | 120 ++++++++++----------- 1 file changed, 60 insertions(+), 60 deletions(-) (limited to 'org.eclipse.egit.mylyn.ui/src/org') 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 - initial API and implementation - * Manuel Doninger - * Benjamin Muskalla - * Thorsten Kamann - *******************************************************************************/ -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 null if no task is - * activated - */ - protected ITask getCurrentTask() { - return TasksUi.getTaskActivityManager().getActiveTask(); - } - - /** - * @return the activecontext or null 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 - initial API and implementation + * Manuel Doninger + * Benjamin Muskalla + * Thorsten Kamann + *******************************************************************************/ +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 null if no task is + * activated + */ + protected ITask getCurrentTask() { + return TasksUi.getTaskActivityManager().getActiveTask(); + } + + /** + * @return the activecontext or null if no activecontext exists + */ + protected IInteractionContext getActiveContext() { + return ContextCore.getContextManager().getActiveContext(); + } +} -- cgit v1.2.3