diff options
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn')
4 files changed, 25 insertions, 23 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java index 051655d81..dbe817a22 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java +++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java @@ -413,7 +413,7 @@ public class ExistingBugEditor extends AbstractBugEditor PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { WebBrowserDialog.openAcceptAgreement(null, - "Possible Bugzilla Failure", + "Possible Bugzilla Client Failure", "Bugzilla may not have posted your bug.\n" + e.getMessage(), form.getError()); BugzillaPlugin.log(e); diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/NewBugEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/NewBugEditor.java index d2c29e7d8..c06dd4736 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/NewBugEditor.java +++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/NewBugEditor.java @@ -245,13 +245,13 @@ public class NewBugEditor extends AbstractBugEditor { WebBrowserDialog .openAcceptAgreement( null, - "Possible Bugzilla Failure", + "Possible Bugzilla Client Failure", "Bugzilla may not have posted your bug.\n" + e.getMessage(), form.getError()); BugzillaPlugin.log(e); }catch (LoginException e) { + e.printStackTrace(); // if we had an error with logging in, display an error - MessageDialog - .openError( + MessageDialog.openError( null, "Posting Error", "Bugzilla could not post your bug since your login name or password is incorrect." diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractBugWizard.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractBugWizard.java index 7ccc49660..8ce6dab6d 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractBugWizard.java +++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractBugWizard.java @@ -229,6 +229,9 @@ public abstract class AbstractBugWizard extends Wizard implements INewWizard { // add the summary to the bug post form.add("short_desc", model.getSummary()); + + // dummy target milestone + form.add("target_milestone", "---"); // format the description of the bug so that it is roughly in 80 // character lines @@ -259,7 +262,7 @@ public abstract class AbstractBugWizard extends Wizard implements INewWizard { WebBrowserDialog .openAcceptAgreement( null, - "Possible Bugzilla Failure", + "Possible Bugzilla Client Failure", "Bugzilla may not have posted your bug.\n" + e.getMessage(), form.getError()); BugzillaPlugin.log(e); } catch (LoginException e) { diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/NewBugWizard.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/NewBugWizard.java index d90471032..f075bdd4b 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/NewBugWizard.java +++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/NewBugWizard.java @@ -94,26 +94,25 @@ public class NewBugWizard extends AbstractBugWizard { } try { - if (WizardProductPage.products != null && WizardProductPage.products.size() != 0 - && BugzillaPlugin.getDefault().getProductConfiguration() - .getProducts().length > 1) { + if (WizardProductPage.products != null && WizardProductPage.products.size() > 0) { +// && BugzillaPlugin.getDefault().getProductConfiguration() +// .getProducts().length > 1) { productPage = new WizardProductPage(workbenchInstance, this); addPage(productPage); - } else { - // There wasn't a list of products so there must only be 1 - if (!model.hasParsedAttributes()) { - if (model.isConnected()) { - BugzillaRepository.getInstance().getnewBugAttributes(model, true); - } else { - BugzillaRepository.getInstance().getProdConfigAttributes(model); - } - model.setParsedAttributesStatus(true); - } - - // add the attributes page to the wizard - attributePage = new WizardAttributesPage(workbenchInstance); - addPage(attributePage); - } + } +// else { +// // There wasn't a list of products so there must only be 1 +// if (!model.hasParsedAttributes()) { +// if (model.isConnected()) { +// BugzillaRepository.getInstance().getnewBugAttributes(model, true); +// } else { +// BugzillaRepository.getInstance().getProdConfigAttributes(model); +// } +// model.setParsedAttributesStatus(true); +// } +// attributePage = new WizardAttributesPage(workbenchInstance); +// addPage(attributePage); +// } } catch (NullPointerException e) { throw new CoreException( new Status(IStatus.ERROR, |