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

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

    XMLWordPrintable

Details

    Description

      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().

      Attachments

        Activity

          People

            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

            Dates

              Created:
              Updated:
              Resolved: