@Override
 protected String getDefaultFileName(String preset) {
   String defaultName = "flow_name.flow";
   if (model.getTemplate().getLocation().endsWith(".flow")) {
     defaultName =
         (preset == null)
             ? "flow_name.flow"
             : CommonUtils.getFileNameNoExtension(preset) + ".flow";
   } else if (model.getTemplate().getLocation().endsWith(".job")) {
     defaultName =
         (preset == null) ? "job_name.job" : CommonUtils.getFileNameNoExtension(preset) + ".job";
   }
   return defaultName; //$NON-NLS-1$
 }
示例#2
0
 public String getFileNameNoExtension() {
   return CommonUtils.getFileNameNoExtension(fileName);
 }