Setting the resource name in a editor [message #261915] |
Thu, 15 July 2004 17:40  |
Eclipse User |
|
|
|
Originally posted by: gtoor.pervasive.com
eclipse 3.0 release
I have implemented a multi-page editor which I invoke using the following
code
TableEditorModel input = new TableEditorModel(table);
page.openEditor(input, TableEditor.EDITOR_ID);
After making changes in the editor and closing the application, I get the
"Save Resources" dialog. My resource name is blank in the dialog. All I
see is a checkbox control, no name. How do I set the resource name? The
editor tab has no problems displaying the table name, which is what I want
displayed in the Save Resources dialog.
Here is what my tableEditor Init() method looks like
{
setPartName(input.getName());
setTitleToolTip("Edit table design");
setContentDescription("Editing table: " + input.getName());
}
Thanks in advance.
Gagan
|
|
|
Re: Setting the resource name in a editor [message #261921 is a reply to message #261915] |
Thu, 15 July 2004 18:08  |
Eclipse User |
|
|
|
Originally posted by: gtoor.pervasive.com
Figured it out.
In my IEditorInput implementation, I was returning null for the
getToolTipText() method. This was also causing an Null Pointer Exception
somewhere in eclipse's code. I am returning a blank string and the Table
name is being displayed properly in the Save Resource dialog.
"Gagan Toor" <gtoor@pervasive.com> wrote in message
news:cd6tlj$r0e$1@eclipse.org...
> eclipse 3.0 release
>
> I have implemented a multi-page editor which I invoke using the following
> code
> TableEditorModel input = new TableEditorModel(table);
> page.openEditor(input, TableEditor.EDITOR_ID);
>
> After making changes in the editor and closing the application, I get the
> "Save Resources" dialog. My resource name is blank in the dialog. All I
> see is a checkbox control, no name. How do I set the resource name? The
> editor tab has no problems displaying the table name, which is what I want
> displayed in the Save Resources dialog.
>
> Here is what my tableEditor Init() method looks like
>
> {
> setPartName(input.getName());
> setTitleToolTip("Edit table design");
> setContentDescription("Editing table: " + input.getName());
> }
>
> Thanks in advance.
> Gagan
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02972 seconds