Open GEF Editor Programmatically [message #158961] |
Sun, 21 November 2004 18:55 |
Eclipse User |
|
|
|
Originally posted by: CH_FA.gmx.net
Hello all,
i am trying to open my Gef Editor programmatically.
I am using this code:
IWorkbenchPage page = ...
String editorId = "gef.example.helloworld.editor";
GEFEditorInput input = new GEGEditorInput();
try
{
page.openEditor(input, editorId, true);
}
catch ( PartInitException e )
{
e.printStackTrace();
}
I get allways the error Msg:
Editor initialization failed:
gef.example.helloworld.editor. Site is incorrect.
This error i get since i've implemented the
"public void init( IEditorSite site, IEditorInput input ) throws
PartInitException" Method in my HelloWorldEditor Class.
Does anybody know what i am doing wrong?
Thx for any proposals.
|
|
|
|
Re: Open GEF Editor Programmatically [message #158983 is a reply to message #158961] |
Mon, 22 November 2004 04:37 |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Christian Farra wrote:
> Hello all,
>
> i am trying to open my Gef Editor programmatically.
> I am using this code:
>
> IWorkbenchPage page = ...
> String editorId = "gef.example.helloworld.editor";
> GEFEditorInput input = new GEGEditorInput();
>
> try {
> page.openEditor(input, editorId, true);
> }
> catch ( PartInitException e )
> {
> e.printStackTrace();
> }
>
> I get allways the error Msg:
> Editor initialization failed: gef.example.helloworld.editor. Site is
> incorrect.
>
> This error i get since i've implemented the "public void init(
> IEditorSite site, IEditorInput input ) throws PartInitException" Method
> in my HelloWorldEditor Class.
>
Your problem is probably here. How did you implement this method?
> Does anybody know what i am doing wrong?
>
> Thx for any proposals.
>
>
>
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber."
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
Re: Open GEF Editor Programmatically [message #159007 is a reply to message #158983] |
Mon, 22 November 2004 10:15 |
Eclipse User |
|
|
|
Originally posted by: CH_FA.gmx.net
I've found a soloution for my Problem.
CL [dnoyeb] Gilbert wrote:
I did'nt call the super.init(site, input) Method in my init Method!
public void init( IEditorSite site, IEditorInput input ) throws
PartInitException
{
super.init( site, input );
....
...
}
> Christian Farra wrote:
>> Hello all,
>>
>> i am trying to open my Gef Editor programmatically.
>> I am using this code:
>>
>> IWorkbenchPage page = ...
>> String editorId = "gef.example.helloworld.editor";
>> GEFEditorInput input = new GEGEditorInput();
>>
>> try {
>> page.openEditor(input, editorId, true);
>> }
>> catch ( PartInitException e )
>> {
>> e.printStackTrace();
>> }
>>
>> I get allways the error Msg:
>> Editor initialization failed: gef.example.helloworld.editor. Site is
>> incorrect.
>>
>> This error i get since i've implemented the "public void init(
>> IEditorSite site, IEditorInput input ) throws PartInitException" Method
>> in my HelloWorldEditor Class.
>>
> Your problem is probably here. How did you implement this method?
>> Does anybody know what i am doing wrong?
>>
>> Thx for any proposals.
>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03209 seconds