Working on a File from the File System Directly [message #269982] |
Sun, 05 April 2009 02:51  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.10006 seconds