Skip to main content



      Home
Home » Newcomers » Newcomers » Working on a File from the File System Directly
Working on a File from the File System Directly [message #269982] Sun, 05 April 2009 02:51 Go to next message
Eclipse UserFriend
Hi,
I have a xml file and i have developed an editor which will show the
contents of it graphically.
The problem is that any user will have that file somewhere in their file
system..and i want to give provision for the user to select the file
dynamically and work on it..

When i unmarshall the xml file i need to provide the file as a string,
located in the file system..

Can anyone suggest something??

Adithya.
Re: Working on a File from the File System Directly [message #269988 is a reply to message #269982] Sun, 05 April 2009 07:29 Go to previous messageGo to next message
Eclipse UserFriend
Adithya,

Have you investigated how the IDE support File->Open File.. action
works? That would seem to support what you want directly. I believe it
uses IURIEditorInput or IStorageEditorInput...


adithya wrote:
> Hi,
> I have a xml file and i have developed an editor which will show the
> contents of it graphically.
> The problem is that any user will have that file somewhere in their
> file system..and i want to give provision for the user to select the
> file dynamically and work on it..
>
> When i unmarshall the xml file i need to provide the file as a string,
> located in the file system..
>
> Can anyone suggest something??
>
> Adithya.
>
Re: Working on a File from the File System Directly [message #270311 is a reply to message #269988] Wed, 15 April 2009 09:49 Go to previous messageGo to next message
Eclipse UserFriend
Ed Merks wrote:

> Adithya,

> Have you investigated how the IDE support File->Open File.. action
> works? That would seem to support what you want directly. I believe it
> uses IURIEditorInput or IStorageEditorInput...

Actually i have created a perspective which is containing user defined
views..and i have disabled the 'editorArea'..so i am not using the
workbench editor..but the views requires a file as i mentioned
earlier..and i would like to know how does IEditorInput works,because i
couldn't get any relevant information..

How do i get the file name through ' IEditorInput ' interface ?


> adithya wrote:
>> Hi,
>> I have a xml file and i have developed an editor which will show the
>> contents of it graphically.
>> The problem is that any user will have that file somewhere in their
>> file system..and i want to give provision for the user to select the
>> file dynamically and work on it..
>>
>> When i unmarshall the xml file i need to provide the file as a string,
>> located in the file system..
>>
>> Can anyone suggest something??
>>
>> Adithya.
>>
Re: Working on a File from the File System Directly [message #270318 is a reply to message #270311] Wed, 15 April 2009 11:24 Go to previous messageGo to next message
Eclipse UserFriend
Adithya,

Typically you'll need to do instance of tests. You've looked at the
class hierarchy rooted at that type?


adithya wrote:
> Ed Merks wrote:
>
>> Adithya,
>
>> Have you investigated how the IDE support File->Open File.. action
>> works? That would seem to support what you want directly. I believe
>> it uses IURIEditorInput or IStorageEditorInput...
>
> Actually i have created a perspective which is containing user defined
> views..and i have disabled the 'editorArea'..so i am not using the
> workbench editor..but the views requires a file as i mentioned
> earlier..and i would like to know how does IEditorInput works,because
> i couldn't get any relevant information..
>
> How do i get the file name through ' IEditorInput ' interface ?
>
>
>> adithya wrote:
>>> Hi,
>>> I have a xml file and i have developed an editor which will show the
>>> contents of it graphically.
>>> The problem is that any user will have that file somewhere in their
>>> file system..and i want to give provision for the user to select the
>>> file dynamically and work on it..
>>>
>>> When i unmarshall the xml file i need to provide the file as a
>>> string, located in the file system..
>>>
>>> Can anyone suggest something??
>>>
>>> Adithya.
>>>
>
>
Re: Working on a File from the File System Directly [message #270320 is a reply to message #270318] Wed, 15 April 2009 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Ed Merks wrote:

> Adithya,

> Typically you'll need to do instance of tests. You've looked at the
> class hierarchy rooted at that type?

No.How do i look at it??
What type of instance tests do you recommend?How does one carry it out?

> adithya wrote:
>> Ed Merks wrote:
>>
>>> Adithya,
>>
>>> Have you investigated how the IDE support File->Open File.. action
>>> works? That would seem to support what you want directly. I believe
>>> it uses IURIEditorInput or IStorageEditorInput...
>>
>> Actually i have created a perspective which is containing user defined
>> views..and i have disabled the 'editorArea'..so i am not using the
>> workbench editor..but the views requires a file as i mentioned
>> earlier..and i would like to know how does IEditorInput works,because
>> i couldn't get any relevant information..
>>
>> How do i get the file name through ' IEditorInput ' interface ?
>>
>>
>>> adithya wrote:
>>>> Hi,
>>>> I have a xml file and i have developed an editor which will show the
>>>> contents of it graphically.
>>>> The problem is that any user will have that file somewhere in their
>>>> file system..and i want to give provision for the user to select the
>>>> file dynamically and work on it..
>>>>
>>>> When i unmarshall the xml file i need to provide the file as a
>>>> string, located in the file system..
>>>>
>>>> Can anyone suggest something??
>>>>
>>>> Adithya.
>>>>
>>
>>
Re: Working on a File from the File System Directly [message #270326 is a reply to message #270320] Wed, 15 April 2009 14:49 Go to previous messageGo to next message
Eclipse UserFriend
Adithya,

You really need to read some documentation about what JDT can all do for
you!


adithya wrote:
> Ed Merks wrote:
>
>> Adithya,
>
>> Typically you'll need to do instance of tests. You've looked at the
>> class hierarchy rooted at that type?
>
> No.How do i look at it??
> What type of instance tests do you recommend?How does one carry it out?
>
>> adithya wrote:
>>> Ed Merks wrote:
>>>
>>>> Adithya,
>>>
>>>> Have you investigated how the IDE support File->Open File.. action
>>>> works? That would seem to support what you want directly. I
>>>> believe it uses IURIEditorInput or IStorageEditorInput...
>>>
>>> Actually i have created a perspective which is containing user
>>> defined views..and i have disabled the 'editorArea'..so i am not
>>> using the workbench editor..but the views requires a file as i
>>> mentioned earlier..and i would like to know how does IEditorInput
>>> works,because i couldn't get any relevant information..
>>>
>>> How do i get the file name through ' IEditorInput ' interface ?
>>>
>>>
>>>> adithya wrote:
>>>>> Hi,
>>>>> I have a xml file and i have developed an editor which will show
>>>>> the contents of it graphically.
>>>>> The problem is that any user will have that file somewhere in
>>>>> their file system..and i want to give provision for the user to
>>>>> select the file dynamically and work on it..
>>>>>
>>>>> When i unmarshall the xml file i need to provide the file as a
>>>>> string, located in the file system..
>>>>>
>>>>> Can anyone suggest something??
>>>>>
>>>>> Adithya.
>>>>>
>>>
>>>
>
>
Re: Working on a File from the File System Directly [message #270342 is a reply to message #270326] Thu, 16 April 2009 03:46 Go to previous messageGo to next message
Eclipse UserFriend
Ed Merks wrote:

> Adithya,

> You really need to read some documentation about what JDT can all do for
> you!

Could you please suggest as to how do i proceed?I mean i couldn't get as
to how to give a file as an input to a perspective's view?(Both
perspective and view are user defined)..
Please.


> adithya wrote:
>> Ed Merks wrote:
>>
>>> Adithya,
>>
>>> Typically you'll need to do instance of tests. You've looked at the
>>> class hierarchy rooted at that type?
>>
>> No.How do i look at it??
>> What type of instance tests do you recommend?How does one carry it out?
>>
>>> adithya wrote:
>>>> Ed Merks wrote:
>>>>
>>>>> Adithya,
>>>>
>>>>> Have you investigated how the IDE support File->Open File.. action
>>>>> works? That would seem to support what you want directly. I
>>>>> believe it uses IURIEditorInput or IStorageEditorInput...
>>>>
>>>> Actually i have created a perspective which is containing user
>>>> defined views..and i have disabled the 'editorArea'..so i am not
>>>> using the workbench editor..but the views requires a file as i
>>>> mentioned earlier..and i would like to know how does IEditorInput
>>>> works,because i couldn't get any relevant information..
>>>>
>>>> How do i get the file name through ' IEditorInput ' interface ?
>>>>
>>>>
>>>>> adithya wrote:
>>>>>> Hi,
>>>>>> I have a xml file and i have developed an editor which will show
>>>>>> the contents of it graphically.
>>>>>> The problem is that any user will have that file somewhere in
>>>>>> their file system..and i want to give provision for the user to
>>>>>> select the file dynamically and work on it..
>>>>>>
>>>>>> When i unmarshall the xml file i need to provide the file as a
>>>>>> string, located in the file system..
>>>>>>
>>>>>> Can anyone suggest something??
>>>>>>
>>>>>> Adithya.
>>>>>>
>>>>
>>>>
>>
>>
Re: Working on a File from the File System Directly [message #270352 is a reply to message #270342] Thu, 16 April 2009 06:56 Go to previous messageGo to next message
Eclipse UserFriend
Adithya,

I'd take the approach of debugging an editor that's opened from
File->Open File... to see what kind of input in creates and how.


adithya wrote:
> Ed Merks wrote:
>
>> Adithya,
>
>> You really need to read some documentation about what JDT can all do
>> for you!
>
> Could you please suggest as to how do i proceed?I mean i couldn't get
> as to how to give a file as an input to a perspective's view?(Both
> perspective and view are user defined)..
> Please.
>
>
>> adithya wrote:
>>> Ed Merks wrote:
>>>
>>>> Adithya,
>>>
>>>> Typically you'll need to do instance of tests. You've looked at
>>>> the class hierarchy rooted at that type?
>>>
>>> No.How do i look at it??
>>> What type of instance tests do you recommend?How does one carry it out?
>>>
>>>> adithya wrote:
>>>>> Ed Merks wrote:
>>>>>
>>>>>> Adithya,
>>>>>
>>>>>> Have you investigated how the IDE support File->Open File..
>>>>>> action works? That would seem to support what you want
>>>>>> directly. I believe it uses IURIEditorInput or
>>>>>> IStorageEditorInput...
>>>>>
>>>>> Actually i have created a perspective which is containing user
>>>>> defined views..and i have disabled the 'editorArea'..so i am not
>>>>> using the workbench editor..but the views requires a file as i
>>>>> mentioned earlier..and i would like to know how does IEditorInput
>>>>> works,because i couldn't get any relevant information..
>>>>>
>>>>> How do i get the file name through ' IEditorInput ' interface ?
>>>>>
>>>>>
>>>>>> adithya wrote:
>>>>>>> Hi,
>>>>>>> I have a xml file and i have developed an editor which will show
>>>>>>> the contents of it graphically.
>>>>>>> The problem is that any user will have that file somewhere in
>>>>>>> their file system..and i want to give provision for the user to
>>>>>>> select the file dynamically and work on it..
>>>>>>>
>>>>>>> When i unmarshall the xml file i need to provide the file as a
>>>>>>> string, located in the file system..
>>>>>>>
>>>>>>> Can anyone suggest something??
>>>>>>>
>>>>>>> Adithya.
>>>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Re: Working on a File from the File System Directly [message #270354 is a reply to message #270352] Thu, 16 April 2009 08:31 Go to previous message
Eclipse UserFriend
Ed Merks wrote:
> Adithya,
>
> I'd take the approach of debugging an editor that's opened from
> File->Open File... to see what kind of input in creates and how.
Or take a look at org.eclipse.core.filebuffers plug-in.

Dani
>
>
> adithya wrote:
>> Ed Merks wrote:
>>
>>> Adithya,
>>
>>> You really need to read some documentation about what JDT can all do
>>> for you!
>>
>> Could you please suggest as to how do i proceed?I mean i couldn't get
>> as to how to give a file as an input to a perspective's view?(Both
>> perspective and view are user defined)..
>> Please.
>>
>>
>>> adithya wrote:
>>>> Ed Merks wrote:
>>>>
>>>>> Adithya,
>>>>
>>>>> Typically you'll need to do instance of tests. You've looked at
>>>>> the class hierarchy rooted at that type?
>>>>
>>>> No.How do i look at it??
>>>> What type of instance tests do you recommend?How does one carry it
>>>> out?
>>>>
>>>>> adithya wrote:
>>>>>> Ed Merks wrote:
>>>>>>
>>>>>>> Adithya,
>>>>>>
>>>>>>> Have you investigated how the IDE support File->Open File..
>>>>>>> action works? That would seem to support what you want
>>>>>>> directly. I believe it uses IURIEditorInput or
>>>>>>> IStorageEditorInput...
>>>>>>
>>>>>> Actually i have created a perspective which is containing user
>>>>>> defined views..and i have disabled the 'editorArea'..so i am not
>>>>>> using the workbench editor..but the views requires a file as i
>>>>>> mentioned earlier..and i would like to know how does IEditorInput
>>>>>> works,because i couldn't get any relevant information..
>>>>>>
>>>>>> How do i get the file name through ' IEditorInput ' interface ?
>>>>>>
>>>>>>
>>>>>>> adithya wrote:
>>>>>>>> Hi,
>>>>>>>> I have a xml file and i have developed an editor which will
>>>>>>>> show the contents of it graphically.
>>>>>>>> The problem is that any user will have that file somewhere in
>>>>>>>> their file system..and i want to give provision for the user to
>>>>>>>> select the file dynamically and work on it..
>>>>>>>>
>>>>>>>> When i unmarshall the xml file i need to provide the file as a
>>>>>>>> string, located in the file system..
>>>>>>>>
>>>>>>>> Can anyone suggest something??
>>>>>>>>
>>>>>>>> Adithya.
>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
Previous Topic:menus: visibleWhen=hasActiveHandler?
Next Topic:How to debug a share libray by eclipse CDT
Goto Forum:
  


Current Time: Sat May 10 02:07:57 EDT 2025

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

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

Back to the top