|
Re: EFS question ... [message #327552 is a reply to message #327549] |
Thu, 24 April 2008 13:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: merks.ca.ibm.com
Kar,
There are other open methods that take an IEditorInput or a URI so you
might try those. Here's a snip from of some utility code in
org.eclipse.emf.edit.ui.uti.EditUIUtil we wrote recently to make opening
editors in RCP easier for us:
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchPage page =
workbench.getActiveWorkbenchWindow().getActivePage();
IEditorPart editorPart = page.openEditor(editorInput,
workbench.getEditorRegistry().getDefaultEditor(uri.lastSegme nt()).getId());
KarSc wrote:
> Hi all,
> Not sure this is the right forum where post questions on EFS . if no
> please just let me know .
>
> The question is about the use of EFS . and what I have done in mapping
> (using EFS) my Object database.
>
> Following the examples I have found I built the XXXFileStore and
> linked it at the resources view .
> everything was just working fine (I can see the tree nicely created
> and I could open modify and save back content files and so on)
>
> But
>
> What about creating my own view?
>
> I just created a simple TreeViewer with its own provider based on
> XXXFileStore input
> It worked just fine but I can only open file (using the file store)
> using the default text editor .
>
> I have seen that the OpenAction from the resource view works on
> IDE.openEditor(IWorkbenchPage, IFile).
>
> Do I really need to implement my own XFile object that implements the
> IFile interface .
> Probably there are things not clear for me and what I'm trying to do
> is wrong .
>
> If someone could give me any information . I would really appreciate it.
>
> Regards
>
> Kar
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05254 seconds