Author |
Message
|
scravr |
Posted: Tue Jul 09, 2013 5:34 am Post subject: plugin pictures |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
On toolkit 8002:
Anyone have an idea why plugin pictures comes nice on palette and on flow editor when testing from development workspace into 2nd workspace, but
When putting packaged plugin JAR on toolkit plugin directory and starting a fresh workspace the icon on palette is small red dot and the picture on flow editor is the default picture?
The plugin JAR has the nice pictures in it !!!
Both JAVA and Plugin are independent resources. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 09, 2013 6:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
and the palette.xmi file properly references the right icons?
And you packaged the jar files using the package wizard?
Try restarting Toolkit with -clean. |
|
Back to top |
|
 |
scravr |
Posted: Tue Jul 09, 2013 6:17 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
Tried them all with no success |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 09, 2013 6:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
errors in .metadata/.log in the workspace during toolkit startup? |
|
Back to top |
|
 |
scravr |
Posted: Tue Jul 09, 2013 6:49 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
I PUT THE PLUGIN JAR ON C:\Program Files\IBM\WMBT800\dropins
AND ON LIL I PUT BOTH PLUGIN AND JAVA JARs.
TOOLKIT GET ERROR ON GIF FILE NOT FOUND !!!
BUT ALL 3 GIFs ARE ON JAR FILE: 2 WITH GIF AND 1 WITH gif SUFFIX.
palette.xmi:
icon16Name="platform:/plugin/My.ID/icons/full/clcl16/com/.../.../.../plugin/MyPlugin.GIF"
icon32Name="platform:/plugin/My.ID/icons/full/obj30/com/.../.../.../plugin/MyPlugin.GIF"
toolkit error:
java.io.FileNotFoundException: /icons/full/clcl16/com/.../.../.../plugin/MyPlugin.GIF
!STACK 0
...
...
Is suffix makes a difference? GIF vs gif ? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 09, 2013 7:38 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
scravr wrote: |
I PUT THE PLUGIN JAR ON C:\Program Files\IBM\WMBT800\dropins
AND ON LIL I PUT BOTH PLUGIN AND JAVA JARs. |
Please don't use all caps. Runtime lil doesn't need toolkit package, just runtime package. If I understand you, that's just the "java jar" not the plugin jar.
Runtime doesn't have any effect on Toolkit and vice versa.
scravr wrote: |
Is suffix makes a difference? GIF vs gif ? |
Yes, unfortunately, it could.
But I think the problem is the "/.../../" parts of the path in the palette.xmi files. I would expect that to be something like "platform:/plugin/My.ID/MyPlugin.gif" or "platform:/plugin/My.ID/plugin/MyPlugin.gif".
The paths need to be correct to the location of the actual files inside the jar file, relative to the root of the jar file directory. the "/.../.../.../" moves the path to several directories above the icons directory. |
|
Back to top |
|
 |
scravr |
Posted: Tue Jul 09, 2013 9:37 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
1. On V7: plugin jar should reside on toolkit C:\Program Files\IBM\WMBT800\plugins
On V8 package wizeard it says to put on C:\Program Files\IBM\WMBT800\dropins AND on broker LILPATH !!! ---- this is incorrect
Testing and more testing shows plugin JAR should be on BOTH dropins and plugins directories. No need to put on LIL.
2. Using windows CMD I renamed all 3 files from *.GIF to *.gif and all icons pictures are OK. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 09, 2013 9:43 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Windows files system is not case-sensitive. GIF and gif mean the same to Windows. Unix is case-sensitive.
If you found an incorrect fact in the InfoCentre, please submit feedback on that page. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 09, 2013 9:59 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
lancelotlinc wrote: |
Windows files system is not case-sensitive. GIF and gif mean the same to Windows. Unix is case-sensitive.
If you found an incorrect fact in the InfoCentre, please submit feedback on that page. |
And if this had anything to do with the file system, this would be relevant and helpful.
It doesn't.
It has to do with how the palette.xmi information is interpreted and parsed by the Toolkiit.
Which, as I said, could indeed decide that it needed to parse this in a case-sensitive manner, and look for "file.gif" when it was told to look for "file.GIF" and fail to find the image. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 09, 2013 10:28 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
scravr |
Posted: Tue Jul 09, 2013 11:11 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
both the file name and palette reference must be same case.
The description of directories (where to put the plugin JAR) on Package wizard needs to be changed and point to both plugins and dropins directories. NOT to LIL |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 09, 2013 8:20 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Actually you'll probably need all three if you want to deploy to the runtime...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
scravr |
Posted: Wed Jul 10, 2013 11:36 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
I have JAVA constructor with default values for properties.
any ideas why properties on BAR are not coming into runtime?
In debug I see the defaults.
Do I need to call get/set function for each property? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jul 10, 2013 12:01 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
scravr |
Posted: Wed Jul 10, 2013 12:15 pm Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
I do have get/set functions.
constructor has:
createOutputTerminal("failure");
createOutputTerminal("out");
createOutputTerminal("catch");
this.name="n/a";
this.acct=0;
.
.
.
in debug is see: name=n/a insteadof "MyName" that is on BAR !!!!
do I need to set default in constructor? |
|
Back to top |
|
 |
|