Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Can't implement CompilationUnitEditor & Can't create my own
Can't implement CompilationUnitEditor & Can't create my own [message #117445] Mon, 17 November 2003 05:14
Eclipse UserFriend
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
Previous Topic:JDT Debugger error
Next Topic:Strange classpath referencing error
Goto Forum:
  


Current Time: Fri Aug 23 11:20:10 GMT 2024

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

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

Back to the top