Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352424

Summary: [EditorMgmt] Be able to open an editor without having a file
Product: [Eclipse Project] Platform Reporter: Michael Moossen <mmoossen>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert, pwebster, remy.suen
Version: 3.7Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Michael Moossen CLA 2011-07-19 05:14:30 EDT
Build Identifier: 

I always have the same situation. 

For instance, i got some minimized xml code that i just want to have a look at.
At the moment, i have to first create a dummy xml file to be able to open the xml editor and paste my code to format it. afterwards, i have to delete the dummy file.

it would be great just to be able to open any editor without actually having a file.

Reproducible: Always

Steps to Reproduce:
1. try to open the xml editor without having a xml file.
Comment 1 Paul Webster CLA 2011-07-19 07:14:43 EDT
It's called Untitled Text File.  You can use File>New>Other... to get to it, or CTRL+3 Untitled

PW
Comment 2 Michael Moossen CLA 2011-07-20 02:51:21 EDT
ok. i did not know about that. 
but that only allows me to open a text file editor, or am i wrong?

but i want to be able to open an xml, js, xsd, sql, pom or java editor.
i was thinking that it would be cool to have under the New menu a submenu with all installed editors.
Comment 3 Remy Suen CLA 2011-07-20 09:33:11 EDT
(In reply to comment #0)
> it would be great just to be able to open any editor without actually having a
> file.

Editors can be opened on non-file resources by the way.
Comment 4 Michael Moossen CLA 2011-07-20 11:20:26 EDT
first: thank you very much, i really appreciate the time to are spending here.

but, sorry, i did not get you.

> Editors can be opened on non-file resources by the way.
what do you exactly mean by "non-file resources"?
how?
Comment 5 Remy Suen CLA 2011-07-20 11:36:17 EDT
(In reply to comment #4)
> > Editors can be opened on non-file resources by the way.
> what do you exactly mean by "non-file resources"?

I mean items that are not meant to represent files.

For instance, I can write a plug-in that lets my monitor my databases on some server and I could "open" a database and have a database editor open that lets me modify my database's settings. This may not necessarily be backed by an actual file in the file system.

> how?

This is done easily through our APIs. Editors are provided an "input" when they are opened. This "input" is merely an abstraction and can represent anything. In the scenario above, the input is some object representing a database (and not a file).
Comment 6 Lars Vogel CLA 2019-11-14 03:21:27 EST
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.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.