Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem in Opening Custom Editor from Custom View
Problem in Opening Custom Editor from Custom View [message #256587] Tue, 29 June 2004 08:03 Go to next message
Mahesh Devjibhai Dhola is currently offline Mahesh Devjibhai DholaFriend
Messages: 14
Registered: July 2009
Junior Member
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 #256601 is a reply to message #256587] Tue, 29 June 2004 09:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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

>
>
>
>
Re: Problem in Opening Custom Editor from Custom View [message #256966 is a reply to message #256601] Wed, 30 June 2004 06:51 Go to previous message
Mahesh Devjibhai Dhola is currently offline Mahesh Devjibhai DholaFriend
Messages: 14
Registered: July 2009
Junior Member
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
>
> >
> >
> >
> >
Previous Topic:Error running Eclipse 3.0 release on WinXP
Next Topic:Problem in Text cell editor
Goto Forum:
  


Current Time: Sun Jun 30 13:55:56 GMT 2024

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

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

Back to the top