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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:14:45+00:00 2026-05-11T15:14:45+00:00

I am opening an editor from a view on click of a treenode. Now,

  • 0

I am opening an editor from a view on click of a treenode. Now, when editor loads and controls are displayed to the user, I want to display a warning message dialog to the user based on certain values present on the editor.

I tried by putting the warning dialog at the end of createPartControl method of the editor. Dialog appears on double cliking the treenode as per the required functionality. But, the problem is that when the dialog appears, the controls on the editor are not yet visible. It’s only when I close the dialog the editor controls are shown.

I want it to happen the other way around. i.e. The editor controls to show up first and then the warning dialog should appear. What changes should I do to achieve this effect?

  • 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. 2026-05-11T15:14:46+00:00Added an answer on May 11, 2026 at 3:14 pm

    You may want to call that MessageDialog in an asynchronous way, to leave the Editor the opportunity to complete itself, as suggested in this message.

    show your warning dialog in an asyncExec() runnable would ensure that the editor’s initialization all happens in the correct sequence.

    So, something like (not tested) this code might do the trick:

    getSite().getShell().getDisplay().asyncExec     (new Runnable() {         public void run() {             MessageDialog.openWarning(getSite().getShell(),'wrong','no)         }     }); } 

    Some other examples in this MapEditor class, where a MessageDialog is displayed through an asyncExec which waits for the result:

    PlatformGIS.syncInDisplayThread

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When opening a new tkinter window, I only want the user to be able
I installed MonoDevelop and want to use its design view editor. After a bit
Opening an XML file in Internet explorer gives a security warning. IE has a
Opening an application( probably an .exe file) as an administrator in headless mode from
When opening a client against a db40 server it seems to expect a user
I am opening UIPickerView on UIButton click and i am calling commit animation on
When I run commit from a standard command prompt it is opening the configured
I want to create an Eclipse RCP from our collection of already existing Eclipse
I'm trying to implement the wmd-editor from the google code repository (like the one
Can't add elements from the Palette to the editor, nothing appears on the editor,

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.