Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Need some support about Web Page Editor
Need some support about Web Page Editor [message #618335] Sat, 30 August 2008 06:47
Khai Huynh is currently offline Khai HuynhFriend
Messages: 6
Registered: July 2009
Junior Member
Hello,
My Name's Khai Huynh, I'm Vietnamese student. I have just install Eclipse
WTP, I want to use "Web Page Editor" to design my html file, then I
implement a plug-in which get content of "Web Page Editor" (get content of
file html which I'm designing).

But I have problem about get content of "Web Page Editor". The follow code
which is OK when I use some other text-editor, but it don't work when I use
"Web Page Editor":
//---------------------------------------------------------- ----------
IDocumentProvider documentProvider;
ITextEditor textEditor = (ITextEditor)
window.getPages()[0].getActiveEditor();
documentProvider = textEditor.getDocumentProvider();
IDocument document;
document =
documentProvider.getDocument(window.getPages()[0].getActiveE ditor().getEditorInput());
// then document variable will contain the content of current editor, but
it
doesn't work with Web Page Editor
//---------------------------------------------------------- ----------


Can you help me to get content of Web Page Editor?
Can you give the sample code to get content of Web Page Editor?
Looking for your respond,
Thank you very much,

Best regards,
Khai Huynh
Previous Topic:Oracle Enterprise Pack for Eclipse 1.0 urls and info
Next Topic:Need some support about Web Page Editor
Goto Forum:
  


Current Time: Sat Apr 27 06:35:45 GMT 2024

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

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

Back to the top