public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: David Pirotte <david@altosw.be>
Cc: kawa <kawa@sourceware.org>
Subject: Re: ImagJ/Fiji 'binding' wrong number of args - help welcome
Date: Sun, 21 Jan 2018 18:42:00 -0000	[thread overview]
Message-ID: <e2c0511f-ea38-b359-1b40-6d12a5809d6c@bothner.com> (raw)
In-Reply-To: <20180121065856.51dcae4b@capac>

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/

  reply	other threads:[~2018-01-21 18:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-21  1:00 David Pirotte
2018-01-21  7:12 ` Per Bothner
2018-01-21  8:59   ` David Pirotte
2018-01-21 18:42     ` Per Bothner [this message]
2018-01-22  1:49       ` David Pirotte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e2c0511f-ea38-b359-1b40-6d12a5809d6c@bothner.com \
    --to=per@bothner.com \
    --cc=david@altosw.be \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).