e4-ui-tools's Issues
Need Help for Processor in e4
Dear Tom,
I am facing a problem while adding a menu entry to File Menu in Eclipse IDE 4.6 using the model processor.
This problem is exactly like the one mentioned in https://www.eclipse.org/forums/index.php/t/499577/
Do we have any solution for this?
In the example below..
When I try to print Menu, it is coming as null.
My Idea was to manipulate any IDE UI element through the processor. Is it possible in eclipse IDE (Being a not pure E4 application)?
Request your suggestion on this…
Thank you very much.
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.advanced.MPerspectiveStack;
import org.eclipse.e4.ui.model.application.ui.menu.MMenu;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
public class ModelProcessor {
@nAmed("menu:org.eclipse.ui.main.menu")
private MMenu menu;
public ModelProcessor() {
System.out.println("Model Processor constructor called");
}
@Execute
public void execute(MApplication application, EModelService modelService, @Optional MPerspectiveStack perspectiveStack ) {
System.out.println("ModelProcessor:execute called");
System.out.println(menu);
}
}
Thanks,
Ajay
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.