Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Unable to dispose custom EditorPart(Created an extension to EditorPart which exists even after calling dispose.)
Unable to dispose custom EditorPart [message #1398027] Thu, 10 July 2014 13:59
SREENATH V is currently offline SREENATH VFriend
Messages: 1
Registered: July 2014
Junior Member
Greetings!

We are using Eclipse Kepler with Java 1.7. We have been developing a plugin using Eclipse 3.X. As part of the plugin development, we have created a custom editor type which extends EditorPart and implements IPartListener. We have overridden the dispose () method as given below:

public void dispose()
{
//custom removals for listeners etc.. and finally

super.dispose();
}


But when we open another part of the same editor type, in the partOpened() method we could see all the parts opened till now in this eclipse instance. i.e it also shows the names of the parts that have been disposed earlier using the above dispose method.

partOpened() implementation is as given below:

public void partOpened( IWorkbenchPart part )
{
System.out.println("part opened " + getPartName());
//custom code.
}


Our doubts are:
1) How to dispose an EditorPart such that it is not shown while opening another part of the same type?
2) How can we restrict opening multiple EditorParts of the same type and allow files to be open in the same EditorPart? i.e suppose a file of extension xyz has been opened in Eclipse using an EditorPart. Now, if another file of the same type has to be opened, then it should be opened in the same EditorPart and should not open a new EditorPart.


Regards,
Sreenath
Previous Topic:Testing with multiple versions.
Next Topic:Dynamic annotation type color
Goto Forum:
  


Current Time: Thu Apr 25 06:14:04 GMT 2024

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

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

Back to the top