Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Setting the resource name in a editor
Setting the resource name in a editor [message #261915] Thu, 15 July 2004 17:40 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:[keys] how to close current view?
Next Topic:Selecting a radio button programatically
Goto Forum:
  


Current Time: Fri May 02 01:44:11 EDT 2025

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

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

Back to the top