Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Editor closing/background
Editor closing/background [message #444603] Sat, 16 October 2004 09:42 Go to next message
Eclipse UserFriend
Originally posted by: xavier.andre.wanadoo.fr

Hi guys,

I'm new in plugin development and I need some help. I try to find it in =
faqs without success.
Here what I want to do:

* Client A opens a remote file (a link in the project on a remote
file). The file is writable and it creates a lock file.
* At the same time client B wants to access to this same file. I want
to open the file in an editor in read-only mode (I knows thanks to the =
lock
file) and to put a special background on this editor.

Here my different classes used:

* MyEditor extended TextEditor
* MyPartListener extends IPartListener


I found how to create lock-file but I can not delete its in partClosed() =
in my listener but it creates a NullPointerException and I do not pass to
= open an editor in read-only mode without changing the remote.


Could someone can help to do that?


Thanks
Xavier
Re: Editor closing/background [message #444635 is a reply to message #444603] Mon, 18 October 2004 14:44 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Please ask your question in the eclipse.platform newsgroup.


"Xav" <xavier.andre@wanadoo.fr> wrote in message
news:ckqqf2$lea$1@eclipse.org...
> Hi guys,
>
> I'm new in plugin development and I need some help. I try to find it in =
> faqs without success.
> Here what I want to do:
>
> * Client A opens a remote file (a link in the project on a remote
> file). The file is writable and it creates a lock file.
> * At the same time client B wants to access to this same file. I want
> to open the file in an editor in read-only mode (I knows thanks to the =
> lock
> file) and to put a special background on this editor.
>
> Here my different classes used:
>
> * MyEditor extended TextEditor
> * MyPartListener extends IPartListener
>
>
> I found how to create lock-file but I can not delete its in partClosed() =
> in my listener but it creates a NullPointerException and I do not pass to
> = open an editor in read-only mode without changing the remote.
>
>
> Could someone can help to do that?
>
>
> Thanks
> Xavier
>
Previous Topic:FileDialog Extension Filter does not work ?!
Next Topic:performOK not called (Properties)
Goto Forum:
  


Current Time: Fri Apr 26 21:15:40 GMT 2024

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

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

Back to the top