Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Create a custom view to display custom datas when running JAVA
Create a custom view to display custom datas when running JAVA [message #1808814] Tue, 02 July 2019 04:51 Go to next message
Eclipse UserFriend
Hello,

I uses Eclipse with JAVA and I'd like to create a small area (a special tab for example) in my IDE where I will display some informations in real-time (like console but not console) when my JAVA code runs.

Does someone know how I can do that ?

Thank you,
Regards,
Re: Create a custom view to display custom datas when running JAVA [message #1808818 is a reply to message #1808814] Tue, 02 July 2019 05:54 Go to previous messageGo to next message
Eclipse UserFriend
You should note that when you launch your Java "application" that it runs in a separate process. The console works because it binds the console to the resource handles for System.in, System.out, and System.err of that process.

So while you could create an Eclipse plugin that specifically can communicate with your Java "application" you would have to set up and manage that communication channel. So your Java "application" would have to be aware of the needs of your special UI's communication needs. That sounds like a pretty involved task to me!

It would seem better to me that you design a simple UI application (using JFace or purely using SWT) to provide a user interface and it's likely best that your normal Java application run in that same process (as well as being able to run separately) so that you don't have any complex inter-process communication to set up with this approach.
Re: Create a custom view to display custom datas when running JAVA [message #1808833 is a reply to message #1808818] Tue, 02 July 2019 11:30 Go to previous messageGo to next message
Eclipse UserFriend
Hello Ed Merks and thank you for your answer.
For my project need, I must have it like I said.
It's easy to open a new window and send everythin in but it does not fit the project requirements.
If there are tutorials for each part, it does not fear me ;)

Regards,
Re: Create a custom view to display custom datas when running JAVA [message #1808834 is a reply to message #1808833] Tue, 02 July 2019 12:10 Go to previous messageGo to next message
Eclipse UserFriend
You can Google for such things:

https://www.google.com/search?q=eclipse+plugin+tutorial

And of course Eclipse is open source so you can look at how everything else is implemented.

You could use the following tutorial to create a workspace that has all the source code in the Eclipse SDK:

https://wiki.eclipse.org/Eclipse_Platform_SDK_Provisioning

That would make finding things in source code even either.

You'll find the plugin spy very using too:

https://stackoverflow.com/questions/6209033/how-to-determine-which-eclipse-plugins-are-contributing-to-menus-and-toolbars-an
Re: Create a custom view to display custom datas when running JAVA [message #1808853 is a reply to message #1808834] Wed, 03 July 2019 03:34 Go to previous message
Eclipse UserFriend
Thank you for all your helps !
It will takes a certain time to check all of these and find what I need.
I'll come back when useful :)
Regards,
Previous Topic:Unable to update to latest plugins, due to JDT plugin problem
Next Topic:Eclipse 2019-03 open class file in Java editor
Goto Forum:
  


Current Time: Sat Nov 08 14:03:04 EST 2025

Powered by FUDForum. Page generated in 0.05160 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top