Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » MinimalEditor based on AbstracttextEditor
MinimalEditor based on AbstracttextEditor [message #290781] Thu, 01 September 2005 01:10 Go to next message
Syed Rizvi is currently offline Syed RizviFriend
Messages: 145
Registered: July 2009
Senior Member
Hi there,

I like to know what are the set of methods that are required for a
MinimalEditor that extends AbstractTextEditor, similar to the
MinimalEditor that extends EditorPart found in EclipseFaq. I know
JavaEditor example does extend TextEditor but I am looking for a simpler
example to test the following code:

ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager();
IPath location= iFile.getFullPath();
manager.connect(location, new NullProgressMonitor());
textFileBuffer= manager.getTextFileBuffer(location);
document= textFileBuffer.getDocument();

Where my editor should extend TextFileDocumentProvider.

I would appreciate any pointer.

thanks

Syed
Re: MinimalEditor based on AbstracttextEditor [message #290788 is a reply to message #290781] Thu, 01 September 2005 07:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Syed wrote:

> Hi there,
>
> I like to know what are the set of methods that are required for a
> MinimalEditor that extends AbstractTextEditor,

Depends on what you expect from that editor.

> similar to the MinimalEditor that extends EditorPart found in
> EclipseFaq. I know JavaEditor example does extend TextEditor but I am
> looking for a simpler example to test the following code:

What do you want to test exactly?

Dani

> ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager();
> IPath location= iFile.getFullPath();
> manager.connect(location, new NullProgressMonitor());
> textFileBuffer= manager.getTextFileBuffer(location);
> document= textFileBuffer.getDocument();
>
> Where my editor should extend TextFileDocumentProvider.
>
> I would appreciate any pointer.
>
> thanks
>
> Syed
>
Re: MinimalEditor based on AbstracttextEditor [message #290836 is a reply to message #290788] Thu, 01 September 2005 23:21 Go to previous message
Syed Rizvi is currently offline Syed RizviFriend
Messages: 145
Registered: July 2009
Senior Member
In my last post(link given below) I was looking for a solution where I can
create an editor that can take input from a socket(like a client server
application) but in my case the it is a one way affair where the client is
waiting for a response from the server, without a request being sent by
the client. The solutiion I have found out all let me enter a fixed size
of text into the editor which doesn't serve my requirement.
Your response to my question was the above code snippet.This only works
where the editor extends a TextFileDocumentProvider.
I can receive the text from the socket but I need that text to be attached
to the EditorInput somehow without starting the editor again and again.
I can't figure out how can this code snippet with DocumentListener whould
help me get my result, as whenever I receive some text from the socket it
would stored in a vector and then sent to EditorInput.

http://dev.eclipse.org/newslists/news.eclipse.platform/msg44 282.html

I am trying my best to make some sense here.

Appreciate your response

Syed
Previous Topic:Delaying creation of WizardPages
Next Topic:"Help content" could not be visited
Goto Forum:
  


Current Time: Thu Apr 25 14:40:21 GMT 2024

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

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

Back to the top