Giter Site home page Giter Site logo

e4-ui-tools's People

Contributors

andrejbrummelhuis avatar angelozerr avatar baumato avatar bogg avatar briandealwis avatar codetrails avatar col-panic avatar emoffatt avatar evolanakis avatar execc avatar fipro78 avatar flamenco avatar jd-carroll avatar joneshelming avatar lemmy avatar leodenault avatar opcoach avatar paulweb515 avatar power4aix avatar psuzzi avatar renbrand avatar sopotc avatar tomsontom avatar trylimits avatar vincenzocaselli-rcp avatar vogella avatar wimjongman avatar wsudol avatar

Watchers

 avatar  avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.