azureus-2.4.0.0

Mikhail T. mi at aldan.algebra.com
Tue Mar 14 16:20:16 UTC 2006


Hi!

I'm attaching the patch needed to compile Azureus-2.4.0.0 against
SWT-3.1.x.

Note, that patched code catches the "no such mathod" exceptions at
run-time, which allows the precompiled jar to work with the older swt.
Unfortunately, there does not seem to exist a method to catch such
things at compile-time :-(

When SWT-3.2.x is released, and our port is updated (or
x11-toolkits/swt32 is created), the patch can be removed.

Yours,

	-mi
-------------- next part --------------
This set of patches allows Azureus to build against the 3.1.x version
of SWT. When the 3.2.x is _released_ by Eclipse, and our x11-toolkits/swt31
port is updated, this file can be removed from the Azureus port.

	-mi

--- org/gudy/azureus2/ui/swt/Messages.java	Fri Feb 10 00:08:06 2006
+++ org/gudy/azureus2/ui/swt/Messages.java	Tue Mar 14 11:00:05 2006
@@ -218,5 +218,5 @@
         }
       }
-    } else if (widget instanceof TableColumn) {
+    } /* else if (widget instanceof TableColumn) {
       String key = (String) widget.getData();
 			if (key != null) {
@@ -236,4 +236,5 @@
 			}
     }
+*/
   }
   
--- org/gudy/azureus2/ui/swt/views/TableView.java	Fri Feb 10 00:07:52 2006
+++ org/gudy/azureus2/ui/swt/views/TableView.java	Tue Mar 14 11:03:38 2006
@@ -2714,5 +2714,5 @@
 		if (table == null || table.isDisposed())
 			return;
-
+/*
 		try {
 			// can't use TableColumnCore.getPosition, because user may have moved
@@ -2733,4 +2733,5 @@
 			// sWT < 3.2 doesn't have column indicaters
 		}
+*/
 	}
 
--- org/gudy/azureus2/ui/swt/views/configsections/ConfigSectionPlugins.java	Fri Feb 10 00:08:06 2006
+++ org/gudy/azureus2/ui/swt/views/configsections/ConfigSectionPlugins.java	Tue Mar 14 11:06:20 2006
@@ -374,4 +374,5 @@
 				public void widgetSelected(SelectionEvent e) {
 					boolean ascending = comparator.setField(table.indexOf(tc));
+/*
 					try {
 						table.setSortColumn(tc);
@@ -380,4 +381,5 @@
 						// Ignore Pre 3.0
 					}
+*/
 					Collections.sort(pluginIFs, comparator);
 					table.clearAll();


More information about the freebsd-eclipse mailing list