-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue-99 Added ITernNatureCapability interface #100
Conversation
Many thank's @gamerson ! I tell me that ITernNatureCapability should perhaps add id in their signature
What do you think about that @gamerson, @gamerson @vrubezhny ? |
Sure we can modify the ITernNatureCapability but just so I'm understanding correctly are you thinking that we would pass into this interface the TernNature.ID? |
The only reason that we would need to pass in the natureId is if the tern nature may be changing right? I've pushed a new commit that has this updated interface. |
@gamerson sorry with my bad explanation. My idea is to call ITernNatureCapability #hasTernNature(IProject project, String natureId) with the id of the extension point ternNatureAdapter/@id Your DefaultTernNatureAdapter can become a singleton by removing nature id from the constructor. Do you understand my idea? |
Got it. On Mon, Jul 7, 2014 at 10:10 AM, Angelo notifications@github.com wrote:
Greg Amerson |
But actually the way this works is the map only contains adapters, so if So you can decide which you want to do, for now I'll repush my original On Mon, Jul 7, 2014 at 10:10 AM, Greg Amerson gregory.amerson@liferay.com
Greg Amerson |
Ok I repushed my original code. On Mon, Jul 7, 2014 at 10:15 AM, Greg Amerson gregory.amerson@liferay.com
Greg Amerson |
Issue-99 Added ITernNatureCapability interface
@gamerson it was just an idea, I didn't see the problem that you have explained me. Sorry-( Thank's for your work. @vrubezhny could you check if it works for you please. |
Sounds good, no problems. Let me know if other adopters have trouble with On Mon, Jul 7, 2014 at 11:12 AM, Angelo notifications@github.com wrote:
Greg Amerson |
Fix for #99 However, I have not tested this with normal id only based extensions, so whoever reviews will need to double check that the DefaultTernNatureAdapter is working as expected.