Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316127

Summary: Additions to Tigerstripe Info dialog
Product: [Technology] Tigerstripe Reporter: Richard Craddock <rcraddoc>
Component: UIAssignee: Navid Mehregani <nmehrega>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: erdillon
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch
none
Path#2
none
Icon used for the new command none

Description Richard Craddock CLA 2010-06-08 09:35:19 EDT
We should addsome info to teh Tigerstripe Dialog that pops up from the <Tigerstripe> Menu :

Installed modules

Installed Plugins
Comment 1 Richard Craddock CLA 2010-07-09 05:49:33 EDT
To clarify....

The Tigerstripe Menu contains (amongst other things) a "Plugins" option that pops up a dialog listing the plugins available for generation. The label here is a old misnomer - what is listed are Tigerstripe "Generators" which may or may not be eclipse plugins. Maybe that label could be updated at the same time!

We have recently added the capability to "contribute" models ( known as  "modules" in this mode) through eclipse plugins, using an extension point. These are read-only, but can be used for extension. So the user might install a foundation model, and be allowed to extend it, but not to edit it. 

Currently there is no way for the user to view the list of "contributed" (aka "installed") modules in a given eclipse install. (The only way to do this is to create a model and go through the process of adding references - and even then the user has to sub-consciously filetr out projects for installed Modules).

The requirement here is to show a list of the "contributed"  modules.

There is no add/remove or other action required - simply display.
Comment 2 Richard Craddock CLA 2010-07-09 05:52:50 EDT
Yo can get to these using the class 

org.eclipse.tigerstripe.workbench.internal.core.module.InstalledModuleManager

public InstalledModule[] getModules()

That should do the trick!
Comment 3 Navid Mehregani CLA 2010-07-11 20:03:25 EDT
Created attachment 173985 [details]
Patch

Here's what's included in the patch:

- AbstractDialog (new file): Used to abstract out the common code for similar dialogs
- ModuleDialog (new file): Dialog for displaying installed modules
- PluginsControlDialog (modified): Modified to extend AbstractDialog
- TigerstripeCommandHandler (modified): To handle 'Installed Module' command
- plugin.xml (modified): Added a new command for 'Installed Module'
- analysis_flow.gif: Icon used for the new command

Note that I'm using a deprecated API for the project name.  See bugzilla 319494 for more details.
Comment 4 Navid Mehregani CLA 2010-07-12 13:42:19 EDT
Created attachment 174071 [details]
Path#2

Modified dialog to only display Model ID and Version.  This patch doesn't include the icon used for the command.  Icon will be attached separately.
Comment 5 Navid Mehregani CLA 2010-07-12 13:43:07 EDT
Created attachment 174072 [details]
Icon used for the new command
Comment 6 Richard Craddock CLA 2010-07-14 04:16:05 EDT
Fixed by application of Navid's patch