eclipse-rcp

Where is javax.annotation

时光毁灭记忆、已成空白 提交于 2019-12-08 14:48:48
问题 Ok, so this is probably a NooB question (I'm more of a C++ guy), but I'm lost in the java woods and its frameworks forests... I'm trying to look into eclipse RCP development. For that I'm following this well-known tutorial: http://www.vogella.com/tutorials/EclipseRCP/article.html At step 15 I need to add the following dependency packages to import in my bundle. javax.annotation javax.injection The problem is that I cannot select these (they are not in the selection list) I do have javax.el

How to run GAS from Eclipse 4.3

不打扰是莪最后的温柔 提交于 2019-12-08 13:35:22
问题 I installed Eclipse and the Google Plugin according to https://developers.google.com/eclipse/ https://developers.google.com/eclipse/docs/getting_started https://developers.google.com/eclipse/docs/install-eclipse-4.3 I also imported GAS files from my Google Drive. They show up as projects. But I can't find how I can actually RUN and PUBLISH my application. Can anybody tell me how? 回答1: Seems maybe the answer can be obtained from here: Using the Execution API, on the Google App Scripts guide

Eclipse RCP4 close Part on exit / disable persistence of a Part?

别来无恙 提交于 2019-12-08 12:35:45
问题 i'm working on an Eclipse RCP4 project. I have different perspectives showing a set of Parts to choose informations from. After selecting what i want to see, a new Part opens and displays the objet i want to edit / view attibutes of. I can open many parts of the same type. If i close the application, the eclipse framwork persists the position of all opened Parts. If i restart the application all previously opened Parts are open but without informations. -How to prevent Eclipseframwork from

Get TreeViewer in RCP from another Plugin

北城余情 提交于 2019-12-08 12:18:01
问题 I'm working at a Plugin for a Eclipse-RCP. There is another Plugin with a TreeViewer and I want to select an Item from my Plugin. I don't know how to get access it, is this even possible? I think can get the correct view with: IViewReference home; IViewReference [] viewRefs = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getViewReferences(); for (int i = 0; i < viewRefs.length; i++) { if(viewRefs[i].getId()==myid){ home = viewRefs[i]; break; } } But home is not a

“An unexpected error occured (return code -1)” when trying to launch SWTBot test suite with Tycho

走远了吗. 提交于 2019-12-08 11:52:30
问题 We are writing SWTBot tests for our Eclipse RCP application. Our RCP application includes NatTable components and has authorization mechanism to enable/disable perspectives. The test suite is working fine when launching it from Eclipse. Now we are trying to integrate it with Tycho. This is the pom.xml created for running the SWTBot test suite: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

Is it possible to make jFace TreeViewer specific node support bold font for its LabelProvider?

穿精又带淫゛_ 提交于 2019-12-08 09:41:54
问题 I'm developing a tree based on TreeViewer and created myLabelProvider which extends LabelProvider and then use viewer.setLabelProvider(new ViewLabelProvider()); , but all the nodes are still displayed with normal plain style. Code: class ViewLabelProvider extends LabelProvider implements ITableLabelProvider, ITableFontProvider{ public String getText(Object obj) { return obj.toString(); } public Image getImage(Object obj) { return null; } public Font getFont(Object element, int columnIndex) {

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 RCP: how to register an ISourceProviderListener

喜夏-厌秋 提交于 2019-12-08 09:06:33
问题 today i tried the following: I have: a View with a form ( FormView ) a AbstractSourceProvider ( Provider ) to provide changes in FormView to the world a View ( ConsumerView ) that should consume information from Provider it implements ISourceProviderListener FormView updates the Provider , which fires the fireSourceChanged . But how can I register the ConsumerView so that it listens for changes in the Provider ? This answer here on stackoverflow, did not really explain how to do it: How to

Adding context to my view and binding key to this context

梦想与她 提交于 2019-12-08 08:27:07
问题 My question is same as asked here. But the solution provided there not works for me. I have activated the context as said in the answer by greg-449 in createPartControl of my view. IContextService contextService = IContextService)getSite().getService(IContextService.class); contextService.activateContext(myViewContextId); When my view was activated I am getting below warning on eclipse console !MESSAGE A conflict occurred for CTRL + F : Binding( CTRL + F , ParameterizedCommand(Command(

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