Problem in Opening Custom Editor from Custom View [message #256587] |
Tue, 29 June 2004 04:03  |
Eclipse User |
|
|
|
Hi,
I have developed a view, that is fetching table and column lists from
database and shows in tree view as below
Table1
Column1
Column2
Table 2
Column1
Column2
Now I have created an Editor that fetches a table and its values and shows
in editor with cell editors
Editor is file based with extension of .dte and when I open table1.dte it
shows data of table1 for editing
The both view and editor works fine individually
Now I just want to do, that when user double clicks on Table1 in View, it
should open editor for table1
I have implemented double-click listener and so on.
but I have main problem that how to open the editor from view using what?
I have tried with openEditor(..) but I am not figureout the solution.
Please help me....
|
|
|
|
Re: Problem in Opening Custom Editor from Custom View [message #256966 is a reply to message #256601] |
Wed, 30 June 2004 02:51  |
Eclipse User |
|
|
|
Hi Dani,
Thanks a lot for your reply,
I have tried the way you said.
But the question is,
Eclipse says that editor can be made for any kind of inputs, so is it
possible to open editor without using file i mean without filebased editor
invocation?
I have temporarily implemented a wizard that restricts user to create file
other than i wanted to and it opens the editor using file and
IDE.openEditor(...) but if it can be open without using IFile/file then it
will be good for my requirement.
Help me if possible....
Thanks in Advance...:)
"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:cbrbjm$fq0$1@eclipse.org...
> Mahesh Devjibhai Dhola wrote:
>
> >Hi,
> >I have developed a view, that is fetching table and column lists from
> >database and shows in tree view as below
> >
> >Table1
> > Column1
> > Column2
> >Table 2
> > Column1
> > Column2
> >
> >Now I have created an Editor that fetches a table and its values and
shows
> >in editor with cell editors
> >Editor is file based with extension of .dte and when I open table1.dte it
> >shows data of table1 for editing
> >
> >The both view and editor works fine individually
> >
> >Now I just want to do, that when user double clicks on Table1 in View, it
> >should open editor for table1
> >I have implemented double-click listener and so on.
> >but I have main problem that how to open the editor from view using what?
> >I have tried with openEditor(..) but I am not figureout the solution.
> >
> >Please help me....
> >
> >
> I assume you can get the file (IFile) when clicking in the view. You can
> then use:
> IDE.openEditor(IWorkbenchPage, IFile)
>
> HTH
> Dani
>
> >
> >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03724 seconds