[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] Method to open source files in an editor window in PTP
|
Hi Dave,
The error message is pretty cryptic, the only thing I can think of is that IFileStore objects can also be used to represent directories, so maybe "System editor can only open file base resources" means you are trying to open a directory in the editor.
The one time I had to use IDE.openEditorOnFileStore I basically just followed this page from the eclipse wiki:
http://wiki.eclipse.org/FAQ_How_do_I_open_an_editor_programmatically%3F
Otherwise all I can say is get the exception stack trace, get the eclipse source code and start debugging :)
Mike Kucera
Software Developer
IBM Toronto
mkucera@xxxxxxxxxx
Greg Watson ---10/08/2009 06:03:09 PM---I would guess there is something in RDT to do this. Perhaps Chris or
![]()
From: | ![]()
Greg Watson <g.watson@xxxxxxxxxxxx> |
![]()
To: | ![]()
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx> |
![]()
Date: | ![]()
10/08/2009 06:03 PM |
![]()
Subject: | ![]()
Re: [ptp-dev] Method to open source files in an editor window in PTP |
I would guess there is something in RDT to do this. Perhaps Chris or
Mike could help?
Greg
On Oct 8, 2009, at 4:20 PM, Dave Wootton wrote:
> Hi
> Is there a method in the PTP code that I can use to open an editor
> window
> for a source file? I have an IFileStore object representing a file
> on the
> remote system that I need to open an editor window for. I'm using IDE.
> openEditorOnFileStoreto do this. This works for C source files but
> results
> in a PartInitException execption with the message 'System editor can
> only
> open file base resources' as the explanation.
>
> Thanks
> Dave
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev

