Eclipse RCP App Breaks Restart Behavior - eclipse-rcp

My RCP app doesn't restart the workbench when I select Restart or Switch Workspace. I thought that maybe something was wrong in my RCP Application code, but then I made an installable feature with my plug-ins, minus the application plug-in, and that breaks the restart behavior of the eclipse IDE into which I install my feature.
So something in my code is breaking the capability to restart the workbench, and I can't figure out what that can be. I'm certainly not setting the system property "eclipse.exitcode", which is apparently what IDEApplication looks for when the workbench exits. I even tried explicitly setting this property value to 24, which seems to be the value that eclipse uses to signal a workbench restart. Still the IDE refuses to restart after I've installed my plug-ins.
I know this is an open-ended question, but I've looked through all my code and I just don't see anything I'm doing that could possibly break the restart behavior. Does anyone have any ideas as to what I might look for.

Related

Eclipse is not starting on macOs

I have an issue with Eclipse,
Eclipse macOS High Sierra version 10.13.6
I keep getting JVM terminated exit code=1
I have tried too many times but the response is same after launching it.
I have downloaded it from Stanford's SEE section and still unable to launch. The error message is here.
I downloaded your course material, and it does indeed contain a really old version of Eclipse - as greg-449 pointed out, there's no way this is going to work on macOS High Sierra. Really surprised instructions from 2007 haven't been updated, but that's another matter.
It would seem that your course just requires Java, so you can use the automated Installer that you find on this page: https://www.eclipse.org/downloads/ and then choose the Eclipse IDE for Java Developers in the wizard. Or you can download that package directly here, and install it.
Looking at your course material, it does appear that they have a custom plugin that makes regular Eclipse actions easier to execute, by adding a number of buttons to the Eclipse toolbar, you won't find these in a vanilla install. If you can find that plugin, you could try to install it into this version of Eclipse too, it might still work. If not, you can perform those steps manually - this video will help, as he shows you how to import and run these projects without those plugins, it's not hard!
It's not possible to say if the plugin adds functionality beyond what is normally possible in general Eclipse distributions, but I doubt it does. Good luck!

How to profile Eclipse plug-in startup time?

I'm trying to profile an Eclipse plugin, specifically it's start-up time. I'm not terribly familiar with Eclipse nor its profiling tools, and it seems that plugins are somewhat of a special case: I tried using JVM Monitor, but it cannot seem to detect the JVM running on localhost (even after I made sure to run the JDK instead of JRE and other things suggested in the FAQ). I then found a guide for profiling plugins with TPTP, but as I understood TPTP is no longer maintained and isn't even available for the latest Eclipse release, Juno.
Any tools, preferably simple to setup, to let me profile the startup time of my plugin?
I like using YourKit. They have very good Eclipse integration. It is not free, but well worth the cost if you will be doing lots of profiling.
Eclipse has been OSGi-based since 3.0.
Just use an SS console command in the OSGi console view to check the bundle(your plugin) status.
See more here.

Deleting every eclipse plugin in Galileo

My eclipse runs horribly slow because I have thousands of plugins installed on it. I spoke with another friend who uses eclipse but he has none. I feel like none of these are necessary and I didn't even install so many. I have thousands of plugins and I tried reinstaling eclipse but I need to find a way to remove every single eclipse plugin.
Attempting to delete a plugin manually takes up to 5 minutes per plugin, so it could take me months or years before actually deleting all of these by hand.
Is there a feature in eclipse to delete all the plugins? Also I'm using WINDOWS XP
First, you need to understand that virtually everything in Eclipse is a plugin. Eclipse has a very small core runtime (Equinox) that loads all features from plugins. You can't just "delete every plugin" as doing so would leave you with nothing.
Also, just because a plugin is installed does not mean that it is always loaded or taking up resources. Eclipse uses a "lazy loading" architecture that will only load a plugin when some feature that it provides is actually invoked. Some plugins are probably written poorly in such a way that they are loaded too aggressively, but that would be the rare exception. So, in general, having lots of plugins is not a problem for performance.
If you do have a plugin that you want to remove, you can not just delete it from the plugins folder - as you've seen that will screw up your Eclipse installation. Don't do that.
One way to manage the features that you have installed, including installing ones that are able to be uninstalled, is to open the About dialog, then click the Installation Details button. There you'll be presented with a list of features that have been installed; you can select a feature and if it's possible to uninstall it the Uninstall... button will be enabled.
Often it's one bad third-party plugin/feature (not something from eclipse.org) that causes an Eclipse installation to have problems; try to find what it might be by process of elimination (uninstall all third-party plugins that you might have installed since your Eclipse was fresh).
Finally, as a last resort, it is trivial to remove Eclipse completely (just delete it from your file system) and re-install it fresh.
Having said all that, performance problems are usually due to an underpowered machine. What kind of processort do you have? How much RAM does your system have available after Windows boots up? Have you specified memory settings in eclipse.ini?

GWT plugin update problem - How to delete Eclipse Helios 3.6 - help

I tried to delete the Eclipse Helios 3.6 with GWT plugins manually as I usually did with other eclipse IDEs but now I faced a strange problem.
A warning window opens which says...
"Cannot delete resources file. Access denied"
So it makes unable to proceed the deleting pressing OK :(
So how to delete Eclipse Helios 3.6?
Any useful comments are appreciated
Unlocker can help see what program has a particular file locked, like joeslice's link, and it can also force that program to relinquish the file handle (which of course could cause bad things to happen in said program so make sure you know what you're doing).
try to start your computer in safe mode:
when you turn on your computer, push F8(5 times to be sure that it'll work) and after choose safe mode.
You'll be able to delete your files
Process Explorer can help see what's got a particular file locked.
I want to share my problem and my final solution...
The problem was because the Eclipse Helios 3.6 internal GWT plugin update error (so the UI Designer doesn't work).
I was trying to update gwt plugins and that made gwt never compile...
So I had to delete it and reinstall.
The reinstallation was OK but since then I tried to download gwt plugin for many times and had the same UI editor error... I think there is a bug in included gwt plugin GWT UI core and window builder.
If someone faces the same problem please read next...
To install GWT for Eclipse Helios 3.6 you should
A) Install GWT UI Designer first from http://dl.google.com/eclipse/inst/d2gwt/latest/3.6
B) Only then Install GWT SDK and gwt plugin (to skip the bugged plugin part to be installed)
otherwise if you start from this link http://dl.google.com/eclipse/plugin/3.6, it will install a bugged GWT window builder and core (the newest one) and won't allow you to install the correct one because "the newest is already installed" so you'll have to delete and reinstall etc... That's a real headache %) So to avoid that follow point A then B.
I hope that will save ones day :)
Good luck

eclipse plugins not visible

I have recently installed gwt-plugin to my eclipse. But plugins are are not visible, even if I try to install it again, eclipse is not allowing me to install, saying its already installed.I even I ran eclipse as administrator(I am using it in windows 7) and also with clean option, nothing worked out.
And one more thing, After GWT installation, it gave two options - 'Restart' and 'Apply changes'.I have chosen 'Restart'. (Does it matter?)
Any help is appreciated..
Maybe you installed gwt-plugin correctly, but you are missing one of its dependencies? Take a look at this thread. One of the answers discusses using the OSGI console to locate missing dependencies.