Category Archives: Eclipse

Export Eclipse Plugin, Assert Errors

Here is my scenario: I import Eclipse RSE( Remote System Explorer) plug-ins into my workspace and I want to build and test it myself. There are no errors in the workspace and running and debugging is all OK. And I … Continue reading

Posted in Bug Fix, Eclipse, Tricks | Tagged , | 3 Comments

Eclipse Freezing on Start

After an incorrect shutdown, Eclipse can not start, freezing on splash window. I opened file workspace\.metadata\.log there was a line saying: The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes After taking many tries, … Continue reading

Posted in Bug Fix, Eclipse | 9 Comments

Subversive Sucks

There are many bugs in Subversive besides the known bug “Can not compare with old deleted repository resources“. And yesterday, one of my colleague used Subversive’s “Check out as” to a different location resulted in deleting all her one-week modifications. … Continue reading

Posted in Bug Fix, Eclipse, Subversive | 1 Comment

Get Projects List in Eclipse Workbench

http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg13300.html Add org.eclipse.core.resources in the Require-Bundle section in your plugin MANIFEST.MF file and invoke code: ResourcesPlugin.getWorkspace().getRoot().getProjects()

Posted in Eclipse, Java, Tricks | Leave a comment

Clean Eclipse Plugins’ Build Path Errors

Sometimes, Eclipse may have errors in calculating build paths, which may result in that some projects are marked as red cross error icons and further building is interrupted. The common error message for this would be “Project … is missing … Continue reading

Posted in Eclipse, Tricks | Leave a comment

Enablement Expression and Property Tester

Source: http://www.eclipse.org/webtools/wst/components/server/runOnServer.html Enablement Expression Performance Enablement expressions allow you to create arbitrarily complex expressions using ands, ors, nots, and Java code. For performance reasons, it’s always better to use the expression support instead of using Java code, which is slower … Continue reading

Posted in Eclipse, Tricks | Leave a comment

RSE Sucks

I do think that Remote System Explorer (RSE)? sucks for its plugin management. Too many small size (about 10k – 20k) plugins, about 42 plugins (about 30 core plugins), while all Eclipse SDK plugins number is 141.

Posted in Eclipse, Project Management | Leave a comment

Snippet: Open Editor a Local File in Eclipse

Here is codes to open editor a local file in Eclipse: IFileStore fileStore = EFS.getLocalFileSystem() .getStore(new Path(file.getParent())); fileStore= fileStore.getChild(file.getName()); if (!fileStore.fetchInfo().isDirectory() && fileStore.fetchInfo().exists()) { IWorkbenchWindow fWindow = Java2ScriptUIPlugin.getDefault() .getWorkbench().getActiveWorkbenchWindow(); IWorkbenchPage page = fWindow.getActivePage(); try { IDE.openEditorOnFileStore(page, fileStore); } catch (PartInitException … Continue reading

Posted in Eclipse, Snippet | Leave a comment