Skip to main content

Posts

Showing posts with the label Eclipse

How to upgrade Eclipse Platform itself

For Eclipse 4.2 and above Steps:  you first need to add the new release's repository as follows: Window > Preferences > Install/Update > Available Software Sites Click 'Add' Enter the URL of the new repository (for example, http://download.eclipse.org/releases/luna/  for Luna and Eclipse 4.4) Click 'Ok' Help > Check for Updates If updates are found, proceed through the install wizard and click Finish at the end If upgrading the platform itself, when you are prompted to restart it is strongly recommended to do so. A restart may not be required when updating other features, but always select to restart if you are unsure. Check your Available Software Sites for release-specific update sites that may need updating as well, e.g.  The Eclipse Project Updates  URL changes with each release (typically release-specific sites hold the SDK/Source features and off-cycle hot fixes and are not required)

error while opening eclipse

When i open it, it says: an error has occurred, see ...\workspace\.metadata\.log I got message “Caused by: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element 'xxxx.class' not found.” solution: Delete the file .metadata/.plugins/org.eclipse.core.resources/.snap

FAQ Where is the eclipse workspace local history stored

FAQ Where is the workspace local history stored? Every time you modify a file in Eclipse, a copy of the old contents is kept in the local history. At any time, you can compare or replace a file with any older version from the history. Although this is no replacement for a real code repository, it can help you out when you change or delete a file by accident. Local history also has an advantage that it wasn’t really designed for: The history can also help you out when your workspace has a catastrophic problem or if you get disk errors that corrupt your workspace files. As a last resort, you can manually browse the local history folder to find copies of the files you lost, which is a bit like using Google’s cache to browse Web pages that no longer exist. Each file revision is stored in a separate file with a random file name inside the history folder. The path of the history folder inside your workspace is .metadata/.plugins/org.eclipse.core.resources/.history/ You can use your op...

Eclipse Open Implementation

Finally a much needed feature has been implemented in Eclipse 3.5 Control + Click on any method in an interface or class it shows two options - Open Declaration / Open Implementation. If more than one implemenation exists for a method then it shows Open Hierarchy.

StartExplorer Eclipse Plug-in

http://basti1302.github.io/startexplorer/ In resource views like the Navigator or Package Explorer you can select files and folders. StartExplorer offers the following options here: Show in file manager Start shell here Open files with default application Copy resource path to clipboard Custom Commands All options work with a single selected resource as well as with multiple resources. If multiple resources are selected and an option only works for files (or only for folders) all resources of the wrong type are ignored and the command is executed for the resources it is applicable for. Show in file manager:  (Works for files and folders) Starts a file manager (depending on your system, this might be the Windows Explorer, Finder on Mac OS, Nautilus on Gnome, Konqueror on KDE, Thunar on Xfce or PCMan File Manager on LXDE) for the selected resource. If it is a folder, the file manager is opened for this folder. If it is a file, the file manager is opened for the parent fo...

Reloading class using spring-loaded Jar

As a  java developer using eclipse, every time, when we made the change on the class, annotation or the xml files, eclipse will pop up a message let us decide ‘continue, restart  tomcat and more’. I am kind of appreciate its kindness. However,  most of the time, I have to select ‘restart’. So, I just wish eclipse  or tomcat can help to reload class files and don’t bother me that option. Before, I found jRebel which is perfect for my wishing. It is just hard to push management team pay for that  $365 per license annually. http://zeroturnaround.com/software/jrebel/ So, I need to cater myself and the one I can afford which is $0 a year, and it’s using Apache License. How to config? #1  download jar  from https://github.com/spring-projects/spring-loaded #2 in your eclipse, adding below arguments in the VM arguments. You need to amend the path to the jar file in your machine. -Djavaagent:C:/Dev/lib/springloaded-1.1.2.20130430.jar –...

Eclipse Linked Source - The benefit of using it

In project, the developers might have to worked on different version of the project. For example, they might be working on version 10, and have to patch and test  version 9 or 8 as well. The normal way of could  be create multiple eclipse projects and switch from one to one. The result is not that bad, you just need to  import the version into Eclipse and work on that.  Still, you have to bear with multiple projects in your eclipse and live with it. I personally don't like that very much. With the Linked source function, you just need to edit the path of the source switch  from different version and test them. You don't have to do other things with eclipse any more. So, your Eclipse UI is clean now.

Javascript Validator problem in Eclipse

This is a problem that has happened to me on some Web Dynamic projects. Every time the project is built, I get this error: “Errors occurred during the build. Errors running builder ‘JavaScript Validator’ on project ‘some-project’. java.lang.NullPointerException” At a first sight it seems that a Javascript validator is throwing a NullPointerException, so probably you will try to disable ‘Client-side Javascript’ validation from Project->Properties->Validation… but I tell you that the problem is not there, you must go to Project->Properties->Builders then disable ‘Javascript Validator’.

A tricky of using Eclipse

When using xCode, it is always fun to tap 'ES" button and use the feature of code sense. How about Eclipse? by default, you have to type 'Ctrl+Space‘, which is a very good way to interrupt your coding feeling. As you have to move your left hand back to touch the keys. By using ESC key, you just need to reach your little finger, Done! It's a very nice invention from apple. To do it in Eclipse, you only need to change the hot key to 'ESC' and you then can enjoy this great feature.

Eclipse DemoCamps Juno 2012/Vancouver

This is the second time I attended Eclipse DemoCamps. The last time was in 2009 and hold in UBC. This time, they hold in the Camp in Vancouver Public Library, which is one block from my Company. One of the Sponsor(SpringSource) provided very nice food and drink for the Supper. I enjoyed the Sushi and Pop alot. We had a free communication during the break and i am glad to meet with the people from tasktop and SpringSource(the source of my favor Spring Framework). SpringSource also leaked their maybe next generation IDE, but I just can not leak here :) I also got a very nice Spring OEM USB disk, which is gorgeous for me as I am a Spring Fan. I am happy with this Camp. Go Eclipse Go.

Eclipse exclude folders from search

The quick and dirty way: Right click on a folder, go to properties, and mark a folder as derived. Derived entities are excluded from searching by default. The safe way: Create a working set including only those entities you want searched and search only within that working set

Spring 3.0 ,Axis2 1.6 Integration in Eclipse

You can find this kind of blog from lots of place. The key is: in file /META-INF/services.xml , Should add below bold part to the auto-generated code by Eclipse. <service name="xxxxWebService" > <Description> Please Type your service description here </Description> <parameter name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter> <parameter name="SpringBeanName">  programService      </parameter>  <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" /> <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out"  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers> <parameter name="ServiceClass" locked="false">c...

SVN key bindings not working in Eclipse

It may be due to this breaking change in Eclipse 3.6 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.platform.doc.isv/porting/3.6/incompatibilities.html?view=co#objectContribution EDIT: Looks like it definitely is. See  https://bugs.eclipse.org/bugs/show_bug.cgi?id=309074 . Here's the fix: In the "Customize Perspective" dialog, go to the "Command Groups Availability" tab and check "Team" and "SVN".

Eclipse exclude folders from search

The quick and dirty way: Right click on a folder, go to properties, and mark a folder as derived. Derived entities are excluded from searching by default. The safe way: Create a working set including only those entities you want searched and search only within that working set. See Dave Ray's answer for details on this procedure.