* Exports a function library\r
* \r
* @author Teemu Lempinen\r
+ * @author Tuomas Miettinen\r
*\r
*/\r
public class ExportFunctionLibrary extends AbstractHandler {\r
fd.setFilterPath(path);\r
String[] filterExt = {"*.tg"};\r
fd.setFilterExtensions(filterExt);\r
+ fd.setOverwrite(true);\r
final String selected = fd.open();\r
if(selected == null) return null;\r
\r
* Exports a selected model\r
* \r
* @author Teemu Lempinen\r
+ * @author Tuomas Miettinen\r
*\r
*/\r
public class ExportModelHandler extends AbstractHandler {\r
fd.setFilterPath(path);\r
String[] filterExt = {"*.tg"};\r
fd.setFilterExtensions(filterExt);\r
+ fd.setOverwrite(true);\r
final String selected = fd.open();\r
if(selected == null) return null;\r
\r
/**\r
* Exports a selected module\r
* @author Teemu Lempinen\r
+ * @author Tuomas Miettinen\r
*\r
*/\r
public class ExportModuleHandler extends AbstractHandler {\r
class ContainsDependenciesException extends DatabaseException {\r
private static final long serialVersionUID = -1533706136673146020L;\r
\r
- private Collection<String> dependencies;\r
+ private final Collection<String> dependencies;\r
\r
ContainsDependenciesException(Collection<String> dependencies) {\r
this.dependencies = dependencies;\r
fd.setFilterPath(path);\r
String[] filterExt = {"*.tg"};\r
fd.setFilterExtensions(filterExt);\r
+ fd.setOverwrite(true);\r
final String selected = fd.open();\r
if(selected == null) return null;\r
\r