@ -519,7 +519,10 @@ public class EditToolBar extends BasicPane {
if ( javaScriptPane = = null | | ( ( CustomToolBarButton ) widget ) . getJSImpl ( ) = = null ) {
javaScriptPane = JavaScriptActionPane . createDefault ( ) ;
}
javaScriptPane . setResourceInfo ( new JavaScriptResourceInfo ( JavaScriptResourceInfo . Type . WIDGET , ( ( Button ) widget ) . getText ( ) ) ) ;
JavaScriptResourceInfo . PathNode pathNode = JavaScriptResourceInfo . PathNode . create ( JavaScriptResourceInfo . Type . WIDGET , ( ( Button ) widget ) . getText ( ) ) ;
JavaScriptResourceInfo javaScriptResourceInfo = new JavaScriptResourceInfo ( ) . addFirstPathNode ( pathNode ) ;
javaScriptPane . setResourceInfo ( javaScriptResourceInfo ) ;
javaScriptPane . setPreferredSize ( new Dimension ( 750 , 500 ) ) ;
BasicDialog dialog = javaScriptPane . showWindow ( SwingUtilities . getWindowAncestor ( ButtonPane . this ) ) ;
@ -541,6 +544,7 @@ public class EditToolBar extends BasicPane {
/ * *
* 更新
*
* @param widget 对应组件
* /
public void populate ( Widget widget ) {
@ -583,7 +587,8 @@ public class EditToolBar extends BasicPane {
this . image . setSelected ( export . isImageAvailable ( ) ) ;
if ( exportToolBarProviders ! = null ) {
for ( int i = 0 ; i < exportToolBarProviders . length ; i + + ) {
exportToolBarProviders [ i ] . populate ( ) ; ;
exportToolBarProviders [ i ] . populate ( ) ;
;
}
}
}
@ -694,7 +699,10 @@ public class EditToolBar extends BasicPane {
if ( customToolBarButton . getJSImpl ( ) = = null ) {
this . javaScriptPane = JavaScriptActionPane . createDefault ( ) ;
}
javaScriptPane . setResourceInfo ( new JavaScriptResourceInfo ( JavaScriptResourceInfo . Type . CUSTOM_BUTTON , ( ( Button ) widget ) . getText ( ) ) ) ;
JavaScriptResourceInfo . PathNode pathNode = JavaScriptResourceInfo . PathNode . create ( JavaScriptResourceInfo . Type . CUSTOM_BUTTON , ( ( Button ) widget ) . getText ( ) ) ;
JavaScriptResourceInfo javaScriptResourceInfo = new JavaScriptResourceInfo ( ) . addFirstPathNode ( pathNode ) ;
javaScriptPane . setResourceInfo ( javaScriptResourceInfo ) ;
customToolBarButton . setJSImpl ( this . javaScriptPane . updateBean ( ) ) ;
}