diff options
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaAttachmentWizard.java')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaAttachmentWizard.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaAttachmentWizard.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaAttachmentWizard.java index 98e753261..3d2b5b2de 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaAttachmentWizard.java +++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaAttachmentWizard.java @@ -27,6 +27,9 @@ import org.eclipse.mylyn.tasks.ui.editors.AttributeEditorFactory; import org.eclipse.mylyn.tasks.ui.editors.TaskEditor; import org.eclipse.swt.widgets.Shell; +/** + * @author Frank Becker + */ public class BugzillaAttachmentWizard extends Wizard { private final AttributeEditorFactory factory; @@ -43,14 +46,17 @@ public class BugzillaAttachmentWizard extends Wizard { private final ITaskAttachment attachment; + private final String repositoryLabel; + public BugzillaAttachmentWizard(Shell parentShell, AttributeEditorFactory factory, - TaskAttribute attachmentAttribute, TaskEditor taskEditor, ITaskAttachment attachment) { + TaskAttribute attachmentAttribute, TaskEditor taskEditor, ITaskAttachment attachment, String repositoryLabel) { super(); this.factory = factory; this.attachmentAttribute = attachmentAttribute; this.parentShell = parentShell; this.taskEditor = taskEditor; this.attachment = attachment; + this.repositoryLabel = repositoryLabel; setNeedsProgressMonitor(true); setWindowTitle(Messages.BugzillaAttachmentWizard_Attachment_Details_Dialog_Title); } @@ -127,8 +133,8 @@ public class BugzillaAttachmentWizard extends Wizard { @Override public void addPages() { - attachmentWizardPage = new BugzillaAttachmentWizardPage(parentShell, factory, attachmentAttribute, - attachment.getTask().getTaskId()); + attachmentWizardPage = new BugzillaAttachmentWizardPage(parentShell, factory, attachment.getTask().getTaskId(), + attachmentAttribute, repositoryLabel); addPage(attachmentWizardPage); } |