Skip to content

Instantly share code, notes, and snippets.

View jinmingjian's full-sized avatar

Jin Mingjian jinmingjian

View GitHub Profile
"A model processor is a normal injectable POJO class whose processing is triggered by an @Execute-annotated method."
<extension
id="id1"
point="org.eclipse.e4.workbench.model">
<processor
beforefragment="true"
class="eclipse.themes.darker.DarkerThemer">
</processor>
</extension>
@Inject
private void setPrefReferences(
@Preference(nodePath = "org.eclipse.ui.editors") IEclipsePreferences prefUI,
@Preference(nodePath = "org.eclipse.jdt.ui") IEclipsePreferences prefJDT) {
this.prefUI = prefUI;
this.prefJDT = prefJDT;
}
@jinmingjian
jinmingjian / hello-dartium-arch
Created April 13, 2012 15:22
hello dartium for arch - 20120412
current dartium is built against with Ubuntu 32bit. But Arch is often a minium system. And very possibly with a 64 bit kernel. So, some depencies are needed to be resolved.
sudo pacman -S lib32-libxss
sudo pacman -S gcc-multilib
install lib32-nspr here:
https://aur.archlinux.org/packages.php?ID=55204
install lib32-nss here:
https://aur.archlinux.org/packages.php?ID=55203
install lib32-db here: