Help -> Install New Software -> select Subclipse repository and check all the available options
The version I worked with were: PDT (Helios SR1) and Subclipse 1.6.15
Help -> Install New Software -> select Subclipse repository and check all the available options
package myPackage {
import required.imports.*;
[SWF(backgroundColor=0xEEEADB,frameRate="5")]
public class MyClass {
..
}
}
Account -> Account Settings -> Settings -> Username
<menucontribution locationURI="menu:sourceMenuId?before=sourceBegin"> <command commandId="org.eclipse.php.ui.edit.text.add.description" id="AddDescription" mnemonic="%command.mnemonic" style="push"> <visiblewhen checkEnabled="false"> <reference definitionId="org.eclipse.php.ui.phpContentType.definition" /> </visibleWhen> </command> </menuContribution>VisibleWhen among others allow to specify reference property which references to definition regristered with org.eclipse.core.expressions.definitions extension point.
<extension point="org.eclipse.core.expressions.definitions"> <definition id="org.eclipse.php.ui.phpContentType.definition"> <with variable="activeContexts"> <iterate operator="or"> <equals value="org.eclipse.php.core.phpsource" /> </iterate> </with> </definition> </extension>Other option can be specifying with property.
<visiblewhen> <with variable="selection"> <iterate> <or> <instanceof value="o.e.editors.OutlineContentProvider$Sources"> </instanceof> <instanceof value="o.e.editors.OutlineContentProvider$Targets"> </instanceof> </or> </iterate> </with> </visibleWhen>or:
<with variable="selection">
<iterate>
<instanceof
value="c.c.model.VisualizableBlock">
</instanceof>
</iterate>
</with>
There are couple of issues when trying to use SWT with application using Maven for building and deploying. The most fundamental is that you have to deliver separate application per architecture and windowing system. Another one is the fact there are no up-to-date releases of SWT in common Maven repositories. And finally when trying one platform independent binary all handles platforms must be include particular SWT implementations, but here another issue appears: how to put appropriate SWT on class path.
First lets populate our local maven repository with SWT libraries. The first step is to obtain desirable swt implementation for os/ws/arch triples. Lets assume that for needs of this example we limit supported triples to linux/gtk/x86_64, win32/win32/x86, win32/win32/x86_64.
Best can be use p2 director to grab libraries. There is not easy way for importing all swt implementations into one location therefore here you are somewhat weird workaround - each impl needs to be grabbed into separate location.
director/director -consolelog -r http://download.eclipse.org/releases/helios -d SWT_GTK -i org.eclipse.swt.gtk.linux.x86 director/director -consolelog -r http://download.eclipse.org/releases/helios -d SWT_GTK64 -i org.eclipse.swt.gtk.linux.x86_64 director/director -consolelog -r http://download.eclipse.org/releases/helios -d SWT_WIN -i org.eclipse.swt.win32.win32.x86 -p2.os win32 -p2.ws win32 -p2.arch x86 director/director -consolelog -r http://download.eclipse.org/releases/helios -d SWT_WIN64 -i org.eclipse.swt.win32.win32.x86_64 -p2.os win32 -p2.ws win32 -p2.arch x86_64Note that specifying profile details is needed for non-native implementations.
/tmp/SWTLIBS$ find SWT* -name "org.eclipse.swt.*.jar" | xargs -I{} cp {} SWTLIBS/plugins/
/tmp/SWTLIBS$ ls SWTLIBS/plugins
org.eclipse.swt.gtk.linux.x86_3.6.0.v3650b.jar org.eclipse.swt.win32.win32.x86_3.6.0.v3650b.jar
org.eclipse.swt.gtk.linux.x86_64_3.6.0.v3650b.jar org.eclipse.swt.win32.win32.x86_64_3.6.0.v3650b.jar
mvn eclipse:to-maven -DdeployTo=eclipse.org::default::file:///home/krma/.m2/repository -DeclipseDir=. -DstripQualifier=true
<groupid>org.eclipse.swt.gtk.linux</groupId> <artifactid>x86_64</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupid>org.eclipse.swt.win32.win32</groupId> <artifactid>x86_64</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupid>org.eclipse.swt.win32.win32</groupId> <artifactid>x86</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupid>org.eclipse.swt.win32.win32</groupId> <artifactid>x86_64</artifactId> <version>3.6.0</version> </dependency>
mvn install:install-file -Dfile=org.eclipse.swt.gtk.linux.x86_3.6.0.v3650b.jar -DgroupId=org.eclipse -DartifactId=swt.gtk.linux.x86 -Dversion=3.6.0 -Dpackaging=jar -DgeneratePom=true -Dmaven.repo.local=/path/to/mvnrepo
<dependency> <groupid>org.eclipse</groupId> <artifactid>swt.gtk.linux.x86</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupid>org.eclipse</groupId> <artifactid>swt.gtk.win32.win32</artifactId> <version>3.6.0</version> </dependency>
<virtualHost *:80>
ServerName trac.example.com
<location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/www/trac
PythonOption TracUriRoot /
</location>
<location "/login">
AuthType Basic
AuthName "trac"
AuthUserFile /var/www/trac/auth-file
Require valid-user
</location>
</virtualHost>
<virtualhost *:80 > ServerName trac.example.com <location /> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnv /var/www/trac PythonOption TracUriRoot / </location> <location "/login" > AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPBindDN "DOMAIN\\BINDUSER" AuthLDAPBindPassword PASSWORD AuthLDAPUrl LDAPUTL AuthName "Authorization required" Require valid-user </location> </VirtualHost>
ldapsearch -h HOST -b "SEARCHBASE" -D "DOMAIN\\BINDUSER" -s sub -x -w PASSWORD "(givenName=K*)"