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 103642 Details for
Bug 235693
Add link on upload wizard to UDC FAQ
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]
Patch to add hyperlinks to UDC/FAQ pages
clipboard.txt (text/plain), 3.45 KB, created by
Wayne Beaton
on 2008-06-04 16:31:32 EDT
(
hide
)
Description:
Patch to add hyperlinks to UDC/FAQ pages
Filename:
MIME Type:
Creator:
Wayne Beaton
Created:
2008-06-04 16:31:32 EDT
Size:
3.45 KB
patch
obsolete
>Index: src/org/eclipse/epp/usagedata/internal/ui/wizards/SelectActionWizardPage.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.epp/plugins/org.eclipse.epp.usagedata.ui/src/org/eclipse/epp/usagedata/internal/ui/wizards/SelectActionWizardPage.java,v >retrieving revision 1.2 >diff -u -r1.2 SelectActionWizardPage.java >--- src/org/eclipse/epp/usagedata/internal/ui/wizards/SelectActionWizardPage.java 30 Jan 2008 03:41:11 -0000 1.2 >+++ src/org/eclipse/epp/usagedata/internal/ui/wizards/SelectActionWizardPage.java 4 Jun 2008 20:29:39 -0000 >@@ -10,6 +10,10 @@ > *******************************************************************************/ > package org.eclipse.epp.usagedata.internal.ui.wizards; > >+import java.net.URL; >+ >+import org.eclipse.core.runtime.Status; >+import org.eclipse.epp.usagedata.internal.ui.Activator; > import org.eclipse.epp.usagedata.internal.ui.uploaders.AskUserUploader; > import org.eclipse.jface.dialogs.IDialogPage; > import org.eclipse.jface.wizard.WizardPage; >@@ -21,12 +25,17 @@ > import org.eclipse.swt.widgets.Button; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.swt.widgets.Label; >+import org.eclipse.ui.PlatformUI; > import org.eclipse.ui.forms.events.HyperlinkAdapter; > import org.eclipse.ui.forms.events.HyperlinkEvent; > import org.eclipse.ui.forms.widgets.FormText; > > public class SelectActionWizardPage extends WizardPage { > >+ // TODO Replace with proper values >+ private static final String UDC_URL = "http://www.eclipse.org/epp"; >+ private static final String FAQ_URL = "http://www.eclipse.org/epp/usagedata"; >+ > private static final int WIDTH_HINT = 500; > > private final AskUserUploader uploader; >@@ -49,11 +58,17 @@ > Composite composite = new Composite(parent, SWT.NONE); > composite.setLayout(new GridLayout()); > >- FormText greeting = createFormText(composite, "<form><p>The Eclipse Usage Data Collector (UDC) has been collecting data on how you have been using the workbench. It would now like to upload the data to a server at the Eclipse Foundation.</p><p>You can preview the data before it is uploaded on the <a href=\"preview\">Preview page</a>.</p></form>"); >+ FormText greeting = createFormText(composite, "<form><p>The Eclipse <a href=\"udc\">Usage Data Collector</a> (UDC) has been collecting data on how you have been using the workbench. It would now like to upload the data to a server at the Eclipse Foundation.</p><p>You can preview the data before it is uploaded on the <a href=\"preview\">Preview page</a>.</p><p>Questions about the UDC? Check out our <a href=\"faq\">Frequently Asked Questions</a>.</p></form>"); > greeting.addHyperlinkListener(new HyperlinkAdapter() { > @Override > public void linkActivated(HyperlinkEvent event) { >- ((AskUserUploaderWizard)getWizard()).showPreviewPage(); >+ if ("udc".equals(event.getHref())) { >+ browseTo(UDC_URL); >+ } else if ("preview".equals(event.getHref())) { >+ ((AskUserUploaderWizard)getWizard()).showPreviewPage(); >+ } else if ("faq".equals(event.getHref())) { >+ browseTo(FAQ_URL); >+ } > } > }); > createSpacer(composite); >@@ -165,4 +180,12 @@ > > return false; > } >+ >+ private void browseTo(String url) { >+ try { >+ PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(new URL(url)); >+ } catch (Exception e) { >+ Activator.getDefault().getLog().log(new Status(Status.ERROR, Activator.PLUGIN_ID, "Error opening browser", e)); >+ } >+ } > } >\ No newline at end of file
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 235693
:
103641
| 103642