MultiPageEditor + HTML Source Page Editor [message #86155] |
Wed, 23 March 2005 05:43  |
Eclipse User |
|
|
|
Originally posted by: rpereira.di.ubi.pt
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C52F95.32AF0290
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I'm new in eclipse.
I'm trying to use the "HTML Source Page Editor" from "WST" in a =
"MultiPageEditor", but "addPage" receives "IEditorPart" in first =
argument. How can I do that? It's possible?
Thanks.
My code:
void createPage0() {
try {
//editor =3D new HTMLEditorPlugin();
HTMLUIPlugin editor =3D new HTMLUIPlugin();
index =3D addPage(editor, getEditorInput()); /* ERROR */
setPageText(0, "simple source");
setPartName(getEditorInput().getName());
} catch (PartInitException e) {....}
}
------=_NextPart_000_000C_01C52F95.32AF0290
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2604" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<P><FONT face=3DArial size=3D2>Hi,</FONT></P>
<P><FONT face=3DArial size=3D2>I=92m new in eclipse.</FONT></P>
<P><FONT face=3DArial size=3D2>I=92m trying to use the "HTML Source Page =
Editor" from=20
"WST" in a "MultiPageEditor", but "addPage" receives "IEditorPart" in =
first=20
argument. How can I do that? It's possible?</FONT></P>
<P><FONT face=3DArial size=3D2>Thanks.</FONT></P>
<P><FONT face=3DArial size=3D2>My code:</FONT></P>
<P><FONT face=3D"Courier New" size=3D2>void createPage0() {</FONT></P>
<P><FONT face=3D"Courier New" size=3D2> try =
{</FONT></P>
<P><FONT face=3D"Courier New" size=3D2> =
=20
//editor =3D new HTMLEditorPlugin();</FONT></P>
<P><FONT face=3D"Courier New" size=3D2> =
=20
HTMLUIPlugin editor =3D new HTMLUIPlugin();</FONT></P>
<P><FONT face=3D"Courier New" size=3D2></FONT></P>
<P><FONT face=3D"Courier New" size=3D2> =
index =3D=20
addPage(editor, getEditorInput()); /* ERROR */</FONT></P>
<P><FONT face=3D"Courier New" size=3D2> =
=20
setPageText(0, "simple source");</FONT></P>
<P><FONT face=3D"Courier New" size=3D2> =
=20
setPartName(getEditorInput().getName());</FONT></P>
<P><FONT face=3D"Courier New" size=3D2></FONT></P>
<P><FONT face=3D"Courier New" size=3D2> } catch =
(PartInitException=20
e) {</FONT><FONT face=3D"Courier New" size=3D2>....</FONT><FONT =
face=3D"Courier New"=20
size=3D2>}</FONT></P>
<P><FONT face=3D"Courier New" size=3D2>}</FONT></P></BODY></HTML>
------=_NextPart_000_000C_01C52F95.32AF0290--
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03090 seconds