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 177707 Details for
Bug 321295
[Link] Hyperlink produces script error if anchor tag (<a>) is missing
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.
Snippet to reproduce
clipboard.txt (text/plain), 1.34 KB, created by
Ralf Sternberg
on 2010-08-30 05:11:53 EDT
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Ralf Sternberg
Created:
2010-08-30 05:11:53 EDT
Size:
1.34 KB
patch
obsolete
>package org.eclipse.rap.snippets; > >import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.events.SelectionAdapter; >import org.eclipse.swt.events.SelectionEvent; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Link; >import org.eclipse.swt.widgets.Shell; > > >public class Bug321295Snippet implements IEntryPoint { > > public int createUI() { > Display display = new Display(); > Shell shell = new Shell( display ); > shell.setText( "Bug 321295" ); > shell.setLayout( new GridLayout() ); > > final Link link = new Link( shell, SWT.PUSH ); > link.setText( "<a>click here</a>" ); > link.addSelectionListener( new SelectionAdapter() { > > public void widgetSelected( SelectionEvent e ) { > link.setText( "text only" ); > } > } ); > > Button button = new Button( shell, SWT.PUSH ); > button.setText( "restore" ); > button.addSelectionListener( new SelectionAdapter() { > > public void widgetSelected( SelectionEvent e ) { > link.setText( "<a>click here</a>" ); > } > } ); > > shell.setLocation( 20, 20 ); > shell.setSize( 400, 300 ); > shell.open(); > while( !shell.isDisposed() ) { > if( !display.readAndDispatch() ) { > display.sleep(); > } > } > return 0; > } >}
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 Raw
Actions:
View
Attachments on
bug 321295
: 177707 |
177728
|
177746