|
|
|
@ -48,8 +48,7 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
|
|
|
|
|
contentDBManiPane.add(createDBManipulationPane()); |
|
|
|
|
paneList.add(new Commit2DBJavaScriptPane(this, contentDBManiPane)); |
|
|
|
|
paneList.add(initEmaiPane()); |
|
|
|
|
boolean workbook = DesignerContext.getDesignerFrame().getSelectedJTemplate().isJWorkBook(); |
|
|
|
|
if (workbook) { |
|
|
|
|
if (isWorkBookValid()) { |
|
|
|
|
paneList.add(new ExportJavaScriptPane()); |
|
|
|
|
} |
|
|
|
|
paneList.add(new MobilePopupPane()); |
|
|
|
@ -66,6 +65,16 @@ public abstract class JavaScriptActionPane extends UIComboBoxPane<JavaScript> {
|
|
|
|
|
return paneList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 选中的JTemplate是否有效并且是否是工作簿 |
|
|
|
|
* |
|
|
|
|
* @return 选中的JTemplate有效并且是工作簿则返回true |
|
|
|
|
*/ |
|
|
|
|
private boolean isWorkBookValid() { |
|
|
|
|
return DesignerContext.getDesignerFrame().getSelectedJTemplate() != null |
|
|
|
|
&& DesignerContext.getDesignerFrame().getSelectedJTemplate().isJWorkBook(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected EmailPane initEmaiPane() { |
|
|
|
|
return new EmailPane(); |
|
|
|
|
} |
|
|
|
|