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 231089 Details for
Bug 408247
[dnd] Dropping method inside an enum causes exceptions
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.
Stripped down example code
example.java (text/plain), 1.72 KB, created by
Jörg Thönnes
on 2013-05-16 10:28:55 EDT
(
hide
)
Description:
Stripped down example code
Filename:
MIME Type:
Creator:
Jörg Thönnes
Created:
2013-05-16 10:28:55 EDT
Size:
1.72 KB
patch
obsolete
>public enum LogonStates > implements LogonState { > > NOT_LOGGED_ON( "Not logged on" ) { > > @Override > public void onLogoutEvent( final LogonContext context, final String message ) { > > context.setMessage( message ); > } > > @Override > public void onLogonEvent( final LogonContext context, final String message ) {} > }, > LOGGED_ON( "Logged on" ) { > > @Override > public void onLogoutEvent( final LogonContext context, final String message ) { > > context.setMessage( message ); > context.setState( NOT_LOGGED_ON ); > } > > @Override > public void onLogonEvent( final LogonContext context, final String message ) {} > }, > PENDING_LOGON( "Pending logon" ) { > > @Override > public void onLogoutEvent( final LogonContext context, final String message ) { > > context.setMessage( message ); > context.setState( NOT_LOGGED_ON ); > } > > @Override > public void onLogonEvent( final LogonContext context, final String message ) {} > }, > SUSPENDED( "Suspended" ) { > > @Override > public void onLogoutEvent( final LogonContext context, final String message ) { > > context.setMessage( message ); > } > > @Override > public void onLogonEvent( final LogonContext context, final String message ) {} > }; > > private final String name; > > > > LogonStates( final String name ) { > > this.name = name; > } > > > > @Override > public void onLogonEvent( LogonContext context, String message ) {} > > > > @Override > public void onLogoutEvent( LogonContext context, String message ) {} > > > > @Override > public String toString() { > > return this.name; > } > >} >
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 408247
: 231089 |
231090