After sending off this email, I decided to see if I could get this working
myself and came up with the following bit...which is somewhat of a hack, but
it works:
(defun buffer-full-class-name ()
"Returns the fully qualified class name of the current buffer"
(interactive)
(let ((buffer-name (file-name-sans-extension (file-name-nondirectory
buffer-file-name)))
(package-name (jpack-convert-directory-to-package
(jpack-get-package-directory))))
(concat package-name "." buffer-name)
))
(defun jde-run-buffer ()
"Runs the class in the current buffer"
(interactive)
(let* ((save-class jde-run-application-class))
(setq jde-run-application-class (buffer-full-class-name))
(jde-run-main-class)
(setq jde-run-application-class save-class)
))
(defun jde-debug-buffer ()
"Debugs the class in the current buffer"
(interactive)
(let ((save-class jde-run-application-class))
(setq jde-run-application-class (buffer-full-class-name))
(jde-debug)
(setq jde-run-application-class save-class)
))
David Hay
Senior Software Engineer
Requisite Technology, Inc.
[EMAIL PROTECTED]
303-474-2268
"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec
Guiness
> -----Original Message-----
> From: Paul Kinnucan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 04, 2000 5:16 PM
> To: David Hay; [EMAIL PROTECTED]
> Subject: Re: Feature request?
>
>
> At 03:45 PM 5/4/00 -0600, you wrote:
> >>>>
> So far, I've been extremely happy with JDE. However, the
> one thing I find
> myself doing that JDE doesn't seem to handle is running the
> class in the
> current buffer. Normally, I just execute jde-run to run my
> application,
> but when I'm unit testing something, I'd like to have a
> command that would
> let me run the class in the current buffer without having to
> go change
> jde-run-application-class (e.g. jde-run-current-buffer, or
> something) Is
> there a way to do this with JDE that I'm just missing? Thanks!
>
> <<<<
>
> No. I'll try to provide this capability in a future release.
>
> - Paul
>
> >>>>
>
> David Hay
> Senior Software Engineer
> Requisite Technology, Inc.
> [EMAIL PROTECTED]
>
> "Failure has a thousand explanations. Success doesn't need
> one" -- Sir
> Alec Guiness
>
>
>
> ------------------------------------------------------------
> TECH SUPPORT POLICY
>
> I respond only to requests that contain a complete problem report. The
> easiest way to ensure that your report is complete is to
> include the output
> of the JDE->Help->Submit Problem Report command in your request.
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> JDE website: http://sunsite.auc.dk/jde/
>
> JDE mailing list archive:
> http://www.mail-archive.com/[email protected]/maillist.html
>
>
>