|
|
|
@ -11,6 +11,7 @@ import com.fr.design.utils.DesignUtils;
|
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.plugin.cafe_expand.function.DoExpandFile; |
|
|
|
|
import com.fr.plugin.cafe_expand.function.UnitTools; |
|
|
|
|
import com.fr.record.analyzer.EnableMetrics; |
|
|
|
@ -51,7 +52,7 @@ public class JumpToAnalysis extends AbstractDsinFrameUpButtonProvider {
|
|
|
|
|
|
|
|
|
|
if( template instanceof JWorkBook){ |
|
|
|
|
TemplateElementCase wb=((JWorkBook) template).getEditingElementCase(); |
|
|
|
|
int sheetNum=template.getEditingReportIndex(); |
|
|
|
|
int sheetNum=template.getEditingReportIndex()+1; |
|
|
|
|
position="sheet:"+sheetNum; |
|
|
|
|
String sheetKind=wb.getClass().toString(); |
|
|
|
|
|
|
|
|
@ -64,8 +65,6 @@ public class JumpToAnalysis extends AbstractDsinFrameUpButtonProvider {
|
|
|
|
|
else if(template instanceof JForm) |
|
|
|
|
position="frm:"+template.getSelectElementCase().getWidgetName(); |
|
|
|
|
|
|
|
|
|
//visitTc(filePath,position);
|
|
|
|
|
|
|
|
|
|
JDialog fr = new JDialog(); |
|
|
|
|
fr.setSize(400, 250); |
|
|
|
|
GUICoreUtils.centerWindow(fr); |
|
|
|
@ -146,21 +145,25 @@ public class JumpToAnalysis extends AbstractDsinFrameUpButtonProvider {
|
|
|
|
|
if(StringUtils.isEmpty(row_num.getText())) |
|
|
|
|
row=""; |
|
|
|
|
|
|
|
|
|
if(!StringUtils.isEmpty(row) || !StringUtils.isEmpty(col)) { |
|
|
|
|
arr[2] = col; |
|
|
|
|
arr[3] = row; |
|
|
|
|
|
|
|
|
|
String result = d.run(arr).toString(); |
|
|
|
|
try { |
|
|
|
|
DesignerFrameFileDealerPane.getInstance().getSelectedOperation().refresh(); |
|
|
|
|
DesignerFrameFileDealerPane.getInstance().stateChange(); |
|
|
|
|
lable_result.setText(InterProviderFactory.getProvider().getLocText("file_after_change") + result); |
|
|
|
|
} catch (Exception e1) { |
|
|
|
|
lable_result.setText(InterProviderFactory.getProvider().getLocText("error_info") + e1.getMessage()); |
|
|
|
|
} |
|
|
|
|
//选了扩展多少行,但是没有没有选从哪一行开始扩展
|
|
|
|
|
if(StringUtils.isEmpty(row_position.getText()) && !StringUtils.isEmpty(row_num.getText())) |
|
|
|
|
lable_result.setText(InterProviderFactory.getProvider().getLocText("row_not_select")); |
|
|
|
|
else { |
|
|
|
|
if (!StringUtils.isEmpty(row) || !StringUtils.isEmpty(col)) { |
|
|
|
|
arr[2] = col; |
|
|
|
|
arr[3] = row; |
|
|
|
|
|
|
|
|
|
String result = d.run(arr).toString(); |
|
|
|
|
try { |
|
|
|
|
DesignerFrameFileDealerPane.getInstance().getSelectedOperation().refresh(); |
|
|
|
|
DesignerFrameFileDealerPane.getInstance().stateChange(); |
|
|
|
|
lable_result.setText(InterProviderFactory.getProvider().getLocText("file_after_change") + result); |
|
|
|
|
} catch (Exception e1) { |
|
|
|
|
lable_result.setText(InterProviderFactory.getProvider().getLocText("error_info") + e1.getMessage()); |
|
|
|
|
} |
|
|
|
|
} else |
|
|
|
|
lable_result.setText(InterProviderFactory.getProvider().getLocText("attention_info")); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
lable_result.setText(InterProviderFactory.getProvider().getLocText("attention_info")); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
Box vBox = Box.createVerticalBox(); |
|
|
|
|