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 7039559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:48:47+00:00 2026-05-28T01:48:47+00:00

Basically I need to implement a full XText editor in an IViewPart . I

  • 0

Basically I need to implement a full XText editor in an IViewPart. I have most of it working based on the XText Forms Integration project. Unfortunately, this is not a full implementation on an XText editor, and I wondered if anybody are aware of better starting points.. or even complete implementations 🙂

  • 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-05-28T01:48:47+00:00Added an answer on May 28, 2026 at 1:48 am

    It is possible since 2.2 (see this thread).
    This code worked for me:

    IEditedResourceProvider resourceProvider = new IEditedResourceProvider() {
    
            @Override
            public XtextResource createResource() {
                try {
                    MyDslQueryStandaloneSetup.doSetup();
                    ResourceSet resourceSet = new ResourceSetImpl();
                    Resource resource = resourceSet.createResource(URI.createURI("somefile.MyDsl"));
    
                    return (XtextResource) resource;
                } catch (Exception e) {
                    return null;
                }
            }
        };
    
        MyDslActivator activator = MyDslActivator.getInstance();
        Injector injector = activator
                .getInjector(MyDslActivator.QUERYNAME);
        EmbeddedEditorFactory factory = injector.getInstance(EmbeddedEditorFactory.class);
        handle = factory.newEditor(resourceProvider).withParent(
                parent);
    
        // keep the partialEditor as instance var to read / write the edited text
        partialEditor = handle.createPartialEditor(true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have certain algorithm need to implement. Basically the rules are: The first whitespace-separated
I have a page associated with master page. I need to implement the Ajax(basically
I need an input file stream which would have a bidirectional iterator/adapter. Unfortunately std::ifstream
I have a long running task that I need to implement on a webpage.
I need to implement search feature in WPF TreeView (basically I need to remember
I have a requirement for implementing a data-store. Basically, I just need to be
I have a design issue. I need to implement a listener. I saw the
So I'm writing some code and have recently come across the need to implement
Got question, maybe even problem while creating CakePHP Component. Basically, I need to implement
I need to implement a prioritised collection. Assuming we have the following three values

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.