| Summary: | texteditorrecipes example gives error when opening editor | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kitesurfer () <hans.netten> | ||||||
| Component: | Text | Assignee: | Dani Megert <daniel_megert> | ||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | daniel_megert, remy.suen | ||||||
| Version: | 3.6 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows Vista | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Kitesurfer ()
This works fine for me with these steps: 1. download Eclipse 3.6.1 SDK from: http://download.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php 2. start with new workspace using Oracle JRE 1.6.0 3. File > Import... > Existing Projects into Workspace select http://www.eclipse.org/eclipse/platform-text/eclipseCon/2006 /texteditorrecipes.zip\steps\03_partitioning\org.recipeeditor.ui_1.0.0.jar 4. in the Package Explorer select the project 'org.recipeeditor.ui' 5. context menu > Run As > Eclipse Application ==> target workspace opens 6. in the target workspace: 1. create a project (File > New > Project, select General > Project) 2. copy recipes\fondue.rec from the ZIP into the project 3. open the file ==> editor opens as expected, see attached picture. Created attachment 185994 [details]
Picture showing working editor
After a second look at the picture you provided, it looks like you try to open a recipe file which is not in the (target) workspace. This is not supported by the example. (In reply to comment #3) > After a second look at the picture you provided, it looks like you try to open > a recipe file which is not in the (target) workspace. This is not supported by > the example. This indeed is the "problem". I got all the examples up and running under Eclipse Helios when editting the .rec file in a workspace. Strange that there is a difference between editting a file in a workspace and outside a workspace. Creating a workspace looks like just creating a directory. Thanks for you help. I have another question, but I'll ask that one on the forum. > Strange that there is a difference between editting a file in a workspace and
> outside a workspace. Creating a workspace looks like just creating a
> directory.
There's much more. Workspace "files" can also point to a different type of file system (e.g. a database). Primary support is for handling files known to the workspace root. Having said that, I have a new version of the example that uses TextFileDocumentProvider instead of FileDocumentProvider and this version can also open files outside the workspace (e.g. from the file system). Please drop me an e-mail if you're interested in it.
|