FW: GME Interpreter chain

GME GME
Tue Nov 18 15:46:15 CST 2003



----------
From: 	Aditya Agrawal
Sent: 	Tuesday, November 18, 2003 9:46:15 AM
To: 	GME Group
Subject: 	RE: GME Interpreter chain
Auto forwarded by a Rule

Peter,
 
Thanks for the code snippet. 
 
I got a smaller snippet from Zsolt and Gyorgy. Please let me know it there is something wrong with it.
 
I successfully used this code in a RawBonComponent
 
{ // Calling the GR interpreter
     CComBSTR bstrCompName( L"MGA.Interpreter.Generate GR" );
 
     CComPtr<IMgaComponentEx> grComponent;
     COMTHROW( grComponent.CoCreateInstance( bstrCompName ) ) ;
     COMTHROW( grComponent->put_InteractiveMode( VARIANT_TRUE ) );
     COMTHROW( grComponent->Enable( VARIANT_TRUE ) );
     COMTHROW( grComponent->Initialize( spProject ) );
     STDMETHODIMP ret = grComponent->InvokeEx( spProject, spContextFCO, spSelectedFCOs, lParam ) ;
     if(ret != S_OK)
      return ret;
     
    }
 
Thanks,
Adi
 



------------------------------------------ 
Aditya Agrawal 
mailto:aditya.agrawal at vanderbilt.edu 
http://aditya.isis.vanderbilt.edu/ 
Institute For Software Integrated Systems (ISIS) www.isis.vanderbilt.edu 
Vanderbilt University 
2015 Terrace Place 
Nashville, TN 37203 
615 322 3164 

-----Original Message-----
From: GME Group 
Sent: Tuesday, November 18, 2003 2:18 AM
To: GME List
Subject: FW: Icons in the tree browser





----------

From:   Peter Volgyesi 
Sent:     Tuesday, November 18, 2003 2:17:43 AM 
To:        GME Group 
Subject:       Re: Icons in the tree browser 
Auto forwarded by a Rule


 
 
 
Uncomment the following line in your componentconfig.h:
#define BON_CUSTOM_TRANSACTIONS
 
And use the following code snippet:
 
------------------------------------------------------------------------------------------------
builder.BeginTransaction(TRANSACTION_READ_ONLY);
 
 CComPtr<IMgaFCO> mgaFocus;
 CComPtr<IMgaFCOs> mgaSelected;
 CComBSTR progID;
 
 COMTHROW(mgaSelected.CoCreateInstance(OLESTR("Mga.MgaFCOs")));
 
 // You might add FCO-s to the selected list
 // COMTHROW(mgaSelected->Append(...));
 

 // You might also set the focus object
 // mgaFocus = ...;
 
 // Set the progid to the name (ProgId) of the interpreter you want to call,
 // or leave it empty if you want GME to show the chooser dialog
 // progID = "...";
 
 builder.CommitTransaction();
 
 CComPtr<IMgaLauncher> mgaLauncher;
 COMTHROW(mgaLauncher.CoCreateInstance(L"Mga.MgaLauncher"));
 
 progID = "Mga.Interpreter.MetaGME";
 
 
 COMTHROW(mgaLauncher->RunComponent(progID,builder.GetProject(), mgaFocus,
    mgaSelected,GME_EMBEDDED_START) );
------------------------------------------------------------------------------------------------
 
I have serious problems with icon customization code in the browser. (It needs a lot of work.) So, I've postponed this feature, sorry.
--
peter
 
 

----- Original Message ----- 
From: GME Group 
To: GME List 
Sent: Thursday, November 06, 2003 5:32 PM
Subject: FW: Icons in the tree browser




---------- 
From:   Aditya Agrawal 
Sent:   Thursday, November 06, 2003 10:32:36 AM 
To:     GME Group 
Subject:        Icons in the tree browser 
Auto forwarded by a Rule 

Hi all, 

Recently I have been using a paradigm that has many folders of different kinds. It becomes difficult to distinguish the type of the folder because they all look the same.

The general case of this problem is that in GME the tree browser shows icons based on the GME stereotype (Folders, models, atoms and not based on the icons specified in the metamodels)

Will it be too much work to use the icons specified in the metamodel? 

And to come back to my problem will it be too much work to add support for specifying icons for folders as well. 



Thanks, 
Adi 


------------------------------------------ 
Aditya Agrawal 
mailto:aditya.agrawal at vanderbilt.edu 
http://aditya.isis.vanderbilt.edu/ 
Institute For Software Integrated Systems (ISIS) www.isis.vanderbilt.edu 
Vanderbilt University 
2015 Terrace Place 
Nashville, TN 37203 
615 322 3164 





More information about the gme-users mailing list