Weird error while copying CompilationUnitEditor [message #154822] |
Sun, 09 November 2003 23:47  |
Eclipse User |
|
|
|
Hi all,
I like to extend my JavaEditor to CompilationUnitEditor but I can't as it
is an internal class.So I though why don't I copy the code into my project
and then use it.After doing so I am getting errors that shouldn't be
there,and I have no way of knowing if the error is based on my mistake or
it is something with the class dependicies.
For example:
Like in the constructor of the CompilationUnitEditor I get the following
error on this code
fJavaEditorErrorTickUpdater = new JavaEditorErrorTickUpdater(this);
the error is on new JavaEditorErrorTickUpdater(this) and it states "The
constructor JavaEditorErrorTickUpdater(compilationUnitEditor) is undefined"
Besides this one I am also getting the same error on some other
construtors where the required plugin has already been imported.
Other than this the JavaEditor(internal one) is also giving me simpler
errors.
Thanks in advance
Syed
|
|
|
|
|
|
Re: Weird error while copying CompilationUnitEditor [message #156797 is a reply to message #156330] |
Fri, 14 November 2003 08:45  |
Eclipse User |
|
|
|
Hi Danial
The code is in CompilationUnitEditor class in createAction method.The code
that is giving me error is given below
fGenerateActionGroup = new
GenerateActonGroup(this,ITextEditorActons.GROUP_EDIT);
The error says that "the Constructor
GenerateActionGroup(CompilationUniteditor, String) is undefined"
Where GenerateActionGroup is not an internal method and is inmported.
I am getting the same error in the next line with method
RefactorActionGroup.
Thanks for earlier help.
Syed
Daniel Megert wrote:
> Syed wrote:
> >Daniel
> >
> >Yes I just added JavaEditorErrorTickUpdater,that error is gone but there
> >are pligins that are not internal and still the same constructor error is
> >there,all the required jar files are there in java build path.
> >The constructor error is there for RefactorActionGroup where this plugin
> >is not internal so I don't see any reason for this error,as jdt.jar is
> >also in the java buid path which has this class.
> >
> >
> Hard to say without seeing the code. Maybe there's a build path problem
> (cycle) or you need to do a full build. If this does not help. Try to
> narrow it down and file a bug report.
> Dani
> >thanks for your help.
> >
> >Syed
> >
> >
> >Megert wrote:
> >
> >
> >
> >>Syed wrote:
> >>
> >>
> >
> >
> >
> >>>Hi all,
> >>>
> >>>I like to extend my JavaEditor to CompilationUnitEditor but I can't as it
> >>>is an internal class.So I though why don't I copy the code into my project
> >>>and then use it.After doing so I am getting errors that shouldn't be
> >>>there,and I have no way of knowing if the error is based on my mistake or
> >>>it is something with the class dependicies.
> >>>
> >>>For example:
> >>>
> >>>Like in the constructor of the CompilationUnitEditor I get the following
> >>>error on this code
> >>>
> >>>fJavaEditorErrorTickUpdater = new JavaEditorErrorTickUpdater(this);
> >>>
> >>>the error is on new JavaEditorErrorTickUpdater(this) and it states "The
> >>>constructor JavaEditorErrorTickUpdater(compilationUnitEditor) is
undefined"
> >>>
> >>>Besides this one I am also getting the same error on some other
> >>>construtors where the required plugin has already been imported.
> >>>
> >>>
> >>>
> >>>
> >>Did you copy the error tick updater? Is the build path correct? Did you
> >>change the package name of the copied types and if not did you ensure
> >>that the same classes aren't twice on the build path?
> >>
> >>
> >
> >
> >
> >>Dani
> >>
> >>
> >
> >
> >
> >>>Other than this the JavaEditor(internal one) is also giving me simpler
> >>>errors.
> >>>
> >>>Thanks in advance
> >>>
> >>>Syed
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03938 seconds