Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3604 times and has 4 replies Next Thread
dimm
Newbie




Joined: Apr 4, 2012
Post Count: 10
Status: Offline
Reply to this Post  Reply with Quote 
Plugins do not work in the applet

Hello,

Goal: make a plugin that works in the applet.
What I also tried :
I edited the calculatewalls plugin to enable toolbar icon. Made the jar. The plugin works fine in the standalone version and the icon appears on the toolbar, but the plugin breaks the applet( .. pluginUrls:"plugins/calculateWalls.jar", .. ).

Is there a plugin that works in the applet? Or explanation how to make it happen?

Btw, learning Java so please include more details if possible.
Thanks in advance
[Apr 12, 2012, 8:45:32 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9427
Status: Offline
Reply to this Post  Reply with Quote 
Re: Plugins do not work in the applet

I'm going to check if this feature works correctly.
Nevertheless, as applets don't display a menu bar, only plug-ins displaying a button in the tool bar can be used within an applet (the TOOL_BAR property of its plug-in action must be set to Boolean.TRUE), and calculateWalls.jar isn't usable in that case.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Apr 13, 2012, 10:24:19 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dimm
Newbie




Joined: Apr 4, 2012
Post Count: 10
Status: Offline
Reply to this Post  Reply with Quote 
Re: Plugins do not work in the applet

Puybaret, thank you for looking into this.

Here is the error I get in the console. Again the same jar works fine with the stand alone.

Exception in thread "AWT-EventQueue-2" java.lang.LinkageError: loader constraint violation: loader (instance of com/eteks/sweethome3d/tools/ExtensionsClassLoader) previously initiated loading for a different type with name "com/eteks/sweethome3d/plugin/PluginAction"
at java.lang.ClassLoader.defineClass1(Native Method)
......
[Apr 16, 2012, 4:27:05 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Sajmmon
Member



Poland
Joined: Nov 10, 2010
Post Count: 50
Status: Offline
Reply to this Post  Reply with Quote 
Re: Plugins do not work in the applet

Hi,

I dont know if my experience would help, but I was getting the same error when experimenting with JAWS. In my case a piece of code in my plugin worked fine. However, a piece of code that I added to Sweethome SRC in a new package needed to be implicitly stated in:
com.eteks.sweethome3d.SweetHome3DBootstrap
in the list of application packages

Cheers
[Apr 16, 2012, 6:41:07 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dimm
Newbie




Joined: Apr 4, 2012
Post Count: 10
Status: Offline
Reply to this Post  Reply with Quote 
Re: Plugins do not work in the applet

Solved. The issue was in the meatware (me). Please delete thread.
[May 23, 2012, 10:38:58 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved