|
|
|
@ -102,6 +102,8 @@ import java.util.ArrayList;
|
|
|
|
|
import java.util.Iterator; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Set; |
|
|
|
|
import java.util.concurrent.ExecutorService; |
|
|
|
|
import java.util.concurrent.Executors; |
|
|
|
|
|
|
|
|
|
public class DesignerFrame extends JFrame implements JTemplateActionListener, TargetModifiedListener { |
|
|
|
|
|
|
|
|
@ -241,6 +243,9 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
|
|
|
|
|
private ProgressDialog progressDialog; |
|
|
|
|
|
|
|
|
|
private ExecutorService fixedThreadPool = Executors.newFixedThreadPool(1); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public DesignerFrame(ToolBarMenuDock ad) { |
|
|
|
|
|
|
|
|
|
setName(DESIGNER_FRAME_NAME); |
|
|
|
@ -815,19 +820,22 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
* 报表运行环境改变时,需要刷新某些面板 |
|
|
|
|
*/ |
|
|
|
|
public void refreshEnv() { |
|
|
|
|
|
|
|
|
|
this.setTitle(); |
|
|
|
|
fixedThreadPool.execute(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
DesignerFrameFileDealerPane.getInstance().refreshDockingView(); |
|
|
|
|
TableDataTreePane.getInstance(DesignModelAdapter.getCurrentModelAdapter()); |
|
|
|
|
TemplateTreePane.getInstance().refreshDockingView(); |
|
|
|
|
DesignTableDataManager.clearGlobalDs(); |
|
|
|
|
EastRegionContainerPane.getInstance().refreshDownPane(); |
|
|
|
|
|
|
|
|
|
JTemplate template = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (template != null) { |
|
|
|
|
template.refreshToolArea(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 返回选中的模板. |
|
|
|
|