I want to uninstall eclipse plug-in through code. I don't want to use the eclipse provided option.
I want to code the logic behind it in Java. I wrote the code to delete the required plug-in from plug-in dir and feature as well but still the name of the plug-in is getting displayed in Eclipse Uninstall option.
You need org.eclipse.equinox.p2.operations.UninstallOperation
I am not sure about the exact mechanism, but this (2009) code about uninstalling an MTJ module.
(See Difference between eclipse pulsar, mtj, me).
Even if it involves some GUI (Uninstall Wizards), it is calling some p2 code (like a p2 PlannerResolutionOperation), which can give some clue as to how remove a module through p2 in Java code.
Related
I have downloaded .tar.gz install file for C/C++ eclipse IDE.
Can it also be used for java or do I need additional ?
Yes it is, you should install the right plugin - JDT (look at Help->Install new Software)
Base on wiki link:
In computer programming, Eclipse is an integrated development
environment (IDE). It contains a base workspace and an extensible
plug-in system for customizing the environment.
That means Eclipse is just a platform, and you can install any plugins for eclipse. On Eclipse site, you see some packages such as Eclipse CDT Eclipse JDT ... Because they just want you to have a convenient environment for working: just download and run. You can download any versions, and install enough other plugins and they will works well. Here is some tutorials: official link and another nice link
But my recommendation is:
you don't know how "enough" is (as newbie). So the result will be hard because you don't choose enough packages for supporting your languages. And Eclipse Foundation has made it for you.
You shouldn't use many languages in same Eclipse distribution (although you can switch to other workspace easily). Many languages mean many installed packages, and this will slow down your eclipse so much because eclipse must loads more plugins into memory, loads more projects ... This is my experience. So, each language, each eclipse distribution, each workspace. That's a trick.
And answering directly to your question:YES. You can use that version for programming java, but will need to install JDT (Java Development Toolkit) plugin.
Hope this help :)
I just found out that the Processing Eclipse plugin is not under active development, and for that matter uses a rather old version of Eclipse.
Eclipse plugin project for Processing
I tried to to use the latest core.jar lib with the plugin but that didnt do. Is there a way to use develop Processing sketches in Eclipse using the latest Procssing version. Thanks
I warmly recommend the Proclipsing plugin.
Eclipse > Help > Install New Software > Add >
http://proclipsing.googlecode.com/svn/tags/current_releases/proclipsingSite/
There's also a quick video tutorial available:
It allows you to easily create a Processing project (java but links the core.jar and extends a PApplet for you) and also has tools to export a Processing Application or Applet.
All you need to do is point to your Processing install and it will also find your existing libraries.
If you don't want to use any eclipse plugins you can always create a new Java project, add core.jar to the build path and extend PApplet.
Update
Based on your comments, perhaps a half-way method would solve your problem:
Try the PDE X mode in Processing. You get auto-complete, code navigation and renaming.
Update
PDE X is now integrated into the Processing 3.0 pre-release
I'm working with Eclipse Indigo and need to use Junit PDE to test my plugin functionality. I installed Junit, and these two plugins:
http://market.eclipsesource.com/yoxos/node/junit.extensions.eclipse.quick.pde.source.feature.feature.group?mpc=true&mpc_state=
http://market.eclipsesource.com/yoxos/node/junit.extensions.eclipse.quick.pde.feature.feature.group?mpc=true&mpc_state=
But when I tried to run my test case (Run->Run Configurations->JUnit Plug-in Test) I keep obstaining the following error: Required plug-in 'org.eclipse.pde.junit.runtime' could not be found.
If someone could telle what else do I need, or what I'm doing wrong I'll be grateful.
You can check if you have the org.eclipse.pde.junit.runtime installed by going to Help->About Eclipse, Installation Details, then finding the plugin in the Plug-ins tab (column Plug-In Id). If it's not there, you can install it from the Eclipse update site. If it is there, then you have a correupted installation, and it's probably a good idea to restart from scratch with a new installation of the Indigo PDE.
Does it look a bit like Right target platform for running JUnit plugin tests in Eclipse Indigo?
Could you share your .launch-config with us? Does "Validate before launch" give any error? Did you setup the correct JUnit-dependencies in the build-path? As far as I know, junit.runtime refers to JUnit 3.
What surprises me a bit is that you had to install JUnit---if you're using the standard Eclipse JDT, JUnit is included. What did you do exactly?
Is it possible to disable or remove the built-in Java compiler from an Eclipse installation?
I would like to use the XML editing and validation features of Eclipse in an environment that forbids installation of compilers. Can the compiler be disabled/removed without breaking the XML editing and validation functions? How?
Comments in this related question suggest that it can't be done, but I don't need the Java development features of Eclipse (and don't expect them to work without the compiler).
Yes, it is certainly possible to create an Eclipse install without the Java compiler (or JDT to be specific). The real question is whether the XML tools have an indirect dependency on JDT that will pull that back in.
Here is what I would try...
Download Eclipse Platform zip. You can get it from this URL:
http://download.eclipse.org/eclipse/downloads/
Look under the Latest Releases heading. You will want to download something stable. The latest release now is 3.6.1...
http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php
Now find a heading called "Platform Runtime Binary" and download the zip that's right for your platform. Verify that file name is "eclipse-platform-[version]-[platform].zip". If it isn't you've downloaded the wrong thing.
Unzip it as you usually would an Eclipse distro. You now have a runnable Eclipse install, minus any and all interesting IDE functionality. In particular, there is no JDT.
Now it's time to install XML tools. Go to Help->Install New Software->Add and use this URL for the repository: http://download.eclipse.org/releases/helios/
Uncheck "contact all update sites during install to find required software".
Type in XML into the filter field. The feature you want is called "Eclipse XML Editors and Tools". Select it and hit finish.
Assuming it installs correctly, you will want to confirm that it didn't silently pull in JDT. Look at your Eclipse install in the plugins directory. See if you have org.eclipse.jdt.core plugin present. That's where the Java compiler lives.
Good luck and if you run into problems, a good place to ask follow-up questions is on the following forum. There a few people hanging out there that are pretty dedicated to the notion of some day creating an "XML IDE" eclipse distribution, so they should be glad to help you out.
http://www.eclipse.org/forums/index.php?t=thread&frm_id=88&
I would ideally suggest you to move away from eclipse, coz there are a ton of tools (Quanta Plus IDE, Bluefish etc) that provide you with great XML editing and validation feature.
However, this forum might help you -> http://www.eclipsezone.com/eclipse/forums/t40126.html.
You can un-tick Project > Build Automatically for automatic builds not to happen and even remove the buttons with the Run and Debug functionality in order not to press them accidentally.
I'm trying to install the WTP (web platform tools) to my Eclipse installation so I can get the XSL transformations working. The base Eclipse they installed for me here was the plain Java IDE (the splash screen says "Ganymede" if that means anything). Looking at this site, the URL to get the download should be here: http://download.eclipse.org/webtools/updates/ ...But when I give that URL to the Eclipse update manager, I get an error telling me: "No repository found at http://download.eclipse.org/webtools/updates/"
Anyone else had this problem? Anyone know what might be up? Anyone know how to get the xsl-transform plugin installed?
EDIT:
I should have mentioned before that I want to find a way to do this without installing any new instances of Eclipse. This process will eventually be sent to several other developers who already have Eclipse (same version that I'm testing with) and I'd rather just do an in-place upgrade rather than have everyone go and install a new product.
UPDATE:
I found another plugin, Xcarecrows 4 XML which can also do XSL transforms. The interface is ugly and seems more than a little quirky, but it's also a small download, and at least it runs and transforms. Unless I can find an easy way to get WTP working, I'll probably just stick with this.
You can try and install WTP through the main Ganymede update site:
http://download.eclipse.org/releases/ganymede/
Or you can download the latest Java EE bundle and use that instead of your current Eclipse
(do NOT unpack it on top of your current Eclipse, but unpack it elsewhere, to test that second installation: it will come with WTP inside)
Note: check then "How do I start Eclipse" to point to your existing workspace in order to see all your previous project in your new Eclipse installation.
As mentioned in your link, XSL Tools is now part of WTP (for Eclipse 3.5 Galileo), and that may explain why your Eclipse Ganymede (3.4) might not interpret correctly the P2 update site for WTP (P2 being the new Eclipse provisioning mechanism introduced late in the 3.4 release cycle)
For Eclipse 3.5, you have an XSL Tools installation illustrated here:
But Eclipse3.4 is more likely to be compatible with XSLT0.5 and you will need a separate installation, because "XSL Tools" wasn't yet part of WTP.
I am not sure, however, where to find such an installation package within the Eclipse projects.
Use the following update site :
For Juno :
http://download.eclipse.org/webtools/repository/juno/
For Indigo :
http://download.eclipse.org/webtools/repository/indigo/
I'm assuming you don't have any firewall exceptions for Eclipse right?
The site for the WTP update is indeed the one you've listed. Maybe post a screenshot? You've added it specifically to your remote update site list?
Either way try a manual update which should be more reliable and get you up and running for now.
All-In-One Update (Eclipse IDE included):
Go to the Eclipse Download site.
Grab the all-in-one package: Eclipse IDE for Java EE Developers
Install, have a coffee and enjoy. (WTP is included)
Manual Update your existing installation of Eclipse:
Download the applicable WTP source package to your desktop
Shutdown Eclipse
Extract the package to your Eclipse installation directory
Startup Eclipse. (WTP is now available)
Follow the steps in the FAQ at http://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F .
Are you behind a proxy? If so, you need to make sure you configure your proxy settings in Eclipse.
Window > Preferences
General > Network Connections
Ok, I can probably get it working if I do a clean install of Eclipse. I can do that on my machine, but not the other team members' machines (at least not without going through many emails and paper work) so I'm going to say that XCarecrows 4 XML is the solution. It is able to do XSL transformations in Eclipse 3.4 and doesn't require anything else to be installed. Since XSLT is all I need, the plugin will do.
you can use the marketplace:
https://marketplace.eclipse.org/content/eclipse-java-ee-developer-tools-0
like the site says:
Drag to Install!Drag to your running Eclipse Workspace.