[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-core-dev] Fw: org.eclipse.core.runtime.products Extension
|
Scott,
Use <property> instead of <parameter>.
Also, as Jeff mentioned, appName is not the displayed name of the product.
That is obtained from the name attribute of the <product> element. The
generic workbench does not show this automatically in the title -- the
advisor has full control over this, and can get the value from
Platform.getProduct().getName() if it wishes. I was considering whether
this should be the default though. If you think so, please file an
enhancement request against Platform-UI.
See org.eclipse.ui.branding.IProductConstants.APP_NAME for the spec for
appName. Essentially it's a prefix used in the .XDefaults files on
X-based windowing systems, to refer to an app's widgets, e.g. for
overriding fonts and colours. I've just clarified this in the Javadoc.
For the image properties, the URL currently needs to be fully resolved,
not a relative path, e.g. try
value="platform:/base/plugins/com.ibm.jdg2e.mini.configurator/icons/miniwp.gif".
We want to fix this for RC2 though. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=64772
Nick
Scott Fairbrother <scottf@xxxxxxxxxx>
Sent by: platform-core-dev-admin@xxxxxxxxxxx
06/01/2004 02:22 PM
Please respond to
platform-core-dev
To
platform-core-dev@xxxxxxxxxxx
cc
platform-core-dev@xxxxxxxxxxx, platform-core-dev-admin@xxxxxxxxxxx
Subject
Re: [platform-core-dev] Fw: org.eclipse.core.runtime.products Extension
The PDE complains about parameter not being a legal child element of
product. Is this a PDE bug or a bug in the schema?
I ran with the parameter, as shown in the document example and icon and
the application name string didn't show in the UI. Is this a UI bug?
<extension
id="com.ibm.jdg2e.mini.configurator.product"
name="JDG2E Dynamic Plug-in Configurator"
point="org.eclipse.core.runtime.products">
<product
description="JDG2E Dynamic Plug-in Configurator"
name="JDG2E Dynamic Application"
application="com.ibm.jdg2e.mini.configurator.product1">
<parameter
value="icons/miniwp.gif"
name="windowImage"/>
<parameter
value="The Java Developer's Guide to Eclipse - Dynamic
Application"
name="appName"/>
</product>
</extension>
Thanks,
Scott Fairbrother
Eclipse/WebSphere Studio Jumpstart Team
607 Pinewood Dr
Apex , NC 27502
Voice : 919-367-9345 TL: 223-7851
The Java Developer's Guide to Eclipse -
http://www.aw.com/catalog/academic/product/1,4096,0321159640,00.html?type=PRE
WebSphere Studio - http://www.ibm.com/software/ad/adstudio
Ready for WebSphere Studio partner program -
http://www.developer.ibm.com/websphere/ready.html
platform-core-dev-admin@xxxxxxxxxxx wrote on 06/01/2004 12:46:25 PM:
>
> I believe the example is actually correct. (what are you thinking is
wrong?). The
> existance, semantics and handling of the <parameters> is defined by
people
> consuming IProducts. In this case, the UI defines some params (see
> IProductBrandingConstants) as does the Runtime (not sure where the
constants are).
>
> Note that the appName is not the Runtime's application, it is a value
used by the
> UI on Motif and the like to get UI specific settings. -application or
eclipse.
> application (or the application attribute of the <product> tag) are the
way you
> control the application that gets run.
>
> I suggest a bug report or query in UI land...
>
> Jeff
>
>
>
> Scott Fairbrother <scottf@xxxxxxxxxx>
> Sent by: platform-core-dev-admin@xxxxxxxxxxx
> 06/01/2004 12:00 PM
>
> Please respond to
> platform-core-dev
>
> To
>
> platform-core-dev@xxxxxxxxxxx
>
> cc
>
> Subject
>
> [platform-core-dev] Fw: org.eclipse.core.runtime.products Extension
>
>
>
>
>
> I see that the DDT in the doc corresponds to the PDE schema.... it's the
example
> that is wrong.
> Examples: Following is an example of static product declaration:
>
> <extension id="coolProduct" point="org.eclipse.core.runtime.products">
> <product name="%coolName" application="coolApplication"
description="%coolDescription">
> <parameter name="windowImage" value="window.gif"/>
> <parameter name="aboutImage" value="image.gif"/>
> <parameter name="featureImage" value="feature.gif"/>
> <parameter name="aboutText" value="%aboutText"/>
> <parameter name="appName" value="CoolApp"/>
> <parameter name="welcomePage" value="$nl$/welcome.xml"/>
> </product>
> </extension>
>
>
> I was expecting that by specifying the windowImage and appName values
that the
> (RCP) application witndow would show without having to set the shell
image and
> title programatically in the WorkbenchAdvisor. For some reason that is
not
> happening, what am I missing?
>
>
>
> Thanks,
> Scott Fairbrother
> Eclipse/WebSphere Studio Jumpstart Team
> 607 Pinewood Dr
> Apex , NC 27502
>
> Voice : 919-367-9345 TL: 223-7851
>
> The Java Developer's Guide to Eclipse - http://www.aw.
> com/catalog/academic/product/1,4096,0321159640,00.html?type=PRE
> WebSphere Studio - http://www.ibm.com/software/ad/adstudio
> Ready for WebSphere Studio partner program - http://www.developer.ibm.
> com/websphere/ready.html
>
> ----- Forwarded by Scott Fairbrother/Raleigh/IBM on 06/01/2004 11:51 AM
-----
>
> Scott Fairbrother/Raleigh/IBM wrote on 06/01/2004 10:50:38 AM:
>
> > There is a discrepancy between the doc and the PDE schema, which one
is right?
> >
> > The doc describes <parameter name= value=
> >
> > The PDE schema generated <property name= value=
> >
> >
> > Thanks,
> > Scott Fairbrother
> > Eclipse/WebSphere Studio Jumpstart Team
> > 607 Pinewood Dr
> > Apex , NC 27502
> >
> > Voice : 919-367-9345 TL: 223-7851
> >
> > The Java Developer's Guide to Eclipse - http://www.aw.
> > com/catalog/academic/product/1,4096,0321159640,00.html?type=PRE
> > WebSphere Studio - http://www.ibm.com/software/ad/adstudio
> > Ready for WebSphere Studio partner program - http://www.developer.ibm.
> > com/websphere/ready.html