From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Shutko Newsgroups: gmane.emacs.devel Subject: Re: Implementing Eclipse's "organize-imports" in Emacs Lisp Date: Fri, 25 Jan 2008 10:40:13 -0600 Message-ID: <87odb9dfki.fsf@vera.springies.com> References: <4795F934.9010703@gmail.com> <4798473D.1010505@pajato.com> <9caafe030801241653q76c4e6b8o477c52c2add83efd@mail.gmail.com> <87prvqwbc1.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201296268 11367 80.91.229.12 (25 Jan 2008 21:24:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jan 2008 21:24:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 25 22:24:48 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIW2Z-0005wn-V8 for ged-emacs-devel@m.gmane.org; Fri, 25 Jan 2008 22:24:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIW29-0003Xl-HA for ged-emacs-devel@m.gmane.org; Fri, 25 Jan 2008 16:24:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIRfp-0004fa-En for emacs-devel@gnu.org; Fri, 25 Jan 2008 11:45:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIRfn-0004f1-Uo for emacs-devel@gnu.org; Fri, 25 Jan 2008 11:45:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIRfn-0004eq-MK for emacs-devel@gnu.org; Fri, 25 Jan 2008 11:44:59 -0500 Original-Received: from springies.com ([209.145.167.96] helo=simon.springies.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JIRfn-0003Ai-6W for emacs-devel@gnu.org; Fri, 25 Jan 2008 11:44:59 -0500 Original-Received: from vera.springies.com ([192.168.1.2]) by simon.springies.com (8.14.2/8.14.1) with ESMTP id m0PGivHm017938 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 25 Jan 2008 11:44:57 -0500 Original-Received: from ats by vera.springies.com with local (Exim 4.67) (envelope-from ) id 1JIRfp-0001GL-IK for emacs-devel@gnu.org; Fri, 25 Jan 2008 10:45:01 -0600 In-Reply-To: <87prvqwbc1.fsf@member.fsf.org> (Tassilo Horn's message of "Fri, 25 Jan 2008 09:36:46 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0rc1 (simon.springies.com [192.168.72.1]); Fri, 25 Jan 2008 11:44:57 -0500 (EST) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 25 Jan 2008 16:24:08 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87513 Archived-At: Tassilo Horn writes: > Anyway, it's exciting to see that it's feasible to control eclipse from > an external app. I've semi-adopted RemoteEclipse[1], which consists of an Eclipse plugin and some elisp that uses beanshell and java rpc to communicate to Eclipse. It was limited to pulling the project information (classpath, directories, etc) from Eclipse, triggering builds, and retrieving error information into a *compile* buffer. It didn't attempt to integrate with Eclipse's project navigation or rafactoring features, instead allowing JDEE tools to handle it. I've somewhat updated it to work with Eclipse 3.x[2] but Eclipse 3 changed to do compilation in a background thread, and that would really require a fair rework of the whole plugin. I'd also like to change the communication path... beanshell to java rpc just bugs me. I think there are some good ideas in RemoteEclipse, but it might be easier to start with fresh code. Footnotes: [1] Formerly at http://www.raffael.ch/index.jsp?content=page/FTP/RemoteEclipse, but the site appears to be down. [2] http://www.springies.com/~ats/RemoteEclipse.zip -- Alan Shutko - I am the rocks. I worship the ground that awaits you.