eclipse-rcp

Contributing to the Status Bar/Trim in Eclipse RCP

跟風遠走 提交于 2019-11-30 20:48:06
I have a requirement to show a status indicator in the status bar of an Eclipse application. I can't contribute through the ApplicationWindowAdviser (another team owns the core product), but I feel sure that I should be able to contribute through an extension point. Despite much googling, I can't find anything describing how to do this. In the org.eclipse.ui.menuContributions extensions, use "toolbar:org.eclipse.ui.trim.status" as the locationURI. You can contribute commands/custom controls to the status bar. VonC A possible solution to check: You should be able to define a fragment in order

Eclipse v4.5 without delta-pack: How to perform a multiplatform headless PDE build?

喜欢而已 提交于 2019-11-30 20:01:16
Now that eclipse 4.5 is out and the eclipse team decided to not build the so-called "delta-pack" anymore, I don'tknow how to perform a PDE headless build with ant.. Official PDE build documentation here http://help.eclipse.org/mars/index.jsp?nav=%2F4_2_0 states that variable "baseLocation" should point to "the location of an eclipse install containing all the pre-built features and plug-ins that your product requires in features/ and plugins/ subdirectories" With v4.4, it was easy, this variable was pointing to the location of the unzipped delta-pack with all the platform specific stuff But

Selection and hover overrides Cell background color in an SWT Table component

浪子不回头ぞ 提交于 2019-11-30 19:37:18
I'm using SWT (and Eclipse RCP) to render a table. My problem is that if I change the background of a cell (a ViewerCell in fact) I can see that it has the new color. My problem is that if I select a row in my Table or if I hover over the row containing my cell in question then the selection/hover background overrides my cell color. How can I override this? Problem solved with StyledCellLabelProvider. Tell me if you want to see some code. Edit: We use it do display validation errors so ignore the validation stuff here: public class ValidationCellLabelProvider extends StyledCellLabelProvider {

Tycho fails to resolve reference from product to eclipse-feature from a different reactor build

♀尐吖头ヾ 提交于 2019-11-30 19:31:26
问题 I've got two reactor builds: The first one builds some bundles and an according feature. After a successful clean install the feature is in my local Maven repo. Tycho has also generated p2 meta information ... -p2artifacts.xml and ... -p2metadata.xml The second build contains a feature-based product which is referencing the feature built in the first reactor. When trying a clean install Tycho complains about an unresolved feature - the one of the other reactor build. Failed to execute goal

Eclipse Crash “java was started but returned exit code = -805306369”

喜你入骨 提交于 2019-11-30 18:07:53
问题 I'm aware there is an identical post here but none of the proposed solutions have changed anything and they are quite old (problems to do with Java6) and seem to be referring to a bug to do with Eclipse. My problem is when I am developing in Eclipse for RCP and RAP Developers; either making changes to java files or changing dependencies etc, Eclipse randomly hangs and then freezes. I have to force close eclipse and I get this message Things I have tried so far: Restarted eclipse and PC Added

Eclipse RCP with project dependency

☆樱花仙子☆ 提交于 2019-11-30 16:03:40
I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call. I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project. The code compiles (the plug-in does some stuff with the Java Project / library code). When I run the plug-in, I get a ClassNotFoundException: java.lang.ClassNotFoundException: com.mycode.ArgSet at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494) Anyone know how to configure the plug-in properly? Convert your library project

How do I stop an Eclipse Editor from closing in an RCP

筅森魡賤 提交于 2019-11-30 15:44:57
I am working on an Eclipse based RCP. We have a need to prevent one of the opened editors from being closed by the user. The desired behavior is: the user clicks the X in the editor window or "CTRL+W" a dialog pops up saying: "If you close this editor, your activity will stop. Do you want to?" if they click yes, it closes, if no, it stays open. Oh yeah, and is this even possible? Thanks, gk VonC You could use a org.eclipse.ui.ISaveablePart2 , more specifically the method promptToSaveOnClose() . However, as said in this thread , it will only be shown if the editor is dirty at the time it is

Eclipse RCP: Right aligned search field in toolbar

倾然丶 夕夏残阳落幕 提交于 2019-11-30 14:51:54
I would like to have a right aligned search field in the toolbar of an Eclipse RCP application. I already created the text field as ControlContribution and the respective search action in the ActionBarAdvisor class: protected void fillCoolBar(ICoolBarManager coolBar) { IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT); //... toolbar.add(new ControlContribution("searchText") { //... This works and I have the search field in the toolbar. But how can I align the search text (or the toolbar with the search text) on the right side? Thanks, Michael If you mean positioning search

Eclipse RCP - ILazyTreeContentProvider implementation is unexpectedly eager

社会主义新天地 提交于 2019-11-30 14:11:37
I am developing an Eclipse RCP application, and am trying to use a ILazyTreeContentProvider implementation in order to show only the visible items at a certain time. The code: Inside the class extending ViewPart: public void createPartControl(Composite parent) { viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.VIRTUAL); drillDownAdapter = new DrillDownAdapter(viewer); viewer.setContentProvider(new ViewContentProvider()); viewer.setLabelProvider(new ViewLabelProvider()); //viewer.setSorter(new NameSorter()); viewer.setInput(getViewSite()); // Create the help context

Is it currently possible to build Eclipse Plugins by Maven AND have nice IDE Integration?

て烟熏妆下的殇ゞ 提交于 2019-11-30 11:33:19
问题 I'm currently evaluating maven to improve our build process. The building and creating of normal jar files works so far, although I'm not entirely happy with the Maven IDE. I'm now at that point, where all libs I need for our project are built, and I'm moving on to the Eclipse RCP projects. And now I'm not sure how to go on. There are some plugins I need to build first, before moving on to the actual RCP part. Therefore I have actually 3 problems. I want to build those plugins, the only real