Bug 88724 Provide 'since' javadoc in snippets
It would be a useful additional information in some snippets if there were an @since javadoc tag that tells from which version on the snippet will work. For instance, snippet 175 works only from Eclipse 3.1 on, since it uses the GridData.exclude field which was introduced in 3.1
examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet171.java
String version;
}
static class MyTransfer2 extends MyTransfer {
	private static final String MYTYPE2NAME = "Mytype2Transfer";
	private static final int MYTYPE2ID = registerType(MYTYPE2NAME);
	private static MyTransfer _instance = new MyTransfer2();
	public static Transfer getInstance() {
		return _instance;
	}
	protected String[] getTypeNames() {
		return new String[] { MYTYPE2NAME };
	}
	protected int[] getTypeIds() {
		return new int[] { MYTYPE2ID };
	}
	byte[] javaToByteArray(Object object) {
		MyType2 data = (MyType2) object;
		try {
			ByteArrayOutputStream out = new ByteArrayOutputStream();
			DataOutputStream writeOut = new DataOutputStream(out);
			byte[] buffer = data.fileName.getBytes();
			writeOut.writeInt(buffer.length);
			writeOut.write(buffer);
			writeOut.writeLong(data.fileLength);
			writeOut.writeLong(data.lastModified);
			buffer = data.version.getBytes();