[Solved] How to load file to the IDE from an external tool
Posted: Fri Feb 10, 2012 4:59 am
Hello everyone,
I'm currently creating a ToolBox Manager external Tool. What it does you say ?
In your source code look like this :The ToolBoxManager will intercept the "PB_EditorOutput.pb" file then change it to :
So the compiler see only long IncludeFile and your source code will remain clear and your defined source can remain to the same folder. You don't have to specify were the ToolBoxFile are located just their names.
For the moment, 1 of 3 functionality work properly, the code compiling. The ToolBoxManager setting window are in progress. And ToolBox source file load is the blocking point (I use "Shift" + "F12" while cursor is located on the "ToolBoxFile" keyword). For the moment I can get the line :
But this don't work, or I have miss something important.
Thanks in advance and best regards.
Guimauve
I'm currently creating a ToolBox Manager external Tool. What it does you say ?
In your source code look like this :
Code: Select all
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : Example of ToolBoxFile system
; File Name : My source Code.pb
; File version: 0.0.0
; Programmation : OK
; Programmed by : Guimauve
; Date : 09-02-2012
; Last Update : 09-02-2012
; PureBasic code : 4.61
; Plateform : Windows, Linux, MacOS X
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ToolBoxFile "Read Write Null Terminated String.pb"
ToolBoxFile "Vector2.pb", "Vector3.pb", "Vector4.pb"
ToolBoxFile "Matrix22.pb", "Matrix33.pb", "Matrix44.pb"
; <<<<<<<<<<<<<<<<<<<<<<<
; <<<<< END OF FILE <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<Code: Select all
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; Project name : Example of ToolBoxFile system
; File Name : My source Code.pb
; File version: 0.0.0
; Programmation : OK
; Programmed by : Guimauve
; Date : 09-02-2012
; Last Update : 09-02-2012
; PureBasic code : 4.61
; Plateform : Windows, Linux, MacOS X
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
IncludeFile "/home/guimauve/Codes PureBasic/75 - ToolBox/Read-Write/Read Write Null Terminated String.pb"
IncludeFile "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Vector2.pb"
IncludeFile "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Vector3.pb"
IncludeFile "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Vector4.pb"
IncludeFile "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Matrix22.pb"
IncludeFile "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Matrix33.pb"
IncludeFile "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Matrix44.pb"
; <<<<<<<<<<<<<<<<<<<<<<<
; <<<<< END OF FILE <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<For the moment, 1 of 3 functionality work properly, the code compiling. The ToolBoxManager setting window are in progress. And ToolBox source file load is the blocking point (I use "Shift" + "F12" while cursor is located on the "ToolBoxFile" keyword). For the moment I can get the line :
- ToolBoxFile "Matrix22.pb", "Matrix33.pb", "Matrix44.pb"
- "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Matrix22.pb"
- "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Matrix33.pb"
- "/home/guimauve/Codes PureBasic/75 - ToolBox/Maths/Matrix44.pb"
Code: Select all
Current_IDE.s = GetEnvironmentVariable("PB_TOOL_IDE")
RunProgram(Current_IDE, Files, ??? )Thanks in advance and best regards.
Guimauve