eclipse-rcp

Eclipse RCP menus & actions: Configure or code?

天涯浪子 提交于 2019-11-29 01:25:19
问题 This is a general question but my current problem revolves around menu handling. In a normal plugin with contributes menu actions you would configure ActionSets etc in the plugin.xml configuration. This is obviously sensible. I am working on a RCP application (actually RAP) and I'm wondering if it's worth the effort to configure everything via plugin.xml. My plugin does not have to interact with an other unknown plugins so, theoretically, I have control. I can add menus and actions

Where does Eclipse store preferences?

天大地大妈咪最大 提交于 2019-11-28 20:51:35
问题 When I change a setting in a window like in the screenshot below, where are those settings actually stored? Bonus: Is there any way, using Java, Eclipse RCP etc, to access the settings programmatically? Thanks! 回答1: Source : Eclipse wiki If you want to keep preferences from one version to the other, export them using File/Export/Preferences. Preferences are stored in various places (this applies to Eclipse 3.1) for each installation (but this may vary for multi-user installations), in files

Can't get eclipse to recognize my plugin

核能气质少年 提交于 2019-11-28 13:42:44
I exported my eclipse plugin through the "Export Wizard" in the manifest and seems like everything went well (no errors). It created a .jar file within a plugin directory in a zip file. I thought putting the jar into my Eclipse plugin directory would install it (after re-launching eclipse) but that didn't work. Eclipse can't see the plugin (the perspective isn't showing up) I tried with Help->Install new software->local archive but it keeps saying "no software found" Can you help me getting my plugin ready to be installed on a fresh Eclipse copy? Ps. my plugin uses other dependencies like EMF

How to remove a Category from Import wizard in Eclipse-RCP?

試著忘記壹切 提交于 2019-11-28 12:47:49
I need to add an import wizard into my eclipse-rcp app. For that I would like to use existing wizard with only my categories. I found couple of examples in the Internet, but they didn't help much. My problem is that I have not only my category, but also the General category. I would like to remove it, if possible. Actually I have found one solution here , but it seems, that it is not working. I've tried to put provided code snippet in WorkbrenchWindowAdvisor and in ActionBarAdvisor and even execute it before my wizard is created, but General category with 5 possible wizards is still there. Any

How to remove views from Windows-->Show View list?

南笙酒味 提交于 2019-11-28 12:37:12
问题 I have view which I am setting permanently on my perspective. This view can not be closed and can not be opened from Windows --> show views I struct to remove View from Windows --> view list. How would I achieve this? I tried your solution it is doing the things but it is also removing the view from perspective. Below are the steps I followed.. I have added the following view in plugin.XML <view allowMultiple="false" category="org.view.ui.IDECategory" class="org.view.ui.BannerInformationView"

How to align image to center of table cell (SWT Table)

做~自己de王妃 提交于 2019-11-28 12:22:30
I develop Eclipse RCP application and got a problem with a Table . We have some data in database in boolean format and users wants to see that field using checkbox . I tried to implement it using Button(SWT.CHECK) as Table-Editor , but it worked too slow :( I tried to use 2 images - checked and unchecked check-boxes, it works, but I can't align them to center, they are aligned to left automatically. I even found how to catch SWT.MeasureItem and SWT.PaintItem events and process them manually by change event.x field, but I got a problem - I can't get what column measuring or painting at the

How to get the project name in eclipse?

寵の児 提交于 2019-11-28 11:59:16
How do I get the name of the current eclipse project? I'm in a GMF view and need the projectname when some submenu of the popup menu ist used. This GMF class has a straightforward answer, if you have access to the ResourcesPlugin name: IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(myBundleName); The generic answer (from a potentially outdated code ) could be like (if you have an editor opened): IEditorPart editorPart = getSite().getWorkbenchWindow().getActivePage().getActiveEditor(); if(editorPart != null) { IFileEditorInput input = (IFileEditorInput)editorPart

How to add Perspective Bar Switcher to pure eclipse 4 rcp application

安稳与你 提交于 2019-11-28 08:56:37
问题 I have created a pure Eclipse e4 rich client platform application application model. I created multiple perspectives using perspective stack, but I am unable to switch other perspective because there is no default perspective bar or switcher icon present in Eclipse e4. How to implement a perspective switcher in pure Eclipse e4? 回答1: EPartService.switchPerspective will do the actual switch, but you will have to design and implement the UI. You could use a ToolBar in the window Trim Bar with

could not find framework in eclipse RCP application

五迷三道 提交于 2019-11-28 06:00:50
问题 I have developed one eclipse RCP application which I am calling from my own Java program. When I run my own Java program from command prompt (windows) it is perfectly working and giving the results. But when I have integrated with the ant build script in eclipse 3.2 it is giving the following problem: !ENTRY org.eclipse.core.launcher 4 0 Dec 02, 2009 10:53:17.608 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.RuntimeException: Could not find framework at org.eclipse.core

How to communicate between views in Eclipse RCP?

十年热恋 提交于 2019-11-28 05:06:11
In Eclipse RCP, I am creating views for the Perspective using IPageLayout.addView(...) But this way I don't have a reference to the view. Therefore I don't know how I can tell ViewA to update ViewB. What's the best pattern to use here? DJ. Besides what VonC has mentioned above, you can also use ISourceProviderListener if the changes you need are not triggered by selection. Have ViewB implements ISourceProviderListener Create an implementation of ISourceProvider and register it in the services Have ViewA get the ISourceProvider and update it to trigger the changes in ViewB Read the