Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-49

Planner examples: import files should be filtered by files that can be imported

XMLWordPrintable

      Especially in the machine reassignement example this is annoying, because when you click the "import" button there, it shows "assignement." and "model." files, but only model files can be succesfully imported.

      The trick is to use a filefilter.

      Howto:

      Create the method SolutionBusiness.acceptImportFile()
      which delegates to AbstractSolutionImporter.acceptInputFile().

      Next, in SolverAndPersistenceFrame.ImportAction.actionPerformed(...) set a FileFilter and make it use SolutionBusiness.acceptImportFile().

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: