From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42076 invoked by alias); 21 Jan 2018 18:42:03 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 42066 invoked by uid 89); 21 Jan 2018 18:42:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 21 Jan 2018 18:42:00 +0000 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1edKZ3-0003mQ-UA; Sun, 21 Jan 2018 19:41:58 +0100 Received: from 70-36-239-2.dsl.dynamic.fusionbroadband.com ([70.36.239.2] helo=localhost.localdomain) by mailfront10.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1edKYm-0003pK-F7; Sun, 21 Jan 2018 19:41:40 +0100 Subject: Re: ImagJ/Fiji 'binding' wrong number of args - help welcome To: David Pirotte Cc: kawa References: <20180120225959.315c0608@capac> <39453e2b-700e-385c-88a5-164c58a6a1a8@bothner.com> <20180121065856.51dcae4b@capac> From: Per Bothner Message-ID: Date: Sun, 21 Jan 2018 18:42:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180121065856.51dcae4b@capac> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00019.txt.bz2 On 01/21/2018 12:58 AM, David Pirotte wrote: > But what is 'this' argument, how do I 'grab it' from imagej/fiji plugin? That is not a question about Kawa. It is a question about the imagej/fiji plugin. How would you get the 'this' argument in a Java program? Somewhere in the library or code that uses it there is a call 'new MaskThicknessMapWithOriginalTest'. That result is what you need to pass to as the 'this' parameter. If you want to write a Kawa wrapper for a Java plugin, you need to understand the Java API - and how you would use the pluin in a Java application. You then have the option of designing a Kawa API that feels very different from the Java API - or you can just use the "thin wraper" that Kawa gives you automatically. Regardless, you have to understand the Java API before you either use it directly or design a Kawa library on top of it. -- --Per Bothner per@bothner.com http://per.bothner.com/