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

  • SEARCH
  • Home
  • 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 9015067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:39:34+00:00 2026-06-16T03:39:34+00:00

Is there anyway to stop the editor from closing even though there are no

  • 0

Is there anyway to stop the editor from closing even though there are no unsaved changes?

Whenever there are some unsaved changes, then using the ISaveablePart interface can trap the event before editor close – but I’m looking for a way to trap the event before the editor closes, even if there are no unsaved changes.

  • 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-06-16T03:39:36+00:00Added an answer on June 16, 2026 at 3:39 am

    A possible way to do this is to maintain two ‘dirty’ flags in your ISaveablePart implementation – one so that the Eclipse saving framework will think your editor is dirty and call your hooks preventing the editor to close.

    To avoid Eclipse incorrectly displaying messages about your editor having unsaved changes, you’ll probably want to actually implement ISaveablePart2 (docs here) and implement promptToSaveOnClose() – this can check whether the editor is really dirty, and only prompt to save (or whatever else you want) in that case.

    You may want to re-examine the underlying reason you want to keep the editor open though – the framework doesn’t normally work like this (so issues might creep in), and it seems like it would be a confusing experience to users who really really want to close the editor (and decide your application is buggy).

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

Sidebar

Related Questions

Is there anyway to add some custom stop words to SQL Server 2005?
Is there anyway to stop email spoofing if someone or some bot is sending
Is there anyway to stop the tabs from reloading the content on every access?
Is there anyway I can detect a exception and stop a plugin from loading
Is there anyway to stop automatic DataContext inheritance in Silverlight? I Set my DataContext
Is there any way to stop the callout from automatically appearing on an embedded
Is there any way to stop IB in XCode 4 from zooming to try
I was just wondering is there anyway to stop application being terminated at all
Hiall, is there anyway to stop running Javascript through Webkit inspector? I am trying
Is there anyway to get a regex pattern to automatically stop searching after one

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.