Bug 229710 - [EditorMgmt] I want an option to close an editor during it's creation
Summary: [EditorMgmt] I want an option to close an editor during it's creation
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-04-30 15:55 EDT by Kobi Perl CLA
Modified: 2019-09-06 16:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kobi Perl CLA 2008-04-30 15:55:48 EDT
I am an rcp developer.
I have an editor, and it takes a lot of time to create the editor, because it needs to calculate things from the db (10-20 seconds the first time, when there is no cache). 
I have added a progress bar that runs during the init function (I could have done it in the createPartControl, but it doesn't really matter)... Anyhow, I wanted to make it cancelable, but really cancelable - I want the editor to be closed if the user pressed cancel.

Can you add an option to set the editor to close, a function that one may call from the init function.

* I know that I can throw a PartInitException instead, but I don't won't it to look like a bug, I also don't want my editor to be blank \ contain a cancel label. I just want it to be closed.

* I am not sure how it should effect the editor history - I think it should be controllable, whether or not to consider this editor input in the history.
Comment 1 Boris Bokowski CLA 2008-05-01 10:39:30 EDT
(In reply to comment #0)
> I have added a progress bar that runs during the init function (I could have
> done it in the createPartControl, but it doesn't really matter)... Anyhow, I
> wanted to make it cancelable, but really cancelable - I want the editor to be
> closed if the user pressed cancel.

Makes sense to me.
Comment 2 Boris Bokowski CLA 2009-11-17 13:00:47 EST
Remy is now responsible for watching the [EditorMgmt] component area.
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:17:52 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.