From owner-freebsd-eclipse@FreeBSD.ORG Tue Mar 14 16:20:16 2006 Return-Path: X-Original-To: freebsd-eclipse@FreeBSD.org Delivered-To: freebsd-eclipse@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25F4416A423; Tue, 14 Mar 2006 16:20:16 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67DFC43D4C; Tue, 14 Mar 2006 16:20:15 +0000 (GMT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (aldan [127.0.0.1]) by aldan.algebra.com (8.13.4/8.13.4) with ESMTP id k2EGKECn039996 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Mar 2006 11:20:14 -0500 (EST) (envelope-from mi@aldan.algebra.com) Received: (from mi@localhost) by aldan.algebra.com (8.13.4/8.13.4/Submit) id k2EGKECa039995; Tue, 14 Mar 2006 11:20:14 -0500 (EST) (envelope-from mi) From: "Mikhail T." Message-Id: <200603141620.k2EGKECa039995@aldan.algebra.com> To: lioux@FreeBSD.org Date: Tue, 14 Mar 2006 11:20:14 -0500 (EST) X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7w hJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2006 16:20:16 -0000 --ELM1142353214-39960-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 --ELM1142353214-39960-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: attachment; filename=patch-swt31 Content-Description: 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(); --ELM1142353214-39960-0_--