Same Editing domain for different model descriptor

Background :
We have three different Ecore model A, B, C
where C holds reference to A and B
where B holds reference to A
Each model have there own editors and serialized to individual files.
Issue facing or not clear:
We are using Sphinx framework, where we have defined there own model-descriptors for A,B and C
On trying to retrieve the editingdoamin,
i.e TransactionalEditingDomain getEditingDomain(IModelDescriptor modelDescriptor)
it returns different for eobjects of A, B and C.
Due to this undo/redo and sync of the UI not happening.
Is it possible to get one common or shared editingdomain for all the model. Any hints would be helpful.
Regards
BG

Thanks for the feedback, please find my comments.
Hi,
It is very strange that you end up with different editing domains for your 3 Ecore models. Normally, when you have set up a correctly configured metamodel descriptor, Sphinx ALWAYS loads ALL files that contain instances of the metamodel in question into the SAME workspace-wide shared transactional editing domain.
In order to be able to help you, I need to know more details about what you have done and intend to do:
> Background :
> We have three different Ecore model A, B, C
> where C holds reference to A and B
> where B holds reference to A
Do you mean literally EMF Ecore models or your own model files that are based on a custom metamodel defined with Ecore?
Byre : We have modelled three different custom model using ecore_diagram, to our domain requirement like manager.ecore, dependent.ecore and configure.ecore
depenedent.ecore has reference to manager.ecore i.e Eobject in depenedent referes to Eobject in manager
configure.ecore has reference to both depeendent.ecore and manager.ecore
Do you have 3 models in the sense of the Sphinx IModelDescriptors or just 3 different model files?
Byre : Apologies here, we have 3 different IMetaModelDescriptors not Imodeldescriptors, with unique uri and namespace of ecore model
> Each model have there own editors and serialized to individual files.
What kind or editors?
Byre : Its a form based editors extending the "BasicTransactionalFormEditor" of sphinx
Are they Sphinx-based or do you mean the traditional model editors generated by EMF?
Byre : We have generated only model and edit code not the editor, its custom form editor which is extending the BasicTransactionalFormEditor. We have explorer also which use ExtendedCommonNavigator to show the content of all the 3 models with transient nodes
> Issue facing or not clear:
> We are using Sphinx framework, where we have defined there own
> model-descriptors for A,B and C
Do you mean IMetaModelDescriptors? The IModelDescriptors are automatically created by Sphinx and don't need to be provided by adapters.
Byre : Exactly its Imetamodeldescriptors, which we need to specify else the it would fail saying no metamodeldescriptors found
> On trying to retrieve the editingdoamin,
> i.e TransactionalEditingDomain getEditingDomain(IModelDescriptor
> modelDescriptor)
> it returns different for eobjects of A, B and C.
Byre : To be more precise we have eclipse project, where all the three models resides. Via Navigator when try to open the models which would open in their respective individual form editors.
i,e Manger Editor, Dependent Editor and Configuration Editor
Exact problem : We have certain data of manger editor displayed in configuration editor, now via EMF command if any changes made related to manager model in configuration editor it does not updates the value in manager editor or makes that editor dirty.
On analyzing deeper we found the each editor had its own editing doamin which executed commands on respective editing domain stacks.
Do you mean org.eclipse.sphinx.emf.util.WorkspaceEditingDomainUtil.getEditingDomain(IModelDescriptor)?
Byre : Yes, On digging deeper we saw that it invokes ModelDescriptor(IMetaModelDescriptor mmDescriptor, TransactionalEditingDomain editingDomain, IResourceScope resourceScope) thrice for each model browsed.
> Is it possible to get one common or shared editingdomain for all the
> model. Any hints would be helpful.
As I said, this is the default behavior of Sphinx. When everything is alright then it is hardly possible to make it happen that Sphinx loads instance files of the same metamodel into different editing domains.
Regards
BG

Similar Messages

  • Can we use same number range for different  fields

    can we use same number range for different  fields. how can we see the number range defined for a particular field

    Hai,
    Yes you can have same number range for different fields  by using the same domain to the data elements that are user to your two fields.
    To see the range:
    Go to SE11,Type table Name open it-->double click on the DataElement adjasent to the field name ,You will get Domian ,Double click on Domain You will get Domain.There See Value range option .Value range cam also be defined by Value Table which will also at the Doamin level.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • Can i use the same email address for different users?

    we are a small department with one email address, can i use the same email address for different users?

    No. Each user needs to have his unique ID.
    Mylenium

  • Is it possible to have same file size for different dpi?

    I changed one.TIFF file (300dpi, 1024X1332)  to .jpg files of four different dpi. But when I checked the four result jpg files, I found out that they are all in same file size and quality.( I also have checked the property of the files in the Windows.)
    I think more DPI means more data and more file size. Am I wrong?
    I use Photoshop CS 5.1(64bit, WINDOWS) - which is part of my Adobe Master Collection CS5.5.
    TIFF(300dpi, 1024X1332) ->
    1. JPG(72dpi, 1024X1332) : 306KB
    2. JPG(108dpi, 1024X1332) : 306KB
    3. JPG(144dpi, 1024X1332) : 306KB
    4. JPG(600dpi, 1024X1332) : 306KB
    I tested a few times more with different files. and same result comes out.(same file size for different dpi)
    Thanks in advance.

    Yes absolutely. Great observation.  PPI does not control the number of pixels, just how big they are.
    Now, if you change the PPI in the Image Size dialog with Resample checked.. then, that is a different story. In that case you will be changing the pixel dimension of an image (i.e.,changing the total number of pixels making up the image) while keeping its print size.
    In your test files, you will notice all the print sizes are different, because all you were telling Photoshop to do was change the size of the pixels (if or when the image is ever printed), which is really just a bit of metadata of the file.

  • Same preparedstatement object for different queries.. ?

    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    connection con.setAutoCommit(false);
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE DEPT SET MGRNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,mgrnum1);
    prepStmt.setString(2,deptnum1);
    prepStmt.addBatch();
    PreparedStatement prepStmt = con.prepareStatement(
    "UPDATE EMP SET EMPNO=? WHERE DEPTNO=?");
    prepStmt.setString(1,empno1);
    prepStmt.setString(2,deptnum2);
    prepStmt.addBatch();
    Whether we can take same preparedstatement object for different query..??Its not giving any error but its not updating all the records but only the last one...
    Any solution..

    kriti123 wrote:
    Actually I m getting same preparedstatement object for many queries in a for loop..In this scenario its not working properly..Suppose like dis..
    Ignore all of the above.
    You are using a batch.
    There is a specific idiom for that. You create the statement once and then keep calling the appropriate methods on it to load and then execute the batch, and check errors.
    When done you close it. If you need commit you are going to need to deal in blocks.
    If you have a large volume of data then database import tools are very likely to be substantially faster.

  • Message-Mapping: Use same RFC lookup for different target fields

    Hello,
    I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
    Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
    If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
    The input parameter (=source field value) would be the same.
    Thank you for your advice!

    Exactly.
    Here is a UDF example I have that you could adapt to your needs.
    Set
    public String setCounter(String a,String b,Container container){
    /* Store values in global datacontainer
    a: mapping value and return valueparameter
    b: name for stored value parameter
    GlobalContainer myGlobalContainer;
    myGlobalContainer = container.getGlobalContainer();
    myGlobalContainer.setParameter(b.toUpperCase(), a);
    return a;
    Get
    public String getCounter(String a,Container container){
       //write your code here
    GlobalContainer gc = container.getGlobalContainer();
    if (gc.getParameter(a) != null) {
      return String.valueOf(gc.getParameter(a));
    } else {
    return "1";

  • The same output message for different partner roles

    Hi All,
    Is it possible to create automaticaly in PO the same output message type ( for example - 'mail') for different partner roles( for example - 'VN' and 'OA') ?
    If it's possible,then how?
    Thanks.
    Liza

    Hi,
    Thank you ,but I have a next problem:
    When I  tried in transaction mn05 to add second record for the same output type for other  partner roles.
    I got error message "The condition record entered already exists".
    Regards,
    L.

  • Issues of using same enhancement set for different components

    Hi experts,
    I have an issue when using the same enhancement set(ZCRM_EHSET) for two different components IUICMD & IUICMRD. Component IUICMRD has two views IUICMRD/MainVS & IUICMRD/MeterReading and these views have been copied to Component IUICMD.
    Now, i am getting the following error, when i try to access AccountSearch view of component IUICMD
    Context initialization failed in view IUICMRD/MeterReading of UI Component IUICMD
    An exception has occurredException Class CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICMD_BSPWDCOMPONENT_IMPL is not compatible, for the purposes of assignment, with target type \CLASS=CL_IUICMRD_BSPWDCOMPONENT_IMPL
    Method: CL_IUICMRD_METERREADING_IMPL=>DO_INIT_CONTEXT
    Source Text Row: 10
    Let me know how i can solve this. Is there any precautions that i should have taken before using the same enhancement view for two different components.
    Thanks in advance.......................
    Regards,
    Prabahar

    Hi Bharathy,
    Thank you for the reply which helped me to come close to the solution.
    I hope you reply will solve the second part of my question where i get MOVE_CAST_ERROR.
    My first Question is still unanswered and i request you to provide solution if you have any. I worked on CRM 4.0 and CRM 2007 is new to me.
    My first question is below.
    I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set.  But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
    Is it the std behaviour that views from one component is copied to other when you try to use the same enhancement set? Kindly let me know if you faced similar situation.
    Best regards,
    Prabahar

  • Same batch number for different order materials

    Hi, pls advise can we assign same batch no's for different production order finished products?

    Yadav,
    Yes, it is possible to assign the same batch number to different production orders in the Order Goods Reciept tab.  If you are not maintaining any batch in this field then you can manually create a batch in MSC1N and use the same when making GR using MB31 or MIGO.
    Regards,
    Prasobh

  • Same error cluster for different instrument drivers?

    Hi All...
    mz question is regarding error cluster wiring for different instrument drivers. As u can see from attached file, i have 3 different devices with drivers. At the beginning i initialize and configure each one by wiring adresses and error clusters individually. After that i want use measruement vi's with an order. That s why I would like to use same error cluster for those 3 different measurment drivers as illustrated in the picture. is it possible?
    second question is that at the beginning in the initializing process, i do not set any order of those 3 devices. VI would try to initialize all of them at the same time which is not possible due to serial GPIB? Do i need to determine any sequences of initializing of devices?
    thanks
    Attachments:
    vi scheme.JPG ‏19 KB

    Your sceme is fine. The error cluster is a generic container to pass any error that can occur from one function to the next. Normally, if a function has it's Error In terminal connected and an error is passed in from a previous function, that function will not do naything except pass the error through so it can be handeled in you code.
    Since your running on serial, just "serialize" your initialization functions using the error cluster to set the order. This way only one will be running at a time. It doesn't matter what order.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Different execution plan for same query but for different condition value

    Hi All,
    I'm facing a strange situation where same query for different condition not working.
    1--
    Select  top 10 * from revenuefact(nolock) 
    where feecode ='OW4'
    2--
    Select  top 10 * from revenuefact(nolock)
    where feecode ='BTE'
    1st query is returning result easily but 2nd query is taking too long. Column
    feecode has already Non-clustered index and Clustered index is also available for another col RevenueSID.
    I was surprised when checked the query execution plan for both the above queries  which is quite different (as per attached below). Can anyone suggest me the reason behind it.
    And solution for the same. One more thing that data for feecode BTE is inserting through different source instead of others feecode and table contains more than 300 million rows.

    When I speak with people inside Microsoft who work with the optimizer, the refuse to accept the work "bug" when a query produces the correct result, but with a suboptimal plan. They prefer to use the word "limitation".
    The limitation here is that when the optimizer compares two plans, it only looks at the estimated cost. As far as I know, it does not perform any analysis from the perspective "what if the statistics are wrong"? They do provide the hint OPTIMIZE
    FOR UNKNOWN, but that does not work then there is a constant as in this case.
    The optimizer will surely distinguish between TOP 10 and TOP 10000000. With the latter, you have all reason to expect a Clustered Index Scan no matter which value you search for - unless you pick a value for which the histogram indicates that there are no
    rows.
    Interesting enough, I was able to reproduce the situation in my Northgale database, which is an inflated version of Northwind, and where statistics should be accurate.
    SELECT TOP 10 * FROM Orders WHERE EmployeeID = 8
    results in a CI scan, and so does also EmployeeID = 7, and even 5. There are only 2292 rows out of a total of 344305 rows. If I try EmployeeID 808 for which there are 1797, the optimizer goes for the index seek.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • TS3999 PUtting multiple entries in the same calendar spot for different people, locations?

    Using icloud calendar to track my mtgs and meeting space reservations.  Once I enter my appt, I can't put the SAME appt in the same spot, for other managers' calendars, or the meeting space, without creating each as a mtg at a differnt time & then correcting that?  Because it doesn't seem to let me work in a space that is already "occupied"...  Help!

    Delete all Locations and use Automatic.
    When you enter the password for each sub-node, OS X remmebers it, so if you travel it just connects to the next sub-node.
    Locations is used for different networks with totally different setups, not just passwords.

  • Creation of same personnel number for different company codes

    Hi All,
    I am having the requirement to cerate same personnel number under different compant codes.
    Eg. There are 2 company codes MO10 and MO20 for the same country
    Personnel number- 0100000023 should exist for both company code MO10 and MO20.
    Please help.
    regards,
    Gaurav

    Dear Roger,
    Thanks for replying, I have been waiting for this. We are a group  of copmanies with the name of orient and have  four different  companies and currently  using one payroll area Z1 for payroll processing for  OEL; company code 1000. we have these company codes 2000, 3000 and 4000 for rest three companies and want to use same payroll area Z1 for processing payroll of these three companies. is that possible to do in SAP HCM if yes then how?
    Can you please guide on this? Look forward for your response.
    Stay Blessed,
    Waqar

  • Mozilla using the same session ID for  different browser

    Hi
    I am using mozilla to test my application. I tested two subscription of my application in two different mozilla browsers simultaneously.
    Here I Found details are swapped. Because mozilla using the same JSession ID for the two browser.
    This is a flaw in mozilla or whether this issue is solved in any one of the version of mozilla.
    When ever I am opening a new window, new session ID should be created like in IE (Internet explorer).this not happening in Mozilla.
    Can any one help me out from this problem?
    Thanks
    Dilip

    Hi,
    I cannot help you with your problem.
    But I want to ask what are you using to control Firefox ( on Windows... ) ?
    Thanks

  • Professional Edition Account for different customers

    Suppose I'm a free-lance designer. Can I use my Professional Edition Account for publishing folios for different customers?

    Download Bundle Fees is applicable to Publishers not end users.
    Built in Single Issue Apps : No Download Fees.
    Multi Issue Apps: Each download whether free or retail gets deducted from your folio download balance.
    With DPS Pro Annual you get 5000 free downloads for the first year and with Pro Monthly Free 250 downloads per moth for the first year.
    You can purchase additional folio bundles:
         • Pricing starts at US$0.30/.folio file for 10,000-.folio bundle
    http://www.adobe.com/products/digital-publishing-suite-pro/buying-guide-pricing.html

Maybe you are looking for

  • Adding field in infotype 0009

    Hi, I have a requirement where in i have to add a filed in the infotype 0009. For this i have added the field in the structure ps0009 through append structure. But i have to get the filed in the sceen. Please let me know how to do this. I have gone t

  • How to trigger a TTL output with an analog input

    Hello, I have an apparatus for measuring the flame speed of various hydrocarbon/air mixtures.  The chamber uses central ignition as the means for igniting the mixture.  My goal is to film the ignition process with a high speed Phantom video camera. 

  • Problem in Events (Create and Change)

    Hi all, I have developed a worlflow for transaction FV50. Now the problem is that when i create a parking document a mali is sent to approver for approval. Now suppose if approver doesn't do any action on the workitem which he had in his inbox and in

  • FW CS3 - Too many slices

    Hi, I am using FW CS3 and I have accumulated too many slices on my page. Is there any way to remove slices? Or maybe if I cannot remove them, is there a way to easily reorganize them?

  • Swapping a library drive--did it on a PC, how on a Mac?

    I've made the switch from PC to Mac and am very happy overall. However, there's one thing I used to be ablet to do on my PC that I can't on my Mac. On my PC, my music drive was \\mynasdrive\music which I mapped to "M:". When I travelled, I could stil