Browse Source

REPORT-24174【新引擎】批量转换及检测

feature/big-screen
kerry 5 years ago
parent
commit
b69b0bcad8
  1. 2
      designer-base/src/main/java/com/fr/design/file/MutilTempalteTabPane.java
  2. 2
      designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java
  3. 5
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

2
designer-base/src/main/java/com/fr/design/file/MutilTempalteTabPane.java

@ -258,7 +258,7 @@ public class MutilTempalteTabPane extends JComponent {
private String tempalteShowName(JTemplate<?, ?> template) { private String tempalteShowName(JTemplate<?, ?> template) {
String name = template.getEditingFILE().getName(); String name = template.getTemplateName();
if (!template.isSaved() && !name.endsWith(" *")) { if (!template.isSaved() && !name.endsWith(" *")) {
name += " *"; name += " *";
} }

2
designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

@ -830,7 +830,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
} }
defaultTitleSB.append(username).append("@").append(envName).append("[").append(workspace.getDescription()).append("]"); defaultTitleSB.append(username).append("@").append(envName).append("[").append(workspace.getDescription()).append("]");
if (editingTemplate != null) { if (editingTemplate != null) {
String path = editingTemplate.getEditingFILE().getPath(); String path = editingTemplate.getPath();
if (!editingTemplate.getEditingFILE().exists()) { if (!editingTemplate.getEditingFILE().exists()) {
path = FILEFactory.MEM_PREFIX + path; path = FILEFactory.MEM_PREFIX + path;
} else if (path.startsWith(ProjectConstants.REPORTLETS_NAME)) { } else if (path.startsWith(ProjectConstants.REPORTLETS_NAME)) {

5
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -1232,4 +1232,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
} }
public abstract String route(); public abstract String route();
public String getTemplateName(){
return getEditingFILE().getName();
}
} }

Loading…
Cancel
Save