Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7958667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:27:27+00:00 2026-06-04T04:27:27+00:00

i want to open multiple console view with different input text on single swt

  • 0

i want to open multiple console view with different input text on single swt button click in eclipse rcp application
Can anybody tell me about this ?
Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:27:27+00:00Added an answer on June 4, 2026 at 4:27 am

    Add org.eclipse.ui.console as dependency and after that you can create different extensions.
    Some more details about the implementation you can find on this page http://www.eclipsezone.com/eclipse/forums/t66777.html.

    Here a simple implementation (source):

    plugin.xml

    <plugin>
        <extension point="org.eclipse.ui.console.consoleFactories">
            <consoleFactory label="ConsoleX" class="console.Factory">
            </consoleFactory>
        </extension>
    </plugin>
    

    class Factory

    package console;
    
    import org.eclipse.ui.console.ConsolePlugin;
    import org.eclipse.ui.console.IConsole;
    import org.eclipse.ui.console.IConsoleFactory;
    import org.eclipse.ui.console.IConsoleManager;
    import org.eclipse.ui.console.MessageConsole;
    
    public class Factory implements IConsoleFactory {
    
        private static MessageConsole _console;
    
        public void openConsole() {
            MessageConsole console = getConsole();
            if (console != null) {
                IConsoleManager manager =
                ConsolePlugin.getDefault().getConsoleManager();
                IConsole[] existing = manager.getConsoles();
                boolean exists = false;
                for (int i = 0; i < existing.length; i++) {
                    if(console == existing[i])
                        exists = true;
                }
                if(! exists)
                    manager.addConsoles(new IConsole[] {console});
                manager.showConsoleView(console);
            }
    
        }
    
        public static MessageConsole getConsole() {
            if (_console == null) {
                _console = new MessageConsole("ConsoleX",null);
            }
            return _console;
        }
    
    }
    

    Usage

    Factory.getConsole().activate();
    Factory.getConsole().newOutputStream().write("Hello world.".getBytes());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple Eclipse RCP application where I can open multiple editor
I want to open Multiple Instance of a single from , and running simultaneously
Is it possible, when developing an Eclipse RCP Application, to stack a view with
I have a button/link. I want to open multiple divs on multiple clicks on
I have multiple UIViewControllers in my iOS App's Storyboard. I want to open one
I have multiple python files for a school project that I want to open
i want to open multiple instances of one form and display it in another
Objective I want to be able to run the Applescript to open multiple applications
So I am writing a C# console application. I have a text file that
i want to open multiple dialog boxes by using the same class on both

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.