Home » Language IDEs » Java Development Tools (JDT) » Refactor > Rename
|
Re: Refactor > Rename [message #19511 is a reply to message #19464] |
Mon, 12 May 2003 07:11 |
Eclipse User |
|
|
|
Originally posted by: sbernatsky.ukr.net
Hello.
snpe wrote:
> I try refactor > rename for class, field, method and it don't work.
> I don't get Compilation unit,I have nothing in source,nothing in log.
> Command do nothing.
> What is a problem ?
> My system : linux-gtk (rh 8.0), eclipse 2.1
I've found the same behaviour when I compiled eclipse from sources with
javac target '1.3' (this is default for javac from j2sdk 1.4.1) or '1.4'.
best regards,
Stanislav V. Bernatsky
|
|
| |
Re: Refactor > Rename [message #19954 is a reply to message #19908] |
Mon, 12 May 2003 15:46 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
> Refactor -> rname don't work, too
can you try searching for references (to the element that you'd like to rename) and tell me if that works
thanks
a.
--
eclipse.org
|
|
| | |
Re: Refactor > Rename [message #20813 is a reply to message #20195] |
Tue, 13 May 2003 09:36 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
> Hello Adam,
> If I try rename when have bad selection (nothing select or complete line
> select) I get error
what kind of error?
can you post a simple example here?
a.
--
eclipse.org
|
|
|
Re: Refactor > Rename [message #20861 is a reply to message #20813] |
Tue, 13 May 2003 13:31 |
Haris Peco Messages: 1072 Registered: July 2009 |
Senior Member |
|
|
If I select nothing and call refactor -> rename I get dialog with error :
Operation unavailable on the current selection.
Select a java project, source folder, resource package,
completion unit, type , field, method, parameter or a local variable.
If I select a java project or anything I get nothing.
It haven't message, error ...
I am try on win xp (cvs eclipse 2.1), too.It is same.
regards
Haris Peco
Adam Kiezun wrote:
>> Hello Adam,
>> If I try rename when have bad selection (nothing select or complete
>> line
>> select) I get error
>
> what kind of error?
> can you post a simple example here?
> a.
> --
> eclipse.org
|
|
|
Re: Refactor > Rename [message #20886 is a reply to message #20861] |
Tue, 13 May 2003 11:30 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
> If I select nothing and call refactor -> rename I get dialog with error :
>
> Operation unavailable on the current selection.
> Select a java project, source folder, resource package,
> completion unit, type , field, method, parameter or a local variable.
then i guess that's expected if you select something that is not
a reference to anything that could be renamed.
> If I select a java project or anything I get nothing.
> It haven't message, error ...
do you mean that you cannot rename a java project?
a.
--
eclipse.org
|
|
|
Re: Refactor > Rename [message #20892 is a reply to message #20886] |
Tue, 13 May 2003 14:44 |
Haris Peco Messages: 1072 Registered: July 2009 |
Senior Member |
|
|
Adam Kiezun wrote:
>> If I select nothing and call refactor -> rename I get dialog with error :
>>
>> Operation unavailable on the current selection.
>> Select a java project, source folder, resource package,
>> completion unit, type , field, method, parameter or a local variable.
>
> then i guess that's expected if you select something that is not
> a reference to anything that could be renamed.
>
>> If I select a java project or anything I get nothing.
>> It haven't message, error ...
>
> do you mean that you cannot rename a java project?
>
yes, I can't rename java project, field, class, method.
I can rename nothing
regards
Haris Peco
|
|
|
Re: Refactor > Rename [message #21323 is a reply to message #20892] |
Tue, 13 May 2003 12:32 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
> yes, I can't rename java project, field, class, method.
> I can rename nothing
even when you select a field in the outline view?
or a package in the package explorer?
what do you get then? what error?
a.
--
eclipse.org
|
|
| | |
Re: Refactor > Rename [message #21434 is a reply to message #21427] |
Tue, 13 May 2003 15:55 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
i can now and i've always been able to
now, i'm running the I-build 20030507+latest jdt plugins+latest text plugins
but it did work for me (and everybody else i know) in any stable or release build of eclipse 1.0, 2.0 or 2.1
my os is winXp
a.
--
eclipse.org
|
|
| |
Re: Refactor > Rename [message #21545 is a reply to message #21456] |
Tue, 13 May 2003 16:16 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
> Is it possible that any plugin crash refactor - I have next plugins (except
> default) :
it sure is
i never used any of these plugins, though, so i have no idea
a.
--
eclipse.org
|
|
| |
Re: Refactor > Rename [message #21767 is a reply to message #21337] |
Tue, 13 May 2003 17:45 |
Eclipse User |
|
|
|
Originally posted by: vkyr.nospam-ision.net
I see *absolutely* the same behaviour as "snpe" described in this thread on
several University computers which all run Eclipse 2.1 final under W2K.
Valentino
"snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
news:b9qplh$nmj$1@rogue.oti.com...
> Adam Kiezun wrote:
>
> >> yes, I can't rename java project, field, class, method.
> >> I can rename nothing
> >
> > even when you select a field in the outline view?
> > or a package in the package explorer?
> > what do you get then? what error?
> >
> Yes.I select a field in the outline or a package or source and refactor
> ->rename
> I get nothing, no error, no log, nothing
>
> regards
> Haris Peco
|
|
|
Re: Refactor > Rename [message #21812 is a reply to message #21545] |
Tue, 13 May 2003 17:53 |
Eclipse User |
|
|
|
Originally posted by: vkyr.nospam-ision.net
NO, it isn't! We don't have any third party plugins installed on our
University dev machines, just Eclipse 2.1 and our own actual plugin projects
which we have under development. - BTW, at home on my own two computers
(same OS same Eclipse version with plenty third party addon plugins...) I
don't get this behahaviour.
Hmmm, maybe for the Univerity computers it has something todo with access
rights or the like (I don't really know, just a guess into the blue), or
Eclipse makes somewhere some broken entry which yields any future rename
usage...? Absolutely strage related to this is, that there is always *no*
error message in the error log, console or somewhere else. - It just doesn't
do nothing in these strange and odd "rename behaviour" cases!
Valentino
"Adam Kiezun" <adam_kiezun@ch.ibm.spam.protection.com> schrieb im
Newsbeitrag news:b9r5ou$4h2$1@rogue.oti.com...
> > Is it possible that any plugin crash refactor - I have next plugins
(except
> > default) :
>
> it sure is
> i never used any of these plugins, though, so i have no idea
>
> a.
> --
> eclipse.org
>
>
|
|
|
Re: Refactor > Rename [message #21903 is a reply to message #21812] |
Tue, 13 May 2003 21:39 |
Eclipse User |
|
|
|
Originally posted by: adam.kiezun.gmx.net.remove
Valentino, Haris
do you guys have a small workspace in which you can reproduce that behavior?
if so, this bug would definitely be Priority 1 for the 2.1.1 release (june/july)
a.
--
eclipse.org
|
|
| |
Re: Refactor > Rename [message #22165 is a reply to message #19908] |
Wed, 14 May 2003 08:13 |
Eclipse User |
|
|
|
Originally posted by: sbernatsky.ukr.net
Hello again.
snpe wrote:
> I compile eclipse from source (CVS) too.
> I try window xp build (cvs build 2.1).
> Refactor -> rname don't work, too
Which j2sk did you use for compiling?
Here are my steps to reproduce the bug.
1) get sources from cvs;
2) get build scripts from eclipse download site;
3) replace '<javac ' to '<javac target="1.3"' in build.xml files;
4) comlipe eclipse;
5) run eclipse and try to rename something. -> you couldn't do it.
But if you replace '<javac ' to '<javac target="1.1"' in 3) then you'll be
able to rename anything.
best regards,
Stanislav V. Bernatsky
|
|
|
Re: Refactor > Rename [message #22289 is a reply to message #21903] |
Wed, 14 May 2003 10:25 |
Eclipse User |
|
|
|
Originally posted by: vkyr.nospam-ision.net
Adam, I will not be before next monday in the University, so you will have
to wait till monday for that. Next monday I can then check the Java SDK
version on one of those odd behaving machines and try to send you a
minimalistic workspace which might indicate what we are talking about in a
reproducable manner (well, I don't really know if it is reproducable from a
workspace, but maybe you can see enough out of this?).
Valentino
"Adam Kiezun" <adam.kiezun@gmx.net.remove> schrieb im Newsbeitrag
news:b9rom9$luq$1@rogue.oti.com...
> Valentino, Haris
>
> do you guys have a small workspace in which you can reproduce that
behavior?
> if so, this bug would definitely be Priority 1 for the 2.1.1 release
(june/july)
>
> a.
> --
> eclipse.org
>
>
|
|
| | |
Re: Refactor > Rename [message #23093 is a reply to message #22964] |
Wed, 14 May 2003 15:36 |
Eclipse User |
|
|
|
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com
> Adam ?
guys, do you also see the problem if you use the normal, pre-build eclipse distribution?
a.
--
eclipse.org
|
|
| |
Re: Refactor > Rename [message #23424 is a reply to message #21948] |
Wed, 14 May 2003 15:22 |
Eclipse User |
|
|
|
Originally posted by: vkyr.nospam-ision.net
"snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
news:b9rq32$mrh$1@rogue.oti.com...
> Adam Kiezun wrote:
>
> ...
> Question for Valentino :
> Are You build eclipse from CVS ?
Well, I believe you mean with "You build Eclipse from CVS", if I use the
Eclipse sources from an eclipse.org cvs server or the like (?).
NO, I don't. - I use instead the Eclipse "jdt.ui" sources which are coming
along with the Eclipse 2.1 SDK. I always import the Eclipse "jdt.ui" plugin
with sources into my dev workspace and the I'am recompiling these. The
reason I usually tend to use a source import of the whole "jdt.ui" inside my
workspace is, that I'am adapting/combining foreign source model refactoring
plugins with the standard Eclipse Java refactorings which come along inside
the jdt.ui.
However, I now always have the effect, that after importing the Eclipse
"jdt.ui" plugin sources in the above described way (even I leave the jdt.ui
clean/unmodified by me), the rename refactorings don't work inside any
"runtime-workbench" launch. All other refactorings in contrast seem to work
instead. - I can only fix this odd "runtime-workbench" rename refactoring
behaviour, by deleting the imported "jdt.ui" and it's sources completely
from the dev workspace. Since thus the next time when the runtime-workspace
is launched it uses again the default Eclipse deployed "jdt.ui" plugin from
the Eclipse plugin directory and not the imported and deleted stuff I had
before in the workspace.
Valentino
|
|
|
Re: Refactor > Rename [message #23467 is a reply to message #23093] |
Wed, 14 May 2003 17:55 |
Eclipse User |
|
|
|
Originally posted by: vkyr.nospam-ision.net
Yes, I use instead the Eclipse "jdt.ui" sources which are coming along with
the Eclipse 2.1 SDK. I always import the Eclipse "jdt.ui" plugin with
sources into my dev workspace and the I'am recompiling these. The reason I
usually tend to use a source import of the whole "jdt.ui" inside my
workspace is, that I'am adapting/combining foreign source model refactoring
plugins with the standard Eclipse Java refactorings which come along inside
the jdt.ui.
However, I now always have the effect, that after importing the Eclipse
"jdt.ui" plugin sources in the above described way (even I leave the jdt.ui
clean/unmodified by me), the rename refactorings don't work inside any
"runtime-workbench" launch. All other refactorings in contrast seem to work
instead. - I can only fix this odd "runtime-workbench" rename refactoring
behaviour, by deleting the imported "jdt.ui" and it's sources completely
from the dev workspace. Since thus the next time when the runtime-workspace
is launched it uses again the default Eclipse deployed "jdt.ui" plugin from
the Eclipse plugin directory and not the imported and deleted stuff I had
before in the workspace.
Valentino
"Adam Kiezun" <adam_kiezun@ch.ibm.spam.protection.com> schrieb im
Newsbeitrag news:b9tnov$8jt$1@rogue.oti.com...
> > Adam ?
>
> guys, do you also see the problem if you use the normal, pre-build eclipse
distribution?
> a.
> --
> eclipse.org
>
>
>
|
|
| |
Re: Refactor > Rename [message #23809 is a reply to message #23765] |
Wed, 14 May 2003 21:47 |
Eclipse User |
|
|
|
Originally posted by: vkyr.nospam-ision.net
AFAIK we only have JDK 1.4 versions on those computers in the University,
even I'am not absolutely sure for this, so I will check this on monday when
I'am again there. - However, at home I use Eclipse 2.1 final on two
computers, both running W2K and the JDK 1.4.1 and here I don't have these
problems. At home it works so far.
Valentino
"snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
news:b9u9uj$qq9$1@rogue.oti.com...
> It is a problem that jdt.ui isn't compatible with jdk 1.3+
>
> Thanks
> Haris Peco
> Valentino Kyriakides wrote:
>
> > Yes, I use instead the Eclipse "jdt.ui" sources which are coming along
> > with the Eclipse 2.1 SDK. I always import the Eclipse "jdt.ui" plugin
with
> > sources into my dev workspace and the I'am recompiling these. The reason
I
> > usually tend to use a source import of the whole "jdt.ui" inside my
> > workspace is, that I'am adapting/combining foreign source model
> > refactoring plugins with the standard Eclipse Java refactorings which
come
> > along inside the jdt.ui.
> >
> > However, I now always have the effect, that after importing the Eclipse
> > "jdt.ui" plugin sources in the above described way (even I leave the
> > jdt.ui clean/unmodified by me), the rename refactorings don't work
inside
> > any "runtime-workbench" launch. All other refactorings in contrast seem
to
> > work instead. - I can only fix this odd "runtime-workbench" rename
> > refactoring behaviour, by deleting the imported "jdt.ui" and it's
sources
> > completely from the dev workspace. Since thus the next time when the
> > runtime-workspace is launched it uses again the default Eclipse deployed
> > "jdt.ui" plugin from the Eclipse plugin directory and not the imported
and
> > deleted stuff I had before in the workspace.
> >
> >
> > Valentino
> >
> >
> > "Adam Kiezun" <adam_kiezun@ch.ibm.spam.protection.com> schrieb im
> > Newsbeitrag news:b9tnov$8jt$1@rogue.oti.com...
> >> > Adam ?
> >>
> >> guys, do you also see the problem if you use the normal, pre-build
> >> eclipse
> > distribution?
> >> a.
> >> --
> >> eclipse.org
> >>
> >>
> >>
>
|
|
|
Re: Refactor > Rename [message #24009 is a reply to message #23049] |
Thu, 15 May 2003 08:05 |
Eclipse User |
|
|
|
Originally posted by: sbernatsky.ukr.net
Hello.
> I have yet any problem with Eclipse.It is maybe same reason.
> Update manager don't work - I haven't directory for update and I can't add
> any dir. - I get NullException.
> Is it same problem (jdk 1.1) ?
I don't know. I rolled back to '<javac target="1.1"' just because it
solved my problems.
Best regards,
Stanislav V. Bernatsky.
|
|
|
Re: Refactor > Rename [message #24073 is a reply to message #23093] |
Thu, 15 May 2003 08:13 |
Eclipse User |
|
|
|
Originally posted by: sbernatsky.ukr.net
Hello, Adam.
Adam Kiezun wrote:
> guys, do you also see the problem if you use the normal, pre-build eclipse
distribution?
Well, as far as I remember, I had no problem with the 2.0 pre-build
eclipse distribution. It was the last one which I downloaded from eclipse
site. Other versions were build from cvs sources.
Now I use 2.1.1 (M20030430) build from cvs source with '<javac
target="1.1"' and 'refactor->rename' works fine.
I'll recompile with '<javac target="1.3"' option and post result a bit
later.
Best regards,
Stanislav Bernatsky.
|
|
| |
Re: Refactor > Rename [message #24361 is a reply to message #23809] |
Thu, 15 May 2003 13:32 |
Haris Peco Messages: 1072 Registered: July 2009 |
Senior Member |
|
|
Is eclipse from cvs ?
Valentino Kyriakides wrote:
> AFAIK we only have JDK 1.4 versions on those computers in the University,
> even I'am not absolutely sure for this, so I will check this on monday
> when I'am again there. - However, at home I use Eclipse 2.1 final on two
> computers, both running W2K and the JDK 1.4.1 and here I don't have these
> problems. At home it works so far.
>
> Valentino
>
> "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
> news:b9u9uj$qq9$1@rogue.oti.com...
>> It is a problem that jdt.ui isn't compatible with jdk 1.3+
>>
>> Thanks
>> Haris Peco
>> Valentino Kyriakides wrote:
>>
>> > Yes, I use instead the Eclipse "jdt.ui" sources which are coming along
>> > with the Eclipse 2.1 SDK. I always import the Eclipse "jdt.ui" plugin
> with
>> > sources into my dev workspace and the I'am recompiling these. The
>> > reason
> I
>> > usually tend to use a source import of the whole "jdt.ui" inside my
>> > workspace is, that I'am adapting/combining foreign source model
>> > refactoring plugins with the standard Eclipse Java refactorings which
> come
>> > along inside the jdt.ui.
>> >
>> > However, I now always have the effect, that after importing the Eclipse
>> > "jdt.ui" plugin sources in the above described way (even I leave the
>> > jdt.ui clean/unmodified by me), the rename refactorings don't work
> inside
>> > any "runtime-workbench" launch. All other refactorings in contrast seem
> to
>> > work instead. - I can only fix this odd "runtime-workbench" rename
>> > refactoring behaviour, by deleting the imported "jdt.ui" and it's
> sources
>> > completely from the dev workspace. Since thus the next time when the
>> > runtime-workspace is launched it uses again the default Eclipse
>> > deployed "jdt.ui" plugin from the Eclipse plugin directory and not the
>> > imported
> and
>> > deleted stuff I had before in the workspace.
>> >
>> >
>> > Valentino
>> >
>> >
>> > "Adam Kiezun" <adam_kiezun@ch.ibm.spam.protection.com> schrieb im
>> > Newsbeitrag news:b9tnov$8jt$1@rogue.oti.com...
>> >> > Adam ?
>> >>
>> >> guys, do you also see the problem if you use the normal, pre-build
>> >> eclipse
>> > distribution?
>> >> a.
>> >> --
>> >> eclipse.org
>> >>
>> >>
>> >>
>>
|
|
|
Re: Refactor > Rename [message #24648 is a reply to message #24361] |
Thu, 15 May 2003 15:10 |
Eclipse User |
|
|
|
Originally posted by: vkyr.nospam-ision.net
NO, it's the "jdt.ui" plugin from inside of the Eclipse 2.1 final SDK (and
thus not from the CVS server), which I import with included sources into the
workspace and then recompile for usage in the Eclipse runtime-workspace.
Valentino
"snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
news:b9vsgl$uhh$2@rogue.oti.com...
> Is eclipse from cvs ?
>
> Valentino Kyriakides wrote:
>
> > AFAIK we only have JDK 1.4 versions on those computers in the
University,
> > even I'am not absolutely sure for this, so I will check this on monday
> > when I'am again there. - However, at home I use Eclipse 2.1 final on two
> > computers, both running W2K and the JDK 1.4.1 and here I don't have
these
> > problems. At home it works so far.
> >
> > Valentino
> >
> > "snpe" <snpe@snpe.co.yu> schrieb im Newsbeitrag
> > news:b9u9uj$qq9$1@rogue.oti.com...
> >> It is a problem that jdt.ui isn't compatible with jdk 1.3+
> >>
> >> Thanks
> >> Haris Peco
> >> Valentino Kyriakides wrote:
> >>
> >> > Yes, I use instead the Eclipse "jdt.ui" sources which are coming
along
> >> > with the Eclipse 2.1 SDK. I always import the Eclipse "jdt.ui" plugin
> > with
> >> > sources into my dev workspace and the I'am recompiling these. The
> >> > reason
> > I
> >> > usually tend to use a source import of the whole "jdt.ui" inside my
> >> > workspace is, that I'am adapting/combining foreign source model
> >> > refactoring plugins with the standard Eclipse Java refactorings which
> > come
> >> > along inside the jdt.ui.
> >> >
> >> > However, I now always have the effect, that after importing the
Eclipse
> >> > "jdt.ui" plugin sources in the above described way (even I leave the
> >> > jdt.ui clean/unmodified by me), the rename refactorings don't work
> > inside
> >> > any "runtime-workbench" launch. All other refactorings in contrast
seem
> > to
> >> > work instead. - I can only fix this odd "runtime-workbench" rename
> >> > refactoring behaviour, by deleting the imported "jdt.ui" and it's
> > sources
> >> > completely from the dev workspace. Since thus the next time when the
> >> > runtime-workspace is launched it uses again the default Eclipse
> >> > deployed "jdt.ui" plugin from the Eclipse plugin directory and not
the
> >> > imported
> > and
> >> > deleted stuff I had before in the workspace.
> >> >
> >> >
> >> > Valentino
> >> >
> >> >
> >> > "Adam Kiezun" <adam_kiezun@ch.ibm.spam.protection.com> schrieb im
> >> > Newsbeitrag news:b9tnov$8jt$1@rogue.oti.com...
> >> >> > Adam ?
> >> >>
> >> >> guys, do you also see the problem if you use the normal, pre-build
> >> >> eclipse
> >> > distribution?
> >> >> a.
> >> >> --
> >> >> eclipse.org
> >> >>
> >> >>
> >> >>
> >>
>
|
|
|
Goto Forum:
Current Time: Tue Nov 19 10:12:44 GMT 2024
Powered by FUDForum. Page generated in 0.10624 seconds
|