Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Open a *.logic file directly from file system rather than workspace?
Open a *.logic file directly from file system rather than workspace? [message #157624] Thu, 11 November 2004 03:59 Go to next message
Eclipse UserFriend
Originally posted by: hitdemo2002.yahoo.com.cn

logic example open or save a *.logic file via ide's workspace,now ,i want
directly open or save a *.logic to native file system,that is to say, when
click file->save, popup a savedialog, select a place and filename in my
disk,and save. when click file->open,popup a opendialog,select a *.logic
file from my disk ,open it.

for implement these functions, Does i need use java.io.file,and get the
selected file's ByteArrayInputStream, but how to convert
ByteArrayInputStream to a Diagram object? i don't want to use IFile ,has
another way ?
Re: Open a *.logic file directly from file system rather than workspace? [message #157736 is a reply to message #157624] Thu, 11 November 2004 22:10 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
This is not really a GEF question. In the Java perspective, File -> Open
External File allows you to open Java files not in the workspace. You can
look at how they do that.

"hitdemo2002" <hitdemo2002@yahoo.com.cn> wrote in message
news:cmuo8e$9l5$1@eclipse.org...
> logic example open or save a *.logic file via ide's workspace,now ,i want
> directly open or save a *.logic to native file system,that is to say, when
> click file->save, popup a savedialog, select a place and filename in my
> disk,and save. when click file->open,popup a opendialog,select a *.logic
> file from my disk ,open it.
>
> for implement these functions, Does i need use java.io.file,and get the
> selected file's ByteArrayInputStream, but how to convert
> ByteArrayInputStream to a Diagram object? i don't want to use IFile ,has
> another way ?
>
>
Previous Topic:Help Needed
Next Topic:Canvas bounds and Figure bounds
Goto Forum:
  


Current Time: Tue Apr 16 22:41:24 GMT 2024

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

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

Back to the top