Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » closing editors as a side-effect of resource deletion
closing editors as a side-effect of resource deletion [message #66459] Sat, 07 June 2003 12:45 Go to next message
Eclipse UserFriend
Encountered this problem in our plugins on WinXP and R2.1, but it seems to
be endemic:

1. Create a simple Java project with two trivial classes, Class1
and Class2.

2. Open a Java editor on each class, ensuring that Class1's editor
totally obscures Class2's (i.e., don't tile the editors).

3. Shut down Eclipse and restart it. Things should look pretty
much the same as before.

4. Choose "New Window" from the Window menu.

5. In the new window, delete Class1 using the Package Explorer.

6. Go to the original window. You'll notice the editor for Class1
is still there. Click on its tab. Kablooie.

Obscured editors aren't instantiated on startup---only when they're
revealed. The error comes from FileEditorInputFactory when it tries
to reload the editor's memento information: the memento's path
points to the now-deleted resource.

Any reasonable workarounds?
Re: closing editors as a side-effect of resource deletion [message #66481 is a reply to message #66459] Sat, 07 June 2003 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Let's try that again:

1. Create a simple Java project with two trivial classes, Class1
and Class2.

2. Open a Java editor on each class, ensuring that **Class2's**
editor totally obscures **Class1's** (i.e., don't tile the
editors).

3. Shut down Eclipse and restart it. Things should look pretty
much the same as before.

4. Choose "New Window" from the Window menu.

5. In the new window, delete Class1 using the Package Explorer.

6. Go to the original window. You'll notice the editor for Class1
is still there. Click on its tab. Kablooie.


"John Vlissides" <vlis@us.ibm.com> wrote in message
news:bbt4rr$r34$1@rogue.oti.com...
> Encountered this problem in our plugins on WinXP and R2.1, but it seems to
> be endemic:
>
> 1. Create a simple Java project with two trivial classes, Class1
> and Class2.
>
> 2. Open a Java editor on each class, ensuring that Class1's editor
> totally obscures Class2's (i.e., don't tile the editors).
>
> 3. Shut down Eclipse and restart it. Things should look pretty
> much the same as before.
>
> 4. Choose "New Window" from the Window menu.
>
> 5. In the new window, delete Class1 using the Package Explorer.
>
> 6. Go to the original window. You'll notice the editor for Class1
> is still there. Click on its tab. Kablooie.
>
> Obscured editors aren't instantiated on startup---only when they're
> revealed. The error comes from FileEditorInputFactory when it tries
> to reload the editor's memento information: the memento's path
> points to the now-deleted resource.
>
> Any reasonable workarounds?
>
>
>
>
>
>
Re: closing editors as a side-effect of resource deletion [message #68055 is a reply to message #66481] Mon, 09 June 2003 10:31 Go to previous message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

Open a problem report againts Platform - UI

Simon :-)

"John Vlissides" <vlis@us.ibm.com> wrote in message
news:bbtb4l$tqm$1@rogue.oti.com...
> Let's try that again:
>
> 1. Create a simple Java project with two trivial classes, Class1
> and Class2.
>
> 2. Open a Java editor on each class, ensuring that **Class2's**
> editor totally obscures **Class1's** (i.e., don't tile the
> editors).
>
> 3. Shut down Eclipse and restart it. Things should look pretty
> much the same as before.
>
> 4. Choose "New Window" from the Window menu.
>
> 5. In the new window, delete Class1 using the Package Explorer.
>
> 6. Go to the original window. You'll notice the editor for Class1
> is still there. Click on its tab. Kablooie.
>
>
> "John Vlissides" <vlis@us.ibm.com> wrote in message
> news:bbt4rr$r34$1@rogue.oti.com...
> > Encountered this problem in our plugins on WinXP and R2.1, but it seems
to
> > be endemic:
> >
> > 1. Create a simple Java project with two trivial classes, Class1
> > and Class2.
> >
> > 2. Open a Java editor on each class, ensuring that Class1's editor
> > totally obscures Class2's (i.e., don't tile the editors).
> >
> > 3. Shut down Eclipse and restart it. Things should look pretty
> > much the same as before.
> >
> > 4. Choose "New Window" from the Window menu.
> >
> > 5. In the new window, delete Class1 using the Package Explorer.
> >
> > 6. Go to the original window. You'll notice the editor for Class1
> > is still there. Click on its tab. Kablooie.
> >
> > Obscured editors aren't instantiated on startup---only when they're
> > revealed. The error comes from FileEditorInputFactory when it tries
> > to reload the editor's memento information: the memento's path
> > points to the now-deleted resource.
> >
> > Any reasonable workarounds?
> >
> >
> >
> >
> >
> >
>
>
Previous Topic:One CVS Branched module fail to load
Next Topic:Output to JAR file instead of class files -- possible?
Goto Forum:
  


Current Time: Fri Apr 25 01:24:49 EDT 2025

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

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

Back to the top