rcp

Updating Eclipse JFace Treeviewer when model changes?

ぃ、小莉子 提交于 2019-12-11 06:16:15
问题 I am developing a RCP application with a TreeViewer . While there are good number of articles to explain how to add editing support to the Viewer (and how changes in view are updated in the model), I don't find much for updating the Treeview when the underlaying model changes. my question in short: TreeView ----> Model updation ------ there are lots of examples Model ----> Treeview updation ----- this is my question Edit: This is what I tried and it works. comments please viewer.getTree()

Gap between search menu and its previous menu on addition of search plugin

会有一股神秘感。 提交于 2019-12-11 03:06:27
问题 I added the Search Plugin to my RCP application. On addition of this plugin it adds the search menu in main menu bar. I observed that there is some pixels gap between search menu and its previous menu. Please see the image. Does anyone know how this is coming and how I can remove it? 回答1: I fixed this issue by modifying postWindowCreate method of ApplicationWorkbenchWindowAdvisor class of RCP application. IWorkbenchPage page = this.getWindowConfigurer().getWindow().getActivePage();

How to implement IWindowCloseHandler in Eclipse (e4) RCP?

喜夏-厌秋 提交于 2019-12-11 01:56:35
问题 How can I implement IWindowCloseHandler in order to display a MessageDialog before closing the application ? Here is my code : EDIT public class LifeCycle { @PostContextCreate public void postContextCreate() { // TODO start up code here System.out.println("open"); } @ProcessAdditions void processAdditions(MApplication app, EModelService modelService) { WindowCloseHandler closeHandler=new WindowCloseHandler(); MWindow window = (MWindow)modelService.find("uploadcenter.source.trimmedwindow.0",

Running several instances of Netbeans RCP application simultaneously

北慕城南 提交于 2019-12-11 01:54:46
问题 We have an application based on the netbeans rich client platform. Default behaviour is that only one instance of the software can run, and this can be overridden by specifying a different user-dir as argument when starting the application. Are there any alternatives to this? Our clients rely on being able to run several instances of the application. (We would prefer if we didnt have to implement our own launcher that examines netbeans userdir for locks to pass alternative userdirs) Is there

Eclipse RCP - Stacking a view with the editor area?

徘徊边缘 提交于 2019-12-11 01:52:50
问题 Is it possible, when developing an Eclipse RCP Application, to stack a view with the editor area? Like this? I have multiple lists/tables and I want to create a kind of preview composite. When an Item on a list is selected by single mouse click, I want my preview composite to show the data of the item. If the user double clicks an item, I want to open an editor in the stack behind the preview composite. Is there anyway to achieve this? Thanks. 回答1: No, there isn't. You could open a viewpart

“Eclipse-BundleShape: dir” header is not working and still the plugins are exported as JAR's

不羁岁月 提交于 2019-12-11 01:32:51
问题 I'm having Eclipse Indigo (3.7) and I have the BundleShape header being set in the MANIFEST.MF of my plugin. Eclipse-BundleShape: dir If I export the product it is still exporting the plugin as JAR and not as a directory. NOTE : My project is a Plugin based project. Anything I'm missing ?? Suggestions are welcomed..! 回答1: Is your product feature based? If so, you can set the "Unpack the plug-in archive after the installation" option in your feature. open your feature.xml file switch to the

Using customBuildCallbacks.xml in an Eclipse RCP headless build

我与影子孤独终老i 提交于 2019-12-10 22:42:39
问题 I am trying to add some custom build steps to my headless build process for an Eclipse RCP application. I understand that the recommended way is to provide a customBuildCallbacks.xml file on the plug-in directory, and adding a link to it in the build.properties file. # This property sets the location of the customb Build callback customBuildCallbacks = customBuildCallbacks.xml However, during the build process, this step is ignored. Is there some set-up step I might be missing? 回答1: Actually,

Make Eclipse RCP Intro part of a perspective

大城市里の小女人 提交于 2019-12-10 19:46:33
问题 For a product we are creating, we want to be able to have the welcome screen display in a perspective (which we are calling "Start Here"). The intro is the only thing that needs to be in that perspective, however, when I try to add our intro view to the perspective, it says that the view already exists in the layout. I have tried programmatically closing the intro, messing around with standby mode etc but I cant get it working. The intro is an XHTML one and we use internal Eclipse "action

The type org.eclipse.core.runtime.IConfigurationElement cannot be resolved

谁说我不能喝 提交于 2019-12-10 17:48:57
问题 When building my Eclipse RCP Application, I get the following error. The type org.eclipse.core.runtime.IConfigurationElement cannot be resolved. It is indirectly referenced from required .class files. I have included the org.eclipse.core.runtime library in my dependencies, so I am not sure what the problem is. 回答1: As mentioned in this thread Don't include the jar files manually [in the plugin.xml file). Use the dependencies tab in your plugin.xml editor to manage the dependencies on the

RCP Command with object argument

自闭症网瘾萝莉.ら 提交于 2019-12-10 13:24:43
问题 I want to call an RCP command in code, like this: IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); IHandlerService handlerService = (IHandlerService)window.getService(IHandlerService.class); handlerService.executeCommand(cmdID, null); With considerably more code, I can call the command with a string argument by assembling a Parameterization object then building a ParameterizedCommand and so forth but Paramaterization only allows for string values, and can't be