Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Add Popup menu in Navigator View
Add Popup menu in Navigator View [message #291051] Tue, 06 September 2005 18:32 Go to next message
Eclipse UserFriend
Originally posted by: baigmh.yahoo.com

Hi All,

I am using Java annotated class to defined EMF Model.
Need help in creating Model submenu under New in Resource Navigator
perspective.
I searched the topic Popup Menu but didn’t help much.

I added the submenu (Model Gif) under new through Windows->Customize
Prespective -> EMF Example and at R.H.S I found my model gif and I can see
it when I right click in View area.

Can some one please point me which class in Editor needs to be modified
and what needs to be added in the particular method? Or what needs to be
update or modify in plugin.xml, so that I can have the model gif present
all the time and after selecting that it will open the particular
extension file.

Thanks in advance for any help.

Regards,
Baig
Re: Add Popup menu in Navigator View [message #291098 is a reply to message #291051] Wed, 07 September 2005 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: baigmh.yahoo.com

Hi,

Need your Help here!

Below is the conversation with EMF NewsGroup.

Baig,

This isn't really an EMF question. All this is controlled by what's in
the plugin.xml

<extension
point = "org.eclipse.ui.newWizards">
<category
id = "org.eclipse.emf.ecore.Wizard.category.ID"
*name="%_UI_Wizard_category"*>
</category>
<wizard
id = "com.ibm.company.presentation.CompanyModelWizardID"
* name = "%_UI_CompanyModelWizard_label"*
class = "com.ibm.company.presentation.CompanyModelWizard"
category = "org.eclipse.emf.ecore.Wizard.category.ID"
*icon = "icons/full/obj16/CompanyModelFile.gif"*>
<description>%_UI_CompanyModelWizard_description</description >
<selection class = "org.eclipse.core.resources.IResource" />
</wizard>
</extension>

The category is controlled by the value %_UI_Wizard_category in the
plugin.properties view and the label under that is controlled by
%_UI_CompanyModelWizard_label.

Similarly for the editor where the label and GIF are specified:

<extension point = "org.eclipse.ui.editors">
<editor
id = "com.ibm.company.presentation.CompanyEditorID"
* name = "%_UI_CompanyEditor_label"*
* icon = "icons/full/obj16/CompanyModelFile.gif"*
extensions = "company"
class = "com.ibm.company.presentation.CompanyEditor"

contributorClass="com.ibm.company.presentation.CompanyActionBarContributor "
>
</editor>
</extension> Baig wrote:

Hi All,

I am using Java annotated class to defined EMF Model.
Need help in creating Model submenu under New in Resource Navigator
perspective.
I searched the topic Popup Menu but didn?t help much.

I added the submenu (Model Gif) under new through Windows->Customize
Prespective -> EMF Example and at R.H.S I found my model gif and I can see
it when I right click in View area.

Can some one please point me which class in Editor needs to be
modified and what needs to be added in the particular method? Or what
needs to be update or modify in plugin.xml, so that I can have the model
gif present all the time and after selecting that it will open the
particular extension file.

Thanks in advance for any help.

Regards,
Baig

------------------------------------------------------------ ----------------------------------
Baig,

I see. I'm not sure how to do that. You could ask on the platform
newsgroup or look for an example in existing plugins like the JDT plugins.


Baig wrote:

Ed Merks,

Thank you for your quick response, my plugin.xml has the same line of
code as you mentioned. every line is same for both New Wizard and
Editor,but i can't see the label name (model gif) when i right click in
resource/Navigator/popupmenu (view).

i am able to see Project/folder/file etc but not the Model gif. any
suggestion!

Thanks,
Baig.
Re: Add Popup menu in Navigator View [message #291163 is a reply to message #291098] Fri, 09 September 2005 15:08 Go to previous message
Eclipse UserFriend
Originally posted by: baigmh.yahoo.com

Will some one pls answer or explain this?

Thank You.
Previous Topic:Difference between IPreferenceStore and Preferences
Next Topic:MS ASP Editor?
Goto Forum:
  


Current Time: Fri Mar 29 02:02:01 GMT 2024

Powered by FUDForum. Page generated in 0.04334 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top