Re: Regarding the eclipse project based on the enum

9 views
Skip to first unread message

Surath Tharindu Herath

unread,
Nov 21, 2010, 11:08:46 AM11/21/10
to Raffi Khatchadourian
I used actionSet for enabling the particular entry of the Refactoring menu. Therefore I had to implement the run(IAction action) method. I had a difficulty combining it with the execute(ExecutionEvent event) method of ConvertConstantsToEnumHandler class since I was dealing with action and unable to get events. How do I solve that issue.

I managed to use another method instead of usng execute(ExecutionEvent event) method. Now I want to call the method startConvertConstantsToEnumRefactoring (final IField[] fields, final Shell shell) of ConvertConstantsToEnumWizard class and it is impossible to get the shell due to the same reason mentioned above. Is there another way to get the shell without using ExecutionEvent.


--
Surath Tharindu Herath
Department of Computer Science and Engineering <Undergraduate>
University Of Moratuwa
Sri Lanka
+94712375178

Raffi

unread,
Nov 26, 2010, 4:18:21 PM11/26/10
to Convert Constants to Enum Development Discussion, b.mus...@gmail.com
Ben,

Do you have any idea about this? It's in regards to issue 21 (http://
code.google.com/p/constants-to-enum-eclipse-plugin/issues/detail?
id=21), which I believe you worked on. Thanks.

Raffi

On Nov 21, 11:08 am, Surath Tharindu Herath <suraththari...@gmail.com>
wrote:

Raffi Khatchadourian

unread,
Dec 5, 2010, 2:38:39 PM12/5/10
to Surath Tharindu Herath, Raffi Khatchadourian, convert-consta...@googlegroups.com
Hi Surath,

Did you resolve this issue?

Raffi

Raffi Khatchadourian

unread,
Dec 7, 2010, 1:56:03 PM12/7/10
to Surath Tharindu Herath, convert-consta...@googlegroups.com
I would think that you would just need to enable the menu option. The wizard should appear when the menu option is chosen, but getting to be enabled (i.e., not grayed out) would be the first step. Have you tried posting your question on stack overflow?

I'll try to look into this issue but it may be a while.

Raffi

On Dec 7, 2010, at 11:54 AM, Surath Tharindu Herath <suratht...@gmail.com> wrote:

> I tried several ways sir. Now also it is needed to create an enum via the popup menu. This is because I was unable to modify the system such that it creates the particular shell without execution event with relates with my previous issue.
> I have few exams these days sir. Though I spent some time with this project it is not just as before.
> That is the reason for the delay.

Reply all
Reply to author
Forward
0 new messages