Pop-up menu names do not change with Eclipse plugin development

Asked 2 years ago, Updated 2 years ago, 67 views

Eclipse plugin development is adding menus to pop-up menus.
The menu itself can be added and works, but changing the name of the menu does not take effect.

The menu is defined by the following code:

<extension point="org.eclipse.ui.commands">
 <command defaultHandler="link.arata.mybatishelper.MyBatisHelperCommand"
 id="link.arata.mybatishelper.MyBatisHelperCommand" name="%XMLFileOpenAction.label">
 </command>
</extension>

The name itself is defined by its properties and is described as follows:

XMLFileOpenAction.label=Open the corresponding XML file

The first name you define is correct, but changing the value of the property does not change the name you defined first.
If you change other parts of the program, that part will be reflected properly.
How does it take effect?

Tried

  • If you set it to literal or property values, it may change sometimes, but it doesn't seem to be legal
  • Project clean.

Environment

  • MaxOS 10.11.1
  • Eclipse for RCP and RAP Developers 4.5.1

eclipse

2022-09-30 19:28

1 Answers

I have tried various versions of Eclipse and found out the following.

The menu does not change the name of the
- Eclipse 4.5
- Eclipse 4.4
- Eclipse 4.3

It will be changed
- Eclipse 4.2
- Eclipse 3.7

Yes, I tried the Windows version of Eclipse 4.5, but the menu didn't change.
As it cannot be helped, I would like to develop it with Eclipse 4.2.


2022-09-30 19:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.