Flex (ActionScript) refactoring

Does IntelliJ 8 supports move class from one package to another for Flex (ActionScript)?

I tried to do "move" but this operation just moves file from one folder to another without updating any references.

Thanks,
Roman

8 comments
Comment actions Permalink

Hello Roman,

Does IntelliJ 8 supports move class from one package to another for
Flex (ActionScript)?

I tried to do "move" but this operation just moves file from one
folder to another without updating any references.


At the moment proper Move refactoring is not implemented for ActionScript.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

thanks

Do you plan to support it in release version?

0
Comment actions Permalink

Any update on this? The version 9.0.2 only moves the file from one folder to another and doesn't update any of the references, which makes this refactoring option useless and a little bit misleading.

0
Comment actions Permalink

Does the file under source root?
Do the references in the same module?

On 09.06.2010 18:49, Angel Municio wrote:

Any update on this? The version 9.0.2 only moves the file from one folder to another and doesn't update any of the references, which makes this refactoring option useless and a little bit misleading.

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5265130#5265130



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Yes, the files are under source control (and the source control work is done properly).

And yes, the references are in the same module (all the files all share the same src directory as an ancestor). It is quite straightforward, the only minor difficulty is that in most cases we make the imports with the asterisk wildcard.

My understanding was that, this was not implemented yet. But after your response, I'm left with the question if it is? And if so what is the problem.

0
Comment actions Permalink

Yes, it should work.
It would be nice if you create simple project with reproducible case and
attach to youtrack issue, I will look ASAP

On 09.06.2010 21:34, Angel Municio wrote:

Yes, the files are under source control (and the source control work is done properly).

>

And yes, the references are in the same module (all the files all share the same src directory as an ancestor). It is quite straightforward, the only minor difficulty is that in most cases we make the imports with the asterisk wildcard.

>

My understanding was that, this was not implemented yet. But after your response, I'm left with the question if it is? And if so what is the problem.

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5265149#5265149



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Sorry to take so long to respond, being busy getting other things in IntelliJ working well with our project.

I dig a little bit on the issue (in fact, I expend last weekend reorganizing the entire project) and here are my findings.

ActionScript and mxml files that import a classe being move pick the change if they explicitly import that given file. If the import uses the '*' wildcard, it doesn't work.

If an mxml tag refers to an ActionScript class being moved (<mx:foo .../>) the move doesn't get pickedup.

Hope it helps.

0
Comment actions Permalink

Thank you for nailing the bug down!
I wonder the name of the mxml attribute the class reference was
contained in, does the reference resolve to the class when e.g. control
+ b is pressed on it?

On 18.06.2010 17:29, Angel Municio wrote:

Sorry to take so long to respond, being busy getting other things in IntelliJ working well with our project.

>

I dig a little bit on the issue (in fact, I expend last weekend reorganizing the entire project) and here are my findings.

>

ActionScript and mxml files that import a classe being move pick the change if they explicitly import that given file. If the import uses the '*' wildcard, it doesn't work.

>

If an mxml tag refers to an ActionScript class being moved (<mx:foo .../>) the move doesn't get pickedup.

>

Hope it helps.

>

---
Original message URL: http://devnet.jetbrains.net/message/5265847#5265847



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.