Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit fb7574c5 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

better search for input data plugin

parent e199f3c8
No related branches found
No related tags found
No related merge requests found
...@@ -205,9 +205,6 @@ ...@@ -205,9 +205,6 @@
sDbhv9/4m+ZgnX1wey9Idfa/Y3WQPgGrg/QJWB2kj96I/gcOkiuMy/nVgwAAAABJRU5ErkJggg== sDbhv9/4m+ZgnX1wey9Idfa/Y3WQPgGrg/QJWB2kj96I/gcOkiuMy/nVgwAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>850, 12</value>
</metadata>
<metadata name="ConMenFilelist.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="ConMenFilelist.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>219, 14</value> <value>219, 14</value>
</metadata> </metadata>
...@@ -226,9 +223,6 @@ ...@@ -226,9 +223,6 @@
<metadata name="CmOpenFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="CmOpenFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>732, 12</value> <value>732, 12</value>
</metadata> </metadata>
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>850, 12</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>49</value> <value>49</value>
</metadata> </metadata>
......
...@@ -40,6 +40,7 @@ Imports System.Text ...@@ -40,6 +40,7 @@ Imports System.Text
Imports System.Text.RegularExpressions Imports System.Text.RegularExpressions
Imports System.Threading Imports System.Threading
Imports Microsoft.VisualBasic.FileIO Imports Microsoft.VisualBasic.FileIO
Imports TUGraz.VectoCommon.Exceptions
Imports TUGraz.VectoCommon.InputData Imports TUGraz.VectoCommon.InputData
Imports TUGraz.VectoCommon.Models Imports TUGraz.VectoCommon.Models
Imports TUGraz.VectoCommon.OutputData Imports TUGraz.VectoCommon.OutputData
...@@ -2014,7 +2015,20 @@ Imports VectoAuxiliaries ...@@ -2014,7 +2015,20 @@ Imports VectoAuxiliaries
Return Return
End If End If
Try Try
PluginRegistry.Instance.GetExportPlugin("TUG.IVT.Vecto.XMLExport").ExportJob(JSONInputDataFactory.ReadJsonJob(f)) Dim input As IInputDataProvider = Nothing
If Path.GetExtension(f) = ".vecto" Then
input = JSONInputDataFactory.ReadJsonJob(f)
Else
For Each plugin As KeyValuePair(Of String, IInputDataPlugin) In PluginRegistry.Instance.GetInputDataPlugins()
If plugin.Value.CanHandleJob(f) Then
input = plugin.Value.ReadVectoJob(f)
Exit For
End If
Next
End If
If input Is Nothing Then Throw New VectoException("No InputDataProvider for file {0} found!", f)
PluginRegistry.Instance.GetExportPlugin("TUG.IVT.Vecto.XMLExport").ExportJob(input)
Catch ex As Exception Catch ex As Exception
MsgBox("Exporting job failed: " + ex.Message) MsgBox("Exporting job failed: " + ex.Message)
End Try End Try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment