eclipse-rcp

Eclispe does not show progress bar of user threads

家住魔仙堡 提交于 2019-12-06 16:57:04
I created some user jobs on start-up of eclipse, but after launching the workbench I am not able to see the progress bar. Is there anywhere I have to mention these threads other than making them user threads? protected IStatus run(IProgressMonitor monitor) { monitor.beginTask("Download", -1); for (ProxyBean network : ProxyBean.get()) { // do something } monitor.done(); return Status.OK_STATUS; } I initialize it in this way: job = new MyJob(); job.setUser(true); job.schedule();` Check whether you are applying it on correct shell, or the execution time of job is too low so that you can not see

Eclipse RCP 4 draggable Toolbar

半世苍凉 提交于 2019-12-06 16:49:20
Is it possible to create a pure Eclipse RCP 4 application, that uses the nice toolbar from the Eclipse IDE with Drag and Drop functionality? Starting with a fresh installation of Eclipse for RCP 4.5.1 , I created a pure e4 application with sample content using the wizrad. It contains two toolbars, but D&D functionality is missing. So what to do next? There was Drag and Drop functionality in Eclipse 3.x (locking / unlocking toolbar) But with Eclipse 4.x its not working. You can see bug : https://bugs.eclipse.org/bugs/show_bug.cgi?id=409633 There is change in CoolBarToTrimManager.java which is

Cannot connect MySQL in Eclipse RCP IDE

风格不统一 提交于 2019-12-06 15:50:06
All, I am getting the com.mysql.jdbc.Driver exception when trying to load the Driver class using Class.forName("com.mysql.jdbc.Driver") . I have written a custom Eclipse plugin and wanted to access the database in my custom Eclipse plugin. I have tried following 2 options, both obviously failed: 1 > Adding the mysql connection JAR file to the Eclipse plugin build path 2 > Adding the connector JAR file as library and adding to the plugin's runtime classpath Can anyone please help me out on this? Here is the log: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at org.eclipse.osgi

How do I easily query a running Eclipse for its installed Features?

我与影子孤独终老i 提交于 2019-12-06 14:58:29
I'm building an Eclipse Feature that has a requirement that amounts to this... The Feature must be able to be uninstalled automatically if the user has his license revoked. If you want more background information about that, Here is another question that I've asked on this topic. Thanks to the answers on that question, I've been trying to learn the Eclipse p2 director api. I've found some classes that look useful here I've been trying to instantiate one of these classes in my code, but with no luck yet. I've been reading the help documentation, and I'm getting kind of lost in it all. I'm stuck

Eclipse restart using 'PlatformUI.getWorkbench().restart()' is not restarting the RCP product

不想你离开。 提交于 2019-12-06 14:42:55
Upon invoking the method PlatformUI.getWorkbench().restart() the application is simply closing and refusing to restart the product. Your IApplication needs to check the return code from PlatformUI.createAndRunWorkbench in the start method: The simplest is: int returnCode = PlatformUI.createAndRunWorkbench(display, advisor); if (returnCode == PlatformUI.RETURN_RESTART) return IApplication.EXIT_RESTART; return IApplication.EXIT_OK; More recent applications seem to use this: private static final String SYSTEM_PROPERTY_EXIT_CODE = "eclipse.exitcode"; int returnCode = PlatformUI

How do I stop an Eclipse Feature from starting after it's been installed

ⅰ亾dé卋堺 提交于 2019-12-06 13:46:45
I'm developing several Eclipse Features (groups of Eclipse plugins that form an Installable Unit), and I've been given the requirement that each Feature must have the ability to be deactivated, or in other words, made to not start when Eclipse is started. I have a plugin that makes contributions to the UI (Perspective, Wizards, Menu items, etc), and I've tried to just intercept the call to the start method of the plugin like so... Please note that the class PluginVerification is running in another plugin that will be delivered with the installation of the Feature that contains the plugins that

Background color of widgets in JFace PopupDialog

元气小坏坏 提交于 2019-12-06 13:43:25
问题 I want to use the JFace PopupDialog as lightweight dialog for user input. But I have some problems with the background color of text widgets. As you can see below in 1, a SWT.MULTI text widget has no background and border, a SWT.SINGLE text widget has no background. I tried to override the background color with: Text comment = new Text(composite, SWT.MULTI|SWT.BORDER); comment.setFocus(); comment.setBackground(new Color(Display.getDefault(), new RGB(000, 000, 000))); // method of PopupDialog

Tycho: Categorize p2 metadata

大憨熊 提交于 2019-12-06 11:53:09
Iam trying to generate a categorized p2 repository with Tycho. There are basically three steps to make (compare Eclipse documentation ): Download Bundles Trigger org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher Trigger org.eclipse.equinox.p2.publisher.CategoryPublisher which i configured in a maven pom-file. Steps 1 and 2 are doing well whereas step 3 fails with: Status ERROR: this code=0 publishing result null children=[Status ERROR: org.eclipse.equinox.p2.updatesite code=0 Error generating category xml action. org.eclipse.equinox.p2.core.ProvisionException: Error reading update

How to add files to the root of an Eclipse RCP app?

一笑奈何 提交于 2019-12-06 11:42:50
I would like to know if is possible(and how) to add files to the root of an Eclipse RCP app. I have an AppManual.pdf and i would like to distribute in the root of the app. Check out http://help.eclipse.org/galileo/topic/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm 来源: https://stackoverflow.com/questions/11366399/how-to-add-files-to-the-root-of-an-eclipse-rcp-app

How to programatically close a view in eclipse application?

不想你离开。 提交于 2019-12-06 11:40:42
问题 I want to programatically close a view in eclipse application. The view is a introPart with id: myProduct.intro I tried: IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); page.hideView(page.findView("myProduct.intro")); But it did not work, any other way to do this or what am i doing wrong? 回答1: Try: IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager().getIntro(); PlatformUI.getWorkbench().getIntroManager().closeIntro(introPart); 回答2: