Browse Source

控件剪切、复制按钮fix

release/11.0
renekton 4 months ago
parent
commit
884b5ed842
  1. 7
      designer-base/src/main/java/com/fr/design/gui/itree/filetree/TemplateFileTree.java
  2. 2
      designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java

7
designer-base/src/main/java/com/fr/design/gui/itree/filetree/TemplateFileTree.java

@ -157,11 +157,8 @@ public class TemplateFileTree extends EnvFileTree {
}
Set<App> apps = ExtraDesignClassManager.getInstance().getArray(App.MARK_STRING);
for (App temp : apps) {
for (String extension : temp.defaultExtensions()) {
FileExtension fileExtension = FileExtension.parse(extension);
if (filter == null || !filter.getNotSupportedTypes().contains(fileExtension)) {
supportTypes.add(fileExtension);
}
for (String extendsion : temp.defaultExtensions()) {
supportTypes.add(FileExtension.parse(extendsion));
}
}
return supportTypes;

2
designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java

@ -966,7 +966,7 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
centerPane.add(cardPane, BorderLayout.CENTER);
cardPane.setLayout(new CardLayout());
templateReportletTree = new TemplateFileTree();
IOFileNodeFilter filter = new IOFileNodeFilter(new String[]{".cpt"}, Arrays.asList(FileExtension.VIS));
IOFileNodeFilter filter = new IOFileNodeFilter(new String[]{".cpt"});
templateReportletTree.setFileNodeFilter(filter);
cardPane.add(t_panel = new JScrollPane(templateReportletTree), "TEMPLATE");

Loading…
Cancel
Save