Can't implement CompilationUnitEditor & Can't create my own [message #117445] |
Mon, 17 November 2003 05:14 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: sma_r.hotmial.com
Hi all,
I have already asked questions related to this but have not yet found any
solution to my problem.I have created my own javaeditor from the example,I
like that editor to implement CompilationUnitEditor,but I can't as it is
an internal plugin.
To rectify this I started copying all the required classes for
CompilationUnitEditor but so have nearly copied 30 files or so.Most of
which are internal files.The only thing I am not sure is how would I get
to know how many more files are required to remove all the errors from
compilationUnitEditor.
If I copy one class file,to remove its errors I have to copy more files
and this keeps on going on and on.
Secondly there are errors in CompilationUnitEditor and some related files
that I am not sure how to remove as those classes are out of there
packages which they are either depending directly or indirectly.
For example in JavaHistoryAction
I am getting an error in protected IFilegetFile method where cu is
ICompilationUnitEditor and it is trying to call the exists() method of
IJavaElement class,below it is also trying to call isWorkingCopy,
getOriginalElement methods.All these classes are present in the ClassPath
as well are there in project(copied).
To what i think of is that the compiler is having some sort of difficulty
in calling these class or recognizing them as the ones being called.
There are other errors related to this type of errors that are driving me
crazy.
I would really apprecaite if someone can help me out with this.The only
reason I want my editor to extend CompilationUniteditor is because I have
to call setEditable() method for my editor and this can only hapen if my
editor is extending it.I have tested it also.
Thanks in advance
Syed
|
|
|
Powered by
FUDForum. Page generated in 0.03341 seconds