Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37956
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Can you execute a command in Eclipse? |
| Date | Wed, 17 Jan 2018 19:18:39 -0500 |
| Organization | Aioe.org NNTP Server |
| Lines | 54 |
| Message-ID | <p3op4u$igr$1@gioia.aioe.org> (permalink) |
| References | <6aa5f167-870c-4084-bfb2-e5cf03a0dbd6@googlegroups.com> <p3o3f6$1h52$1@gioia.aioe.org> <e8f02854-0430-4c95-a254-9309196360dc@googlegroups.com> |
| NNTP-Posting-Host | PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Content-Language | en-US |
| Xref | csiph.com comp.lang.java.programmer:37956 |
Show key headers only | View raw
On 1/17/2018 4:47 PM, Eric Douglas wrote:
> On Wednesday, January 17, 2018 at 1:09:02 PM UTC-5, Arne Vajhøj wrote:
>> On 1/17/2018 10:13 AM, Eric Douglas wrote:
>>> Is there a place to execute a command, like say I'm running a Java
>>> test with a JFrame can I just manually set the title of it without
>>> ending the JVM and starting over?
>>
>> I think this will be difficult as Eclipse and your application
>> are running in two different JVM's.
>>
>> Alternative approach:
[code omitted]
>> and in your application:
>>
>> GUIUtil.hack(yourjframeinstance);
>>
>> and then in the extra windows simply enter:
>>
>> f.setTitle("Bla");
>>
>> and click execute.
>>
>> Requires BeanShell present.
>
> For that to simply execute anything you could in the application you
> would have to call that method for every object and somehow assign the
> same object name, but that is pretty cool.
Well - your JFrame sub class should have getters to give you everything
GUI related and if you just add one more super object with getters to
give you all the data model stuff, then you should be OK.
> I'm used to our other language. This language started as BASIC which
> was a single window executing code in line so you could break at any
> point and execute a command. The current generation is called BBj
> (Business BASIC on Java) which gives us a console window and a Java
> API. Somehow their console window interacts with the GUI objects
> through their API so when it's running normally it's sitting on one
> command that runs like an infinite loop
> (http://documentation.basis.com/BASISHelp/WebHelp/commands2/process_events_verb.htm)
> and we can break out any time and manually execute code to manipulate
> the GUI.
If the IDE and the program run in same JVM, then it is easy.
I am not familiar with JPDA, but I assume that if the
application is run under debugger then it is also
easy.
Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Can you execute a command in Eclipse? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-17 07:13 -0800
Re: Can you execute a command in Eclipse? Arne Vajhøj <arne@vajhoej.dk> - 2018-01-17 13:08 -0500
Re: Can you execute a command in Eclipse? Eric Douglas <e.d.programmer@gmail.com> - 2018-01-17 13:47 -0800
Re: Can you execute a command in Eclipse? Arne Vajhøj <arne@vajhoej.dk> - 2018-01-17 19:18 -0500
csiph-web