Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311307 - New OSGi Console needs polish
Summary: New OSGi Console needs polish
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 RC1   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 02:52 EDT by Dani Megert CLA
Modified: 2010-05-11 15:58 EDT (History)
5 users (show)

See Also:
darin.eclipse: review+


Attachments
org.eclipse.pde.ui.patch (5.21 KB, patch)
2010-05-11 11:20 EDT, Chris Aniszczyk CLA
no flags Details | Diff
org.eclipse.pde.ui.patch (5.83 KB, patch)
2010-05-11 11:27 EDT, Chris Aniszczyk CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2010-05-02 02:52:53 EDT
3.6 M7.

The new OSGi Console needs polish:
- each time I choose it from the Console view menu a new one is created which is
  not the case with the other view actions (they just switch or create it when
  called the first time)
- the name of each such created OSGi console is the same hence I have no clue
  which one is which
- if I got the N&N right then this is the dev workspace console. This is not
  obvious to the user. It might be quite dangerous if he misleads this and starts
  to mess around with its dev workspace
Comment 1 Curtis Windatt CLA 2010-05-05 11:02:10 EDT
Chris, are you able to polish your contribution some more?

A few people have mentioned getting burned by the dev/target console.  Perhaps in the title of the console we could add a longer description.

OSGi Console enhancement request is bug 162420
Comment 2 Dani Megert CLA 2010-05-05 11:48:58 EDT
Polish or remove ;-)
Comment 3 Chris Aniszczyk CLA 2010-05-05 11:52:24 EDT
(In reply to comment #1)
> Chris, are you able to polish your contribution some more?
> 
> A few people have mentioned getting burned by the dev/target console.  Perhaps
> in the title of the console we could add a longer description.

'Development OSGi Console' would that work? I'm not sure what name to use. Who has been burned? I've only heard good things from people about this feature. You can effectively burn yourself via the plug-in registry view and enabling the Advanced Operations option.

I'll update the code to only have one console... I don't think we need multiple ones and should just be a singleton.

Adding Tom to see if he has any insights here.
Comment 4 Curtis Windatt CLA 2010-05-05 12:18:46 EDT
(In reply to comment #3)
> 'Development OSGi Console' would that work? I'm not sure what name to use. Who
> has been burned? I've only heard good things from people about this feature.
> You can effectively burn yourself via the plug-in registry view and enabling
> the Advanced Operations option.

The feature is useful, it's just that when you are debugging a target with the -console argument, then open up an OSGi console, you end up with two very similar looking consoles.  If you type your commands into the incorrect one you get the incorrect results.  I saw a comment a bug where someone had hit this.  I also think Ankur made the mistake as well.

I just think that a gentle reminder to the user would be useful.  'Development OSGi Console' is ok.  I don't have any better suggestions, 'OSGi Console (Host IDE)' or something that distinguishes it from the target/runtime workbench.
Comment 5 Thomas Watson CLA 2010-05-05 12:28:04 EDT
(In reply to comment #3)
> (In reply to comment #1)
> > Chris, are you able to polish your contribution some more?
> > 
> > A few people have mentioned getting burned by the dev/target console.  Perhaps
> > in the title of the console we could add a longer description.
> 
> 'Development OSGi Console' would that work? I'm not sure what name to use. Who
> has been burned? I've only heard good things from people about this feature.
> You can effectively burn yourself via the plug-in registry view and enabling
> the Advanced Operations option.

I don't have a good name for this.  Is the concern that the user will not know that this console view is an OSGi console for the running Eclipse instance (the one running the actual workspace instance)?  I am not sure I understand the term "dev workspace console" from comment 0.  Equally confusing is the term "Development OSGi Console".  To me that would seem to indicate that the console is connected to some instance that is running bundles I am developing in my workspace.

Perhaps "Workspace OSGi Console".  I also like Curtis's suggestion 'OSGi Console (Host IDE)'.  If we really want to inform the user, then the console view could print some statement at the start of the console ...

WARNING: This console is connected to the running instance of the OSGi Framework for the open workspace.

> 
> I'll update the code to only have one console... I don't think we need multiple
> ones and should just be a singleton.

I agree with that.  Only one is ever needed.
Comment 6 Dani Megert CLA 2010-05-06 03:29:24 EDT
>I also like Curtis's suggestion 'OSGi Console (Host IDE)'.
Goes into the right direction. I don't like having braces in titles too much. How about: "Host OSGi Console" plus a warning dialog which has a 'Don't ask again' check box.

>I don't think we need multiple ones and should just be a singleton.
I agree too.
Comment 7 Curtis Windatt CLA 2010-05-06 09:25:24 EDT
(In reply to comment #6)
> How about: "Host OSGi Console" 
Sounds good to me

> plus a warning dialog which has a 'Don't ask again' check box.
A dialog interrupting the user seems more annoying then helpful.  If we need a message, it should be displayed in the console.
Comment 8 Dani Megert CLA 2010-05-06 09:54:08 EDT
>If we need a message, it should be displayed in the console.
Would be fine too.
Comment 9 Chris Aniszczyk CLA 2010-05-10 10:34:17 EDT
Targetting this for this week.
Comment 10 Chris Aniszczyk CLA 2010-05-11 11:20:35 EDT
Created attachment 167943 [details]
org.eclipse.pde.ui.patch

I made the console a "singleton" and added a warning message to the console.

I think this is good enough, I would prefer to not rename the console.
Comment 11 Dani Megert CLA 2010-05-11 11:23:41 EDT
I think renaming is important to avoid the obvious confusion - even though we have a warning inside the console.
Comment 12 Chris Aniszczyk CLA 2010-05-11 11:27:45 EDT
Created attachment 167946 [details]
org.eclipse.pde.ui.patch

An updated patch with naming the console "Host OSGi Console" instead of "OSGi Console"
Comment 13 Darin Wright CLA 2010-05-11 15:57:59 EDT
I also updated the console header to show "Host OSGi Console [...]". Note that you have to start with -clean to see the new "Host OSGi Console" in the console drop down menu.

+1 Applied/Fixed. 

I'll open a new bug for an action to close the console.
Comment 14 Darin Wright CLA 2010-05-11 15:58:57 EDT
Fixed.