eclipse-rcp

“Install new software error” with eclipse indigo/juno RCP

帅比萌擦擦* 提交于 2019-12-11 03:42:12
问题 I tried to update software in eclipse RCP, but I got this error. The Error log says that some of the feature.xml files are missing. I opened one of the error log to find this. And actually, some file names in the features directory are not xml, but xml_. I tried the juno and indigo eclipse RCP, but I have the same error message, and same xml_ files. I use eclipse on Mac OS X. What's wrong? How can I make it to update software in eclipse? 回答1: The problem was from extracting downloaded tar

How do I get copyright information to show up in my Eclipse RCP application's “About” dialog

僤鯓⒐⒋嵵緔 提交于 2019-12-11 03:24:55
问题 I'm using Eclipse's IWorkbenchAction that shows the Eclipse About dialog. When I use the action in my RCP application the About dialog shows up successfully. But, when I think proceed to click the "Installation Details" button, I get a dialog with tabs. I navigate to the "Installed Software" tab, and see my RCP product's name along with its version, and its ID. I select this item in the table, then proceed to click the "Properties" button. Once I'm here, I see a dialog that looks similar to

How to implement a property page to an eclipse project

女生的网名这么多〃 提交于 2019-12-11 03:11:55
问题 Here is the deal. I create a project in eclipse rcp programmatically. Then i add some persistant properties to it. Now i want to right click on the project in the project explorer view and then click on the properties tab. There should be my property page. Here is what i have: <extension point="org.eclipse.ui.propertyPages"> <page adaptable="false" class="bg.bulsi.rcp.first.properties.SamplePropertyPage" id="bg.bulsi.rcp.first.properties.samplePropertyPage" name="Sample Page" nameFilter="*.*"

How to find a command ID for a key binding in Eclipse?

拜拜、爱过 提交于 2019-12-11 03:08:30
问题 In Eclipse (3.x for that matter) you can use the Plug-in Spy and Menu Selection Spy to find out information about UI elements which are accessible via the mouse. I am now facing the problem that I want to find out about the command (I need the command id) which is triggered by a certain key binding, because I want to create a menu item for this command in my custom UI (view/editor)). In my concrete case I am looking for the Expand All children command which is triggered by Numpad+Plus in a

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();

Eclipse e4 tool Control in trimbars

你说的曾经没有我的故事 提交于 2019-12-11 03:02:05
问题 I want to create combobox in trimbars. So I started with adding a text box. I created TrimBars->WindowTrim->Toolbar->Tool Control I mentioned Class URI also public class SearchToolItem { @PostConstruct public void createControls(Composite parent) { parent.setLayout(new GridLayout()); final Composite comp = new Composite(parent, SWT.NONE); comp.setLayout(new GridLayout()); Text text = new Text(comp, SWT.BORDER); text.setMessage("Search"); text.setToolTipText("search"); System.out.println("i am

How to align two composites in a parent composite without using widthHint and heightHint

℡╲_俬逩灬. 提交于 2019-12-11 02:43:14
问题 I want two composites (one below the other) inside a parent component. This is how my code looks like: Composite composite = (Composite) super.createDialogArea(parent); Composite rowComposite = new Composite(composite, SWT.NONE); rowComposite.setLayout(new GridLayout(2, false)); GridData gd1 = new GridData(SWT.LEFT, SWT.CENTER, false, false); gd1.widthHint = 760; gd1.heightHint = 240; rowComposite.setLayoutData(gd1); Composite columnComposite = new Composite(composite, SWT.NONE);

How to select an element in the ListViewer

↘锁芯ラ 提交于 2019-12-11 02:23:44
问题 I'm trying to find and select an element in the ListViewer , I compare a string with every element in the ListViewer . I can get the index of the element but I don't know how to select it in the Listviewer . String pattern = elementText.gettext(); String[] listViewerValues = mListViewer.getList().getItems(); List<String> valuesList = Arrays.asList(listViewerValues); int index = -1; for(int i=0; i < valuesList.size(); i++) { valuesList.set(i, valuesList.get(i).toLowerCase()); } index =

Add Toolbar in eclipse rcp application

拜拜、爱过 提交于 2019-12-11 02:11:33
问题 I want to add toolbar in eclipse rcp application, i tried to write the code in fillCoolBar function in ActionBarAdvisor.java and also using extensions. But the extensions provided by other plugins is not aligned properly. My guess is that the names of various toolbarManager inside the toolbar is not proper. Anyone can tell me how to add all the icons so that the extra icons added by other plugins and added by me are aligned properly? Every time i restart or open a new work-space the icons

SWT Load Font in a RCP App

有些话、适合烂在心里 提交于 2019-12-11 02:04:38
问题 Here's what I want to do: Display.getCurrent().loadFont("fonts/helveticaNeueBold_iOS7.ttf") Works in a tester ( i.e. class with entry point ). Doesn't work in an RCP app. How do the loading mechanisms differ? Should I get the ttf file, then extract the path to it? 回答1: Eclipse bundles have different paths (something like "bundleentry://bundle_number/path_to_your_file"). You might want to use FileLocator to load files properly. For example: Bundle bundle = Activator.getDefault().getBundle();