but why doesn't it just simply reuse the existing python console? it has access 
to all the same functionality! ..ede

On 10/27/2020 14:55, Giuseppe Aruta wrote:
> The idea is to migrate python consolle into CAD toolbox. The advantage is to 
> group all together some useful tools that are available on the python console 
> (like align and distribute tools, see Cad toolbox bar).
>
> A further  step is to activate a python console itself and make it more 
> evident, via Cad Toolbox, like a hide/show panel.
>
>
> Il giorno mar 27 ott 2020 alle ore 14:47 <edgar.sol...@web.de 
> <mailto:edgar.sol...@web.de>> ha scritto:
>
>     works again. i'm wondering where this CAD specific python console can be 
> activated?
>
>     also. why does it exist in parallel to the normal one and why does it 
> need to be initialized with totally different code? ..ede
>
>     On 10/27/2020 13:52, Giuseppe Aruta wrote:
>     > Yes.
>     > The problem is on line
>     > ClassLoader classLoader = 
> context.getWorkbench().getPlugInManager().getClassLoader();
>     > <PlugInManager().getClassLoader() method is deprecated>
>     >
>     > After searching in the code I changed it with the method
>     > ClassLoader classLoader = context.getWorkbench()
>     > .getPlugInManager().getPlugInClassLoader()
>     >
>     > and it seems to work fine (see OJ 6617 "Cross Fingers")
>     >
>     >
>     >
>     > Il giorno mar 27 ott 2020 alle ore 13:41 <edgar.sol...@web.de 
> <mailto:edgar.sol...@web.de> <mailto:edgar.sol...@web.de 
> <mailto:edgar.sol...@web.de>>> ha scritto:
>     >
>     >     Peppe,
>     >
>     >     could you reproduce the issue on your side? i could, but weird 
> thing is, it complains about a missing method that is definitely there. are 
> you compiling against the latest OJ-Core?
>     >
>     >     ..ede
>     >
>     >     On 10/27/2020 13:37, jump-pilot-svn--- via Jump-pilot-devel wrote:
>     >     > Revision: 6615
>     >     >           http://sourceforge.net/p/jump-pilot/code/6615
>     >     > Author:   ma15569
>     >     > Date:     2020-10-27 12:37:37 +0000 (Tue, 27 Oct 2020)
>     >     > Log Message:
>     >     > -----------
>     >     > changed method to avoid exception
>     >     >
>     >     > Modified Paths:
>     >     > --------------
>     >     >     
> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/utils/WorkbenchUtils.java
>     >     >
>     >     > Modified: 
> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/utils/WorkbenchUtils.java
>     >     > 
> ===================================================================
>     >     > --- 
> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/utils/WorkbenchUtils.java
>       2020-10-26 19:40:44 UTC (rev 6614)
>     >     > +++ 
> plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/utils/WorkbenchUtils.java
>       2020-10-27 12:37:37 UTC (rev 6615)
>     >     > @@ -1175,7 +1175,7 @@
>     >     >               //      toolbox.setTitle("Jython");
>     >     >               // setup the interpreter
>     >     >               ClassLoader classLoader = context.getWorkbench()
>     >     > -                             
> .getPlugInManager().getClassLoader();
>     >     > +                             
> .getPlugInManager().getPlugInClassLoader();//.getClassLoader();
>     >     >               Properties preProperties = new 
> Properties(System.getProperties());
>     >     >               String homepath = 
> preProperties.getProperty("user.home");
>     >     >
>     >     >
>     >     >
>     >     >
>     >     > _______________________________________________
>     >     > Jump-pilot-devel mailing list
>     >     > Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net> 
> <mailto:Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>>
>     >     > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>     >     >
>     >
>     >
>     >
>     >     _______________________________________________
>     >     Jump-pilot-devel mailing list
>     >     Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net> 
> <mailto:Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>>
>     >     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>     >
>     >
>     >
>     > _______________________________________________
>     > Jump-pilot-devel mailing list
>     > Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>
>     > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>     >
>
>
>
>     _______________________________________________
>     Jump-pilot-devel mailing list
>     Jump-pilot-devel@lists.sourceforge.net 
> <mailto:Jump-pilot-devel@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>



_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to