From f11aacee899077bbcdcce2305469e2134175aa04 Mon Sep 17 00:00:00 2001 From: Steffen Pingel Date: Sun, 17 Mar 2013 17:32:08 +0100 Subject: 402059: rename CopyCommentDetailsURLAction * Rename class to to CopyCommentDetailsUrlAction to conform to naming convention Change-Id: I08286cf33af7d170c0b443ea9420c92ef1daac2b Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=402059 --- .../tasks/ui/actions/CommentActionGroup.java | 4 +-- .../ui/actions/CopyCommentDetailsURLAction.java | 40 ---------------------- .../ui/actions/CopyCommentDetailsUrlAction.java | 40 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsURLAction.java create mode 100644 org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsUrlAction.java diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CommentActionGroup.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CommentActionGroup.java index b0e97c07b..f40174a12 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CommentActionGroup.java +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CommentActionGroup.java @@ -28,7 +28,7 @@ public class CommentActionGroup extends ActionGroup { private CopyCommenterNameAction copyCommenterNameAction; - private CopyCommentDetailsURLAction copyCommentDetailsURL; + private CopyCommentDetailsUrlAction copyCommentDetailsURL; private boolean initialized; @@ -39,7 +39,7 @@ public class CommentActionGroup extends ActionGroup { initialized = true; copyDetailsAction = new CopyCommentDetailsAction(); copyCommenterNameAction = new CopyCommenterNameAction(); - copyCommentDetailsURL = new CopyCommentDetailsURLAction(); + copyCommentDetailsURL = new CopyCommentDetailsUrlAction(); } @Override diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsURLAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsURLAction.java deleted file mode 100644 index dd6ff4d80..000000000 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsURLAction.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2013 Frank Becker 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: - * Frank Becker - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.internal.tasks.ui.actions; - -import org.eclipse.mylyn.commons.ui.ClipboardCopier; -import org.eclipse.mylyn.commons.ui.CommonImages; -import org.eclipse.mylyn.tasks.core.ITaskComment; -import org.eclipse.ui.actions.BaseSelectionListenerAction; - -public class CopyCommentDetailsURLAction extends BaseSelectionListenerAction { - - public CopyCommentDetailsURLAction() { - super(Messages.CopyCommentDetailsURL_Copy_Comment_URL); - setToolTipText(Messages.CopyCommentDetailsURL_Copy_Comment_URL_Tooltip); - setImageDescriptor(CommonImages.COPY); - } - - @Override - public void run() { - ClipboardCopier.getDefault().copy(getStructuredSelection(), new ClipboardCopier.TextProvider() { - public String getTextForElement(Object element) { - if (element instanceof ITaskComment) { - ITaskComment comment = (ITaskComment) element; - return comment.getUrl(); - } - return null; - } - }); - } - -} diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsUrlAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsUrlAction.java new file mode 100644 index 000000000..9a44d4e1e --- /dev/null +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/CopyCommentDetailsUrlAction.java @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2013 Frank Becker 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: + * Frank Becker - initial API and implementation + *******************************************************************************/ + +package org.eclipse.mylyn.internal.tasks.ui.actions; + +import org.eclipse.mylyn.commons.ui.ClipboardCopier; +import org.eclipse.mylyn.commons.ui.CommonImages; +import org.eclipse.mylyn.tasks.core.ITaskComment; +import org.eclipse.ui.actions.BaseSelectionListenerAction; + +public class CopyCommentDetailsUrlAction extends BaseSelectionListenerAction { + + public CopyCommentDetailsUrlAction() { + super(Messages.CopyCommentDetailsURL_Copy_Comment_URL); + setToolTipText(Messages.CopyCommentDetailsURL_Copy_Comment_URL_Tooltip); + setImageDescriptor(CommonImages.COPY); + } + + @Override + public void run() { + ClipboardCopier.getDefault().copy(getStructuredSelection(), new ClipboardCopier.TextProvider() { + public String getTextForElement(Object element) { + if (element instanceof ITaskComment) { + ITaskComment comment = (ITaskComment) element; + return comment.getUrl(); + } + return null; + } + }); + } + +} -- cgit v1.2.3