To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.
File Chooser inside plugin
Hi, I am new developing a plugin so need some help with using a file chooser inside a plugin, I like the file chooser to remember the last directory used like it happens in the import plugin. Any ideas how to achieve that?
Comments
-
Hi,ProM does that by remembering the folder where the last file was imported from. The location of this folder is also stored using the persistent Java preferences. When ProM starts, it reads this again from these Java preferences. See https://svn.win.tue.nl/trac/prom/browser/Packages/ProM-Contexts/Trunk/src/org/processmining/contexts/uitopia/hub/ProMResourceManager.java for the details.A question is whether you would like to do this in your plugin. It may be better to create an import plugin for the object you want to import, and to add this object as a parameter to the plugin. You can then import the object into the ProM workspace, and select the object as well when you want to run your plugin.Kind regards,Eric.
-
Thanks for the info, maybe it's a good idea to make an import plugin (never cross my mind). This files y wan to import are one csv with tabular data and a xes extension there, is any importer for this two type of data?
-
A CSV file importer already exists, this is basically used for importing log files which com e in a CSV file rather than a XES file. Perhaps you could use that importer. every event should then correspond to a row, and every attribute to a column. The first row should contain the attribute names. The only exception are start and complete events, these may be merged into a single row with two timestamps.
Howdy, Stranger!
Categories
- 1.6K All Categories
- 45 Announcements / News
- 225 Process Mining
- 6 - BPI Challenge 2020
- 9 - BPI Challenge 2019
- 24 - BPI Challenge 2018
- 27 - BPI Challenge 2017
- 8 - BPI Challenge 2016
- 68 Research
- 1K ProM 6
- 393 - Usage
- 287 - Development
- 9 RapidProM
- 1 - Usage
- 7 - Development
- 54 ProM5
- 19 - Usage
- 187 Event Logs
- 32 - ProMimport
- 75 - XESame