Author: yradtsevich
Date: 2012-10-18 12:08:53 -0400 (Thu, 18 Oct 2012)
New Revision: 44581
Modified:
branches/jbosstools-4.0.0.Beta1/vpe/plugins/org.jboss.tools.vpe.browsersim/src/org/jboss/tools/vpe/browsersim/ui/CocoaUIEnhancer.java
Log:
https://issues.jboss.org/browse/JBIDE-12829 : BrowserSim disappearing (see video)
Modified:
branches/jbosstools-4.0.0.Beta1/vpe/plugins/org.jboss.tools.vpe.browsersim/src/org/jboss/tools/vpe/browsersim/ui/CocoaUIEnhancer.java
===================================================================
---
branches/jbosstools-4.0.0.Beta1/vpe/plugins/org.jboss.tools.vpe.browsersim/src/org/jboss/tools/vpe/browsersim/ui/CocoaUIEnhancer.java 2012-10-18
14:46:13 UTC (rev 44580)
+++
branches/jbosstools-4.0.0.Beta1/vpe/plugins/org.jboss.tools.vpe.browsersim/src/org/jboss/tools/vpe/browsersim/ui/CocoaUIEnhancer.java 2012-10-18
16:08:53 UTC (rev 44581)
@@ -89,8 +89,14 @@
// Connect the given IAction objects to the actionProce method.
//
Object target = new Object() {
- @SuppressWarnings( "unused" )
- int actionProc( int id, int sel, int arg0 ) {
+ /** 32-bit version of the callback*/
+ @SuppressWarnings( "unused" )
+ int actionProc(int id, int sel, int arg0) {
+ return (int) actionProc((long) id, (long) sel, (long) arg0);
+ }
+
+ /** 64-bit version of the callback*/
+ long actionProc(long id, long sel, long arg0) {
if ( sel == sel_aboutMenuItemSelected_ ) {
aboutAction.run();
} else if ( sel == sel_preferencesMenuItemSelected_ ) {