e4

Host plug-in JavaSE has not been found in RCP application with Java 10

独自空忆成欢 提交于 2019-12-10 11:07:57
问题 I moved my RCP application from Eclipse Oxygen to Photon, and also from Java 8 to Java 10. The code compiles and the application works fine if I start it from Eclipse. However, when I try to build my application, I get an error: plug-in JavaSE_0.0.0 has not been found Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-10 Host plug-in JavaSE_0.0.0 has not been found. I can't find any useful solution on Google. Maybe some of you can help me. My manifest file contains this header:

Undo shortcut not working in Eclipse

孤街浪徒 提交于 2019-12-10 10:08:56
问题 The last couple of days the Ctrl + Z shortcut (Undo) scrolls down a line (a-la emacs). I tried to switch schemes back and forth, change and redefine the Undo in Default scheme, nothing seems to work. Other combinations ( Alt + Ctrl + Z ) work fine, other workspaces work fine with Ctrl + Z . Any tip that will save me from redefining the workspace? 回答1: The key bindings are stored in the file [workspace]\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi . You can search for Ctrl+Z in

Eclipse 4 RCP (aka E4) documentation

血红的双手。 提交于 2019-12-09 04:44:44
问题 Is there at least anything other than Vogella's tutorials and his book , which is completely based on those tuts? Examples from his repo are often either incomplete/unfinished/won't run and those examples even don't match the book actually.. I'd like to find at least some javadoc for this, because any step to a side and I'm completely lost on how to accomplish different tasks and what functionality is available. 回答1: Lars Vogel's Tutorials are the most complete and up-to-date documentation on

How to add perspective change listener in e4 RCP application?

半世苍凉 提交于 2019-12-08 09:29:09
问题 I am currently working on a E4 RCP application where I need to detect when ever perspective is chnaged or switched so I need to add listener .Previously in eclipse 3x i used to do like below code . PlatformUI.getWorkbench().getActiveWorkbenchWindow().addPerspectiveListener() But this code will not work in E4 as platformui is not acessible in E4. I tried searching on web and I came across below tutorial. http://www.vogella.com/tutorials/Eclipse4ModelEvents/article.html#exercise_perspective

Eclipse 4 RCP Application (standalone!): Add “show view” in menu

时光毁灭记忆、已成空白 提交于 2019-12-08 07:45:19
问题 In my standalone RCP Application (which I start using a product configuration) I would like to add a menu entry "show view" that lists all views I have defined in my persistent application model (an application.e4xmi file) being closed . Currently I do not have any Advisor Classes in use. What I did was to manually add HandledMenuItems for each view and added a CoreExpression as Visible-When Expression . This expression tests for a special key value pair in the application context . The

Eclipse RCP 4 draggable Toolbar

拥有回忆 提交于 2019-12-08 06:49:36
问题 Is it possible to create a pure Eclipse RCP 4 application, that uses the nice toolbar from the Eclipse IDE with Drag and Drop functionality? Starting with a fresh installation of Eclipse for RCP 4.5.1, I created a pure e4 application with sample content using the wizrad. It contains two toolbars, but D&D functionality is missing. So what to do next? 回答1: There was Drag and Drop functionality in Eclipse 3.x (locking / unlocking toolbar) But with Eclipse 4.x its not working. You can see bug :

Update Eclipse E4 application using p2

心已入冬 提交于 2019-12-08 04:00:33
问题 I'm adding an update feature in my Eclipse E4 application. Herefor I used the source code and tutorial from Lars Vogel. When I test my application the provisioningJob is always null. It should only be null when it run into Eclipse. But when I try to update my exported application the provisioningJob is still null. What I'm doing wrong? public class UpdateHandler { private static final String REPOSITORY_LOC = System.getProperty("UpdateHandler.Repo", "file:////updateServer/repository");

Open Editor Part in E4

拜拜、爱过 提交于 2019-12-07 20:50:53
问题 In E3 this was one of the basic use cases: we want to open an editor (or view or part, whatever you want to call it) based on some model object, back then wrapped in IEditorInput . In E4 this seems to be one of the features that got removed without replacement. However you can reinvent the wheel: public static final String DATA_MODEL = "model"; @Inject private EPartService partService; @Inject private EPartService partService; @Inject private MApplication application; public void open(String

How to restrict the minimum size of the window for Eclipse e4

僤鯓⒐⒋嵵緔 提交于 2019-12-07 18:14:24
问题 I am making an application based on Eclipse e4 framework. I was wondering how the minimal size of the application window can be controlled. There seems no properties can be defined in e4xmi file for this purpose. Does anyone know how to do it? I found a thread in Eclipse Community Forum (http://www.eclipse.org/forums/index.php/t/244875/) saying it can be achieved by creating my own renderer. How can I do that exactly? Thank you very much :) 回答1: Assuming you are using the built-in SWT

How can I add xText editor to Eclipse (e4) RCP Application?

喜欢而已 提交于 2019-12-07 17:16:56
问题 I've already made a xtext editor (2.5). I try to use this editor in a part in my RCP application. I use this code: Injector injector = MyDslActivator.getInstance().getInjector(MyDslActivator.XTEXT_DSL_MYDSL); EmbeddedEditorFactory factory = injector.getInstance(EmbeddedEditorFactory.class); editor = factory.newEditor(resourceProvider).showErrorAndWarningAnnotations().withParent(container); But I got an error java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse