[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-ui-dev] [Editor Mgmt] Make EditorManager$Editor adaptable
|
On Friday 06 September 2002 01:20 pm, you wrote:
> I can't promise when I will be able to address this one since it is
> not a bug but a requirement for new functionality. I understand the code
> is simple but when released I would have to support it so I like to think
> about it a bit more.
>>
>> http://bugs.eclipse.org/bugs/show_bug.cgi?id=23032
Btw, I'd be happy to maintain this code myself.
- Jared
Index: EditorManager.java
===================================================================
RCS file: /home/eclipse/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorManager.java,v
retrieving revision 1.49
diff -u -r1.49 EditorManager.java
--- EditorManager.java 1 Aug 2002 20:12:59 -0000 1.49
+++ EditorManager.java 4 Sep 2002 20:09:29 -0000
@@ -1108,7 +1108,7 @@
return false;
}
- private class Editor extends WorkbenchPartReference implements IEditorReference {
+ private class Editor extends WorkbenchPartReference implements IEditorReference, IAdaptable {
private IEditorPart part;
private IMemento editorMemento;
private String name;
@@ -1135,6 +1135,9 @@
}
Editor() {
this.name = name;
+ }
+ public Object getAdapter(Class adapter) {
+ return Platform.getAdapterManager().getAdapter(this, adapter);
}
public void dispose() {
if(image != null && imageDescritor != null) {