Great, that helped!!!
 
Thank you very much!
;) Ingmar
 
Gesendet: Dienstag, 23. Juni 2015 um 15:41 Uhr
Von: "Goch, Caspar Jonas" <[email protected]>
An: "'Ingmar Wegner'" <[email protected]>
Cc: "'[email protected]'" <[email protected]>
Betreff: AW: AW: [mitk-users] Extensionpoint for custom app plugin not found

Hi Ingmar,

 

that [1] is the commit where I migrated MITK Diffusion. So if you ignore the intro page just adding the new extension id should work.

 

Hope this helps,

Caspar

 

[1] http://mitk.org/git/?p=MITK.git;a=commitdiff;h=ec984d815c13a56af284591cf30589152c9d416c

 

 

Von: Ingmar Wegner [mailto:[email protected]]
Gesendet: Dienstag, 23. Juni 2015 14:04
An: Goch, Caspar Jonas
Cc: '[email protected]'
Betreff: Aw: AW: [mitk-users] Extensionpoint for custom app plugin not found

 

Hi Caspar,

yes, I also looked at the Diffusion application and app plugin as an example.

I saw the intro page that I also wanted to add some time but wanted to isolate the loading error first.

That was probably the reason that I didn't see the productId!

So can I add the productId to any level within the extension definition in plugin.xml?

Or do I have to add the intro part?

 

;) THANK YOU!

Ingmar

 

 

 

Gesendet: Dienstag, 23. Juni 2015 um 13:29 Uhr
Von: "Goch, Caspar Jonas" <[email protected]>
An: "'Ingmar Wegner'" <[email protected]>, "'[email protected]'" <[email protected]>
Betreff: AW: [mitk-users] Extensionpoint for custom app plugin not found

Hi Ingmar,

 

Have you taken a look at how MITK Diffusion does it?

app.setProperty(mitk::BaseApplication::PROP_PRODUCT, "org.mitk.gui.qt.diffusionimagingapp.diffusion"); [1]

 

the product id (which you seem to be missing, it is not the same as the application id) is added in the corresponding plugin.xml:

 

  <extension point="org.blueberry.ui.intro">

    <intro id="org.mitk.qt.diffusionimagingappintro"

      class="QmitkDiffusionImagingAppIntroPart"

      role="editor"/>

    <introProductBinding

      productId="org.mitk.gui.qt.diffusionimagingapp.diffusion"

      introId="org.mitk.qt.diffusionimagingappintro"/>

  </extension>

 

 

Thanks for the pull request,

 

Best,

Caspar

 

[1] http://mitk.org/git/?p=MITK.git;a=blob;f=Applications/Diffusion/MitkDiffusion.cpp;h=8939b8f973e4737b5eef62980879e8fc67e90dea;hb=HEAD

[2] http://mitk.org/git/?p=MITK.git;a=blob;f=Plugins/org.mitk.gui.qt.diffusionimagingapp/plugin.xml;h=ac5ff8081896501bd8ef717abbd9fb65db645e0d;hb=HEAD

 

 

Von: Ingmar Wegner [mailto:[email protected]]
Gesendet: Dienstag, 23. Juni 2015 11:54
An: [email protected]
Betreff: [mitk-users] Extensionpoint for custom app plugin not found

 

Hi MITK community,

 

I am struggeling with the latest changes of mitkBaseApplication.

I have restructured my application main to:

 

imgx_main.cpp:

...

mitk::BaseApplication my_app(argc, argv);

my_app.setApplicationName("ImageExplorer");
my_app.setOrganizationName("My Company");

QStringList preload_libs;

preload_libs << "liborg_mitk_gui_qt_ext";

preload_libs << "myCompany.infrastructure"; // a lib that needs to be preloaded

my_app.setPreloadLibraries(preload_libs);
my_app.setProperty(mitk::BaseApplication::PROP_PRODUCT, "com.mycompany.imageexplorer_app");

try {
    return my_app.run();
}
catch (std::exception& e) {
    std::cout << "error during start procedure: " << e.what();
    return false;
}

... plugin.xml listed below

 

 

I get the error that the product com.mycompany.imageexplorer_app is not found.

As I saw that there was a change in this direction adding intro binding to the product [1]. 

 

Debugging into the plugin loading mechanism showed that there is only one extension available which is the mitk workbench but not my custom applicat.

 

-> Could somebody point me to the place where the extension points are registered so I can debug why my app plugin isn't registered? I'm currently lost! ;)

Does anybody else have this problem?

 

By the way, I had to do a minor change to get preloading of multiple libraries to work. See bug [2] for further description.

 

 

Have a nice day everybody and many thanks for the great features of the new release,

Ingmar

 

 

[1] SHA from commit a1b251f34d53732cf4b3df3d7d5144cd5f91dd46

 

 

 

---------------------------------

plugin.xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<plugin>
  <extension point="org.blueberry.osgi.applications">
    <application id="com.mycompany.imageexplorer_app">
      <run class="ImgexApp_C"/>
    </application>
  </extension>
  <extension point="org.blueberry.ui.perspectives">
    <perspective
      id="com.mycompany.research_perspective"
      name="MyCompany Research"
      class="ResearchPerspective_C"
      icon="resources/research_perspective_icon.png">
    </perspective>
  </extension>
</plugin>

 

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to