if(path.isEmpty() || !(new File(path).exists()))\r
path = Platform.getLocation().toOSString();\r
fd.setFilterPath(path);\r
- String[] filterExt = {"*.tg"};\r
+ String[] filterExt = {"*.sysdynFunctions"};\r
fd.setFilterExtensions(filterExt);\r
fd.setOverwrite(true);\r
final String selected = fd.open();\r
fd.setFileName(name);\r
\r
fd.setFilterPath(path);\r
- String[] filterExt = {"*.tg"};\r
+ String[] filterExt = {"*.sysdyn"};\r
fd.setFilterExtensions(filterExt);\r
fd.setOverwrite(true);\r
fullPath = fd.open();\r
if(path.isEmpty() || !(new File(path).exists()))\r
path = Platform.getLocation().toOSString();\r
fd.setFilterPath(path);\r
- String[] filterExt = {"*.tg"};\r
+ String[] filterExt = {"*.sysdynModule"};\r
fd.setFilterExtensions(filterExt);\r
fd.setOverwrite(true);\r
final String selected = fd.open();\r
if(path.isEmpty() || !(new File(path).exists()))\r
path = Platform.getLocation().toOSString();\r
fd.setFilterPath(path);\r
- String[] filterExt = {"*.tg"};\r
+ String[] filterExt = {"*.sysdynFunctions; *.tg", "*.*"};\r
fd.setFilterExtensions(filterExt);\r
final String selected = fd.open();\r
if(selected == null) return null;\r
}\r
\r
fd.setFilterPath(path);\r
- String[] filterExt = {"*.tg"};\r
+ String[] filterExt = {"*.sysdyn; *.tg", "*.*"};\r
fd.setFilterExtensions(filterExt);\r
final String selected = fd.open();\r
if(selected == null) return null;\r
if(path.isEmpty() || !(new File(path).exists()))\r
path = Platform.getLocation().toOSString();\r
fd.setFilterPath(path);\r
- String[] filterExt = {"*.tg"};\r
+ String[] filterExt = {"*.sysdynModule; *.tg", "*.*"};\r
fd.setFilterExtensions(filterExt);\r
final String selected = fd.open();\r
if(selected == null) return null;\r
\r
- Job job = new DatabaseJob("Import model") {\r
+ Job job = new DatabaseJob("Import module") {\r
\r
@Override\r
protected IStatus run(IProgressMonitor monitor) {\r
\r
FileDialog dialog = new FileDialog(shell, SWT.SAVE);\r
\r
- String[] ext = {"*.tg"};\r
+ String[] ext = {"*.sysdynFunctions"};\r
dialog.setFilterExtensions(ext);\r
\r
dialog.setText("Export Function Library");\r
\r
FileDialog dialog = new FileDialog(shell, SWT.OPEN);\r
\r
- String[] ext = {"*.tg"};\r
+ String[] ext = {"*.sysdynFunctions; *.tg", "*.*"};\r
dialog.setFilterExtensions(ext);\r
\r
dialog.setText("Import Function Library");\r
\r
FileDialog dialog = new FileDialog(shell, SWT.SAVE);\r
\r
- String[] ext = {"*.tg"};\r
+ String[] ext = {"*.sysdyn"};\r
dialog.setFilterExtensions(ext);\r
\r
dialog.setText("Export Model");\r
\r
FileDialog dialog = new FileDialog(shell, SWT.OPEN);\r
\r
- String[] ext = {"*.tg"};\r
+ String[] ext = {"*.sysdyn; *.tg", "*.*"};\r
dialog.setFilterExtensions(ext);\r
\r
dialog.setText("Import Model");\r
\r
FileDialog dialog = new FileDialog(shell, SWT.SAVE);\r
\r
- String[] ext = {"*.tg"};\r
+ String[] ext = {"*.sysdynModule"};\r
dialog.setFilterExtensions(ext);\r
\r
dialog.setText("Export Module");\r
\r
FileDialog dialog = new FileDialog(shell, SWT.OPEN);\r
\r
- String[] ext = {"*.tg"};\r
+ String[] ext = {"*.sysdynModule; *.tg", "*.*"};\r
dialog.setFilterExtensions(ext);\r
\r
dialog.setText("Import Module");\r