DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page propertypage
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default propertypage - 06-28-2009, 12:41 PM

Hi,
Using RSA which is built on Eclipse 3.4.2 and am having trouble contributing a propertypage for an open UML model.
Tried com.ibm.xtools.uml.navigator.ModelServerElement in the objectClass(see example below).
This works fine but also presents the propertpage for any element selected within the model.

Also tried *.emx in the nameFilter but the page is only presented when the unopened model is selected!

Would be grateful for any help.

<extension
point="org.eclipse.ui.propertyPages">
<page
class="mYPropertyPage"
id="mYPropertyPage"
name="mYPropertyPage"
objectClass="com.ibm.xtools.uml.navigator.ModelSer verElement">
</page>
</extension>
Reply With Quote
  (#2 (permalink)) Old
Active Contributor
 
Posts: 62
Thanks: 0
Thanked 6 Times in 6 Posts
Join Date: Jun 2009
Default 07-01-2009, 02:45 AM

Hi,

Maybe you can try to add an element.
add this element in the extension point to have a shot:
<filter name="UMLType" value="Model"/>


www.eclaxy.com
let's perfect the eclipse!
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default 07-02-2009, 05:26 AM

Hi oxygold, Tried this but the propetypage is not presented at all now! This does seem strange as I have already used umlType:Model to enable the selection of a menu item in the same plugin.xml - see extract below.

<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
objectClass="com.ibm.xtools.uml.navigator.ModelSer verElement"
id="MyID">
<menu
label="%plugin_popup_extractor"
path="additions"
id="MyMenu.menu">
<separator
name="group1">
</separator>
</menu>
<action
label="%plugin_popup_generate"
class="MyClassName"
menubarPath="MyMenu.menu/group1"
enablesFor="1"
id="MyActions.newAction">
<enablement>
<objectState
name="umlType"
value="Model">
</objectState>

</enablement>
</action>
</objectContribution>
</extension>

<extension
point="org.eclipse.ui.propertyPages">
<page
class="MyPropertyPage"
id="MyPropertyPage"
name="%plugin_properties_name"
objectClass="com.ibm.xtools.uml.navigator.ModelSer verElement">
<filter
name="umlType"
value="Model">
</filter>

</page>
</extension>
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default 07-02-2009, 05:30 AM

Hi oxygold, Tried this but the propetypage is not presented at all now! This does seem strange as I have already used umlType:Model to enable the selection of a menu item in the same plugin.xml - see extract below.

<extension point="org.eclipse.ui.popupMenus">
<objectContribution objectClass="com.ibm.xtools.uml.navigator.ModelSer verElement"
id="MyID">
<menu
label="%plugin_popup_extractor"
path="additions"
id="MyMenu.menu">
<separator
name="group1">
</separator>
</menu>
<action
label="%plugin_popup_generate"
class="MyClassName"
menubarPath="MyMenu.menu/group1"
enablesFor="1"
id="MyActions.newAction">
<enablement>
<objectState
name="umlType"
value="Model">
</objectState>

</enablement>
</action>
</objectContribution>
</extension>

<extension
point="org.eclipse.ui.propertyPages">
<page
class="MyPropertyPage"
id="MyPropertyPage"
name="%plugin_properties_name"
objectClass="com.ibm.xtools.uml.navigator.ModelSer verElement">
<filter
name="umlType"
value="Model">
</filter>

</page>
</extension>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com