Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » close swr-rcp application without confirmation
close swr-rcp application without confirmation [message #1249657] Tue, 18 February 2014 13:43
Patrick L is currently offline Patrick LFriend
Messages: 1
Registered: February 2014
Junior Member
Hello everyone,

I am currently trying to close my Eclipse swt-rcp application and discard all changes but I am not successful. I am trying to close the Application after the computer worked for some days. So I cannot let the user answer to the confirmation dialog about saving Editors. what I am trying:
Boolean toggleSave;
IWorkbench workbench = PlatformUI.getWorkbench();
if(toggleSave) {
	// save all editors without confirmation
} else {
	// do not save and close

Since it is a large Project, i cannot change the workbench and others. We are the using org.eclipse.ui.internal implementation.

I tried to mark editors as not dirty, use WorkbenchWindow, editors or pages but could not find a solution without removing the editors from workspace.

Previous Topic:Programmatically trim a toolbar 3.x
Next Topic:On the use of Workspace and WorkManager API
Goto Forum:

Current Time: Sat Nov 28 11:33:09 GMT 2015

Powered by FUDForum. Page generated in 0.03369 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software