High priority Plugin development issue

This topic has been viewed 3889 times and has 9 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
AvinashC
Posts: 6
Joined: Wed Apr 03, 2024 9:53 am
Country: India

Plugin development issue

Post by AvinashC »

Hi all, I am new here and I am looking for a little support on how I can use an existing plugin and make changes to it. I have downloaded the source code of the sweethome3d and i am running the code in eclipse.
I have followed the steps given in the developers guide.
I have the jar file of the plugin code and i added it to the directory however on running the code there is no tools menu or the given name to the feature.
I am currently using MacOs 14.4.1

Am i missing something in the steps please let me know
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugin development issue

Post by Puybaret »

If the plug-in is stored in the right folder and classpath is correct, you must have something in the console which will give you some hints.
Emmanuel Puybaret, Sweet Home 3D creator
AvinashC
Posts: 6
Joined: Wed Apr 03, 2024 9:53 am
Country: India

Re: Plugin development issue

Post by AvinashC »

The plugin was in a jar file and it got saved automatically in a destination in com.eteks.test and it has the ApplicationPlugin.properties file as well.
Is there any step i am missing here.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugin development issue

Post by Puybaret »

Hum… and what about the content of the console?
Emmanuel Puybaret, Sweet Home 3D creator
AvinashC
Posts: 6
Joined: Wed Apr 03, 2024 9:53 am
Country: India

Re: Plugin development issue

Post by AvinashC »

WARNING: References to Carbon menus are disallowed with AppKit menu system on macOS 14 and newer. Use instances of NSMenu and NSMenuItem directly instead. See https://developer.apple.com/documentati ... s-14#Menus

Apart from this warning there is nothing else on the console.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugin development issue

Post by Puybaret »

Therefore it means that you didn’t place the plug-in in the right folder. Where did you store it?
Emmanuel Puybaret, Sweet Home 3D creator
AvinashC
Posts: 6
Joined: Wed Apr 03, 2024 9:53 am
Country: India

Re: Plugin development issue

Post by AvinashC »

its stored in the SweetHome 3d > ReferencedLibraries > TotalSurface.Jar > com.eteks.tes > TotalSurface.class
and the ApplicationPlugin is stored in TotalSurface.jar > META-INF folder
AvinashC
Posts: 6
Joined: Wed Apr 03, 2024 9:53 am
Country: India

Re: Plugin development issue

Post by AvinashC »

Not able move them either
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugin development issue

Post by Puybaret »

It may be not the good folder. See the section Creating the plug-in JAR in Plug-in developer’s guide.
Emmanuel Puybaret, Sweet Home 3D creator
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugin development issue

Post by Puybaret »

By the way, Referenced libraries section in Eclipse just lists the libraries that you use in your project, not the real folder where is stored a file!
Emmanuel Puybaret, Sweet Home 3D creator
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest