Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Weird error while copying CompilationUnitEditor
Weird error while copying CompilationUnitEditor [message #154822] Sun, 09 November 2003 23:47 Go to next message
Eclipse UserFriend
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 #155366 is a reply to message #154822] Tue, 11 November 2003 06:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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
>
>
>
Re: Weird error while copying CompilationUnitEditor [message #155475 is a reply to message #155366] Tue, 11 November 2003 11:21 Go to previous messageGo to next message
Eclipse UserFriend
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.

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
> >
> >
> >
Re: Weird error while copying CompilationUnitEditor [message #156330 is a reply to message #155475] Thu, 13 November 2003 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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
>>>
>>>
>>>
>>>
>>>
>
>
>
>
Re: Weird error while copying CompilationUnitEditor [message #156797 is a reply to message #156330] Fri, 14 November 2003 08:45 Go to previous message
Eclipse UserFriend
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
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
Previous Topic:Extending the ContextMenu of Property Sheet View in EMF Editor
Next Topic:Weird error while copying CompilationUnitEditor(Cont)
Goto Forum:
  


Current Time: Tue Jul 22 08:25:12 EDT 2025

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

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

Back to the top