Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 81215 Details for
Bug 169426
create a new bug from a comment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Revision
clipboard.txt (text/plain), 21.79 KB, created by
Robert Elves
on 2007-10-25 19:45:26 EDT
(
hide
)
Description:
Revision
Filename:
MIME Type:
Creator:
Robert Elves
Created:
2007-10-25 19:45:26 EDT
Size:
21.79 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java,v >retrieving revision 1.35 >diff -u -r1.35 TaskEditorActionContributor.java >--- src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java 9 Oct 2007 19:58:14 -0000 1.35 >+++ src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorActionContributor.java 25 Oct 2007 23:41:08 -0000 >@@ -32,6 +32,7 @@ > import org.eclipse.mylyn.internal.tasks.ui.actions.AbstractTaskEditorAction; > import org.eclipse.mylyn.internal.tasks.ui.actions.AttachFileAction; > import org.eclipse.mylyn.internal.tasks.ui.actions.CopyTaskDetailsAction; >+import org.eclipse.mylyn.internal.tasks.ui.actions.NewBugFromCommentAction; > import org.eclipse.mylyn.internal.tasks.ui.actions.OpenWithBrowserAction; > import org.eclipse.mylyn.internal.tasks.ui.actions.ShowInTaskListAction; > import org.eclipse.mylyn.internal.tasks.ui.actions.SynchronizeEditorAction; >@@ -41,6 +42,7 @@ > import org.eclipse.mylyn.tasks.core.AbstractTask; > import org.eclipse.mylyn.tasks.core.AbstractTaskCategory; > import org.eclipse.mylyn.tasks.core.AbstractTaskContainer; >+import org.eclipse.mylyn.tasks.core.TaskComment; > import org.eclipse.mylyn.tasks.ui.TasksUiPlugin; > import org.eclipse.mylyn.tasks.ui.editors.AbstractRepositoryTaskEditor; > import org.eclipse.mylyn.tasks.ui.editors.NewTaskEditorInput; >@@ -96,6 +98,8 @@ > > private GlobalAction selectAllAction; > >+ private NewBugFromCommentAction newBugFromCommentAction = new NewBugFromCommentAction(); >+ > public TaskEditorActionContributor() { > > cutAction = new GlobalAction(ActionFactory.CUT.getId()); >@@ -162,8 +166,9 @@ > } > > public void contextMenuAboutToShow(IMenuManager manager, boolean addClipboard) { >- if (editor != null) >+ if (editor != null) { > updateSelectableActions(editor.getSelection()); >+ } > if (addClipboard) { > addClipboardActions(manager); > } >@@ -213,6 +218,24 @@ > manager.add(openWithBrowserAction); > manager.add(attachFileAction); > manager.add(synchronizeEditorAction); >+ if (this.getEditor().getActivePageInstance() instanceof AbstractRepositoryTaskEditor) { >+ if (this.getEditor().getSelection() instanceof RepositoryTaskSelection) { >+ RepositoryTaskSelection repositoryTaskSelection = (RepositoryTaskSelection) this.getEditor() >+ .getSelection(); >+ TaskComment comment = repositoryTaskSelection.getComment(); >+ if (comment != null) { >+ newBugFromCommentAction.setTaskComment(comment); >+ AbstractRepositoryTaskEditor editor = (AbstractRepositoryTaskEditor) this.getEditor() >+ .getActivePageInstance(); >+ IEditorInput input = editor.getEditorInput(); >+ if (input instanceof RepositoryTaskEditorInput) { >+ RepositoryTaskEditorInput repositoryInput = (RepositoryTaskEditorInput) input; >+ newBugFromCommentAction.setTaskData(repositoryInput.getTaskData()); >+ } >+ manager.add(newBugFromCommentAction); >+ } >+ } >+ } > > if (task.isActive()) { > manager.add(new TaskDeactivateAction() { >Index: src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java,v >retrieving revision 1.240 >diff -u -r1.240 AbstractRepositoryTaskEditor.java >--- src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java 23 Oct 2007 21:43:32 -0000 1.240 >+++ src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java 25 Oct 2007 23:41:08 -0000 >@@ -127,6 +127,8 @@ > import org.eclipse.swt.dnd.FileTransfer; > import org.eclipse.swt.dnd.TextTransfer; > import org.eclipse.swt.dnd.Transfer; >+import org.eclipse.swt.events.FocusEvent; >+import org.eclipse.swt.events.FocusListener; > import org.eclipse.swt.events.ModifyEvent; > import org.eclipse.swt.events.ModifyListener; > import org.eclipse.swt.events.SelectionAdapter; >@@ -303,6 +305,8 @@ > > private boolean ignoreLocationEvents = false; > >+ private TaskComment selectedComment = null; >+ > /** > * @author Raphael Ackermann (bug 195514) > */ >@@ -347,7 +351,7 @@ > > public ISelection getSelection() { > return new RepositoryTaskSelection(taskData.getId(), taskData.getRepositoryUrl(), >- taskData.getRepositoryKind(), "", true, taskData.getSummary()); >+ taskData.getRepositoryKind(), "", selectedComment, taskData.getSummary()); > } > > public void removeSelectionChangedListener(ISelectionChangedListener listener) { >@@ -2126,6 +2130,20 @@ > > TextViewer viewer = addTextViewer(repository, ecComposite, taskComment.getText().trim(), SWT.MULTI > | SWT.WRAP); >+ >+ viewer.getTextWidget().addFocusListener(new FocusListener() { >+ >+ public void focusGained(FocusEvent e) { >+ selectedComment = taskComment; >+ >+ } >+ >+ public void focusLost(FocusEvent e) { >+ selectedComment = null; >+ >+ } >+ }); >+ > // viewer.getControl().setBackground(new > // Color(expandableComposite.getDisplay(), 123, 34, 155)); > StyledText styledText = viewer.getTextWidget(); >Index: .refactorings/2007/10/43/refactorings.index >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/.refactorings/2007/10/43/refactorings.index,v >retrieving revision 1.1 >diff -u -r1.1 refactorings.index >--- .refactorings/2007/10/43/refactorings.index 23 Oct 2007 21:43:32 -0000 1.1 >+++ .refactorings/2007/10/43/refactorings.index 25 Oct 2007 23:41:08 -0000 >@@ -3,3 +3,4 @@ > 1193174879973 Extract constant 'ID_CONTEXT_TASK_EDITOR' > 1193174898497 Rename field 'ID_CONTEXT_TEXT_EDITOR' > 1193174960220 Rename field 'ID_CONTEXT_TASK_EDITOR' >+1193348675861 Delete element >Index: .refactorings/2007/10/43/refactorings.history >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/.refactorings/2007/10/43/refactorings.history,v >retrieving revision 1.1 >diff -u -r1.1 refactorings.history >--- .refactorings/2007/10/43/refactorings.history 23 Oct 2007 21:43:32 -0000 1.1 >+++ .refactorings/2007/10/43/refactorings.history 25 Oct 2007 23:41:08 -0000 >@@ -1,3 +1,3 @@ > <?xml version="1.0" encoding="UTF-8"?> >-<session version="1.0">
<refactoring comment="Convert anonymous class 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.getHyperlinkPresenter().new DefaultHyperlinkPresenter() {...}' in 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.getHyperlinkPresenter()' to nested class
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Original element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.getHyperlinkPresenter().new DefaultHyperlinkPresenter() {...}'
- Class name: 'TaskTextViewerHyperlinkPresenter'
- Declared visibility: 'private'
- Declare class 'final'" description="Convert anonymous class to nested" final="true" flags="786434" id="org.eclipse.jdt.ui.convert.anonymous" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java" name="TaskTextViewerHyperlinkPresenter" selection="4293 0" stamp="1193174682888" static="false" version="1.0" visibility="2"/>
<refactoring comment="Extract constant 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TEXT_EDITOR' from expression '"org.eclipse.ui.DefaultTextEditor"'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Constant name: 'ID_CONTEXT_TEXT_EDITOR'
- Constant expression: '"org.eclipse.ui.DefaultTextEditor"'
- Declared visibility: 'private'
- Replace occurrences of expression with constant" description="Extract constant 'ID_CONTEXT_TEXT_EDITOR'" flags="786432" id="org.eclipse.jdt.ui.extract.constant" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java" name="ID_CONTEXT_TEXT_EDITOR" qualify="false" replace="true" selection="3680 34" stamp="1193174853749" version="1.0" visibility="2"/>
<refactoring comment="Extract constant 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TASK_EDITOR' from expression '"org.eclipse.mylyn.tasks.ui.TaskEditor"'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Constant name: 'ID_CONTEXT_TASK_EDITOR'
- Constant expression: '"org.eclipse.mylyn.tasks.ui.TaskEditor"'
- Declared visibility: 'private'
- Replace occurrences of expression with constant" description="Extract constant 'ID_CONTEXT_TASK_EDITOR'" flags="786432" id="org.eclipse.jdt.ui.extract.constant" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java" name="ID_CONTEXT_TASK_EDITOR" qualify="false" replace="true" selection="3822 39" stamp="1193174879973" version="1.0" visibility="2"/>
<refactoring comment="Rename field 'ID_CONTEXT_TEXT_EDITOR' in 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration' to 'ID_CONTEXT_EDITOR_TEXT'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Original element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TEXT_EDITOR'
- Renamed element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_EDITOR_TEXT'
- Update references to refactored element
- Update textual occurrences in comments and strings
- Rename getter method for field
- Rename setter method for field" delegate="false" deprecate="false" description="Rename field 'ID_CONTEXT_TEXT_EDITOR'" flags="589826" getter="true" id="org.eclipse.jdt.ui.rename.field" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java[TaskTextViewerConfiguration^ID_CONTEXT_TEXT_EDITOR" name="ID_CONTEXT_EDITOR_TEXT" references="true" setter="true" stamp="1193174898497" textual="false" version="1.0"/>
<refactoring comment="Rename field 'ID_CONTEXT_TASK_EDITOR' in 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration' to 'ID_CONTEXT_EDITOR_TASK'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Original element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TASK_EDITOR'
- Renamed element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_EDITOR_TASK'
- Update references to refactored element
- Update textual occurrences in comments and strings
- Rename getter method for field
- Rename setter method for field" delegate="false" deprecate="false" description="Rename field 'ID_CONTEXT_TASK_EDITOR'" flags="589826" getter="true" id="org.eclipse.jdt.ui.rename.field" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java[TaskTextViewerConfiguration^ID_CONTEXT_TASK_EDITOR" name="ID_CONTEXT_EDITOR_TASK" references="true" setter="true" stamp="1193174960220" textual="false" version="1.0"/> >+<session version="1.0">
<refactoring comment="Convert anonymous class 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.getHyperlinkPresenter().new DefaultHyperlinkPresenter() {...}' in 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.getHyperlinkPresenter()' to nested class
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Original element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.getHyperlinkPresenter().new DefaultHyperlinkPresenter() {...}'
- Class name: 'TaskTextViewerHyperlinkPresenter'
- Declared visibility: 'private'
- Declare class 'final'" description="Convert anonymous class to nested" final="true" flags="786434" id="org.eclipse.jdt.ui.convert.anonymous" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java" name="TaskTextViewerHyperlinkPresenter" selection="4293 0" stamp="1193174682888" static="false" version="1.0" visibility="2"/>
<refactoring comment="Extract constant 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TEXT_EDITOR' from expression '"org.eclipse.ui.DefaultTextEditor"'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Constant name: 'ID_CONTEXT_TEXT_EDITOR'
- Constant expression: '"org.eclipse.ui.DefaultTextEditor"'
- Declared visibility: 'private'
- Replace occurrences of expression with constant" description="Extract constant 'ID_CONTEXT_TEXT_EDITOR'" flags="786432" id="org.eclipse.jdt.ui.extract.constant" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java" name="ID_CONTEXT_TEXT_EDITOR" qualify="false" replace="true" selection="3680 34" stamp="1193174853749" version="1.0" visibility="2"/>
<refactoring comment="Extract constant 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TASK_EDITOR' from expression '"org.eclipse.mylyn.tasks.ui.TaskEditor"'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Constant name: 'ID_CONTEXT_TASK_EDITOR'
- Constant expression: '"org.eclipse.mylyn.tasks.ui.TaskEditor"'
- Declared visibility: 'private'
- Replace occurrences of expression with constant" description="Extract constant 'ID_CONTEXT_TASK_EDITOR'" flags="786432" id="org.eclipse.jdt.ui.extract.constant" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java" name="ID_CONTEXT_TASK_EDITOR" qualify="false" replace="true" selection="3822 39" stamp="1193174879973" version="1.0" visibility="2"/>
<refactoring comment="Rename field 'ID_CONTEXT_TEXT_EDITOR' in 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration' to 'ID_CONTEXT_EDITOR_TEXT'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Original element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TEXT_EDITOR'
- Renamed element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_EDITOR_TEXT'
- Update references to refactored element
- Update textual occurrences in comments and strings
- Rename getter method for field
- Rename setter method for field" delegate="false" deprecate="false" description="Rename field 'ID_CONTEXT_TEXT_EDITOR'" flags="589826" getter="true" id="org.eclipse.jdt.ui.rename.field" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java[TaskTextViewerConfiguration^ID_CONTEXT_TEXT_EDITOR" name="ID_CONTEXT_EDITOR_TEXT" references="true" setter="true" stamp="1193174898497" textual="false" version="1.0"/>
<refactoring comment="Rename field 'ID_CONTEXT_TASK_EDITOR' in 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration' to 'ID_CONTEXT_EDITOR_TASK'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Original element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_TASK_EDITOR'
- Renamed element: 'org.eclipse.mylyn.tasks.ui.editors.TaskTextViewerConfiguration.ID_CONTEXT_EDITOR_TASK'
- Update references to refactored element
- Update textual occurrences in comments and strings
- Rename getter method for field
- Rename setter method for field" delegate="false" deprecate="false" description="Rename field 'ID_CONTEXT_TASK_EDITOR'" flags="589826" getter="true" id="org.eclipse.jdt.ui.rename.field" input="/src<org.eclipse.mylyn.tasks.ui.editors{TaskTextViewerConfiguration.java[TaskTextViewerConfiguration^ID_CONTEXT_TASK_EDITOR" name="ID_CONTEXT_EDITOR_TASK" references="true" setter="true" stamp="1193174960220" textual="false" version="1.0"/>
<refactoring accessors="true" comment="Delete 1 element(s) from project 'org.eclipse.mylyn.tasks.ui'
- Original project: 'org.eclipse.mylyn.tasks.ui'
- Original element: 'AbstractRepositoryTaskEditor.java.rej'" description="Delete element" element1="src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java.rej" elements="0" flags="589830" id="org.eclipse.jdt.ui.delete" resources="1" stamp="1193348675861" subPackages="false" version="1.0"/> > </session> >\ No newline at end of file >Index: src/org/eclipse/mylyn/internal/tasks/ui/actions/NewBugFromCommentAction.java >=================================================================== >RCS file: src/org/eclipse/mylyn/internal/tasks/ui/actions/NewBugFromCommentAction.java >diff -N src/org/eclipse/mylyn/internal/tasks/ui/actions/NewBugFromCommentAction.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/internal/tasks/ui/actions/NewBugFromCommentAction.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,110 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers 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 >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.internal.tasks.ui.actions; >+ >+import org.eclipse.jface.action.Action; >+import org.eclipse.jface.action.IAction; >+import org.eclipse.jface.dialogs.MessageDialog; >+import org.eclipse.jface.wizard.WizardDialog; >+import org.eclipse.mylyn.internal.tasks.ui.ITasksUiConstants; >+import org.eclipse.mylyn.internal.tasks.ui.TasksUiImages; >+import org.eclipse.mylyn.internal.tasks.ui.wizards.NewTaskWizard; >+import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector; >+import org.eclipse.mylyn.tasks.core.RepositoryTaskData; >+import org.eclipse.mylyn.tasks.core.TaskComment; >+import org.eclipse.mylyn.tasks.core.TaskRepositoryManager; >+import org.eclipse.mylyn.tasks.ui.TasksUiPlugin; >+import org.eclipse.mylyn.tasks.ui.editors.AbstractRepositoryTaskEditor; >+import org.eclipse.mylyn.tasks.ui.editors.TaskEditor; >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.dnd.Clipboard; >+import org.eclipse.swt.dnd.TextTransfer; >+import org.eclipse.swt.dnd.Transfer; >+import org.eclipse.swt.widgets.Shell; >+import org.eclipse.ui.IWorkbenchPage; >+import org.eclipse.ui.PlatformUI; >+ >+/** >+ * @author Frank Becker >+ */ >+public class NewBugFromCommentAction extends Action { >+ >+ private static final String LABEL = "New Task from Comment"; >+ >+ public static final String ID = "org.eclipse.mylyn.tasklist.actions.CreateNewFromComment"; >+ >+ private TaskComment taskComment; >+ >+ protected RepositoryTaskData taskData; >+ >+ public NewBugFromCommentAction() { >+ super(LABEL); >+ setId(ID); >+ setImageDescriptor(TasksUiImages.TASK_NEW); >+ >+ setAccelerator(SWT.MOD1 + SWT.MOD2 + 'n'); >+ } >+ >+ public void run(IAction action) { >+ run(); >+ } >+ >+ @Override >+ public void run() { >+ NewTaskWizard wizard = new NewTaskWizard(); >+ Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); >+ if (shell != null && !shell.isDisposed()) { >+ WizardDialog dialog = new WizardDialog(shell, wizard); >+ dialog.setBlockOnOpen(true); >+ if (dialog.open() == WizardDialog.CANCEL) { >+ return; >+ } >+ >+ IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); >+ AbstractRepositoryTaskEditor editor = null; >+ String summary = ""; >+ >+ AbstractRepositoryConnector connector = null; >+ TaskRepositoryManager repositoryManager = TasksUiPlugin.getRepositoryManager(); >+ connector = repositoryManager.getRepositoryConnector(taskData.getRepositoryKind()); >+ >+ String description = "From task: " + connector.getTaskUrl(taskData.getRepositoryUrl(), taskData.getId()) >+ + " comment#" + taskComment.getNumber() + "\n\noriginal-comment:\n" + taskComment.getText(); >+ >+ try { >+ TaskEditor taskEditor = (TaskEditor) page.getActiveEditor(); >+ editor = (AbstractRepositoryTaskEditor) taskEditor.getActivePageInstance(); >+ } catch (ClassCastException err) { >+ Clipboard clipboard = new Clipboard(page.getWorkbenchWindow().getShell().getDisplay()); >+ clipboard.setContents(new Object[] { summary + "\n" + description }, >+ new Transfer[] { TextTransfer.getInstance() }); >+ >+ MessageDialog.openInformation( >+ page.getWorkbenchWindow().getShell(), >+ ITasksUiConstants.TITLE_DIALOG, >+ "This connector does not provide a rich task editor for creating tasks.\n\n" >+ + "The error contents have been placed in the clipboard so that you can paste them into the entry form."); >+ return; >+ } >+ >+ editor.setSummaryText(summary); >+ editor.setDescriptionText(description); >+ >+ } >+ } >+ >+ public void setTaskComment(TaskComment taskComment) { >+ this.taskComment = taskComment; >+ } >+ >+ public void setTaskData(RepositoryTaskData taskData) { >+ this.taskData = taskData; >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 169426
:
79776
|
79777
|
79787
|
79788
|
80500
|
80501
| 81215 |
81216
|
82013
|
82014
|
83199
|
83200
|
83394
|
83395