On 11 Feb 2016 at 14:57:32, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
> Hi Maksim, > > > On 11 Feb 2016 at 09:22:19, Maksim Birukov > (m.biru...@comparus.de(mailto:m.biru...@comparus.de)) wrote: > > > Hi, > > > > I would like to get access to XWikiContext class for getting properties > > from xwiki sheet. And now it isn't possible to get them without > > platform-old core. > > Yes XWikiContext is part of xwiki-platform-oldcore so you will need that > dependency for sure :) > > > So I added jar files with all of these dependencies to my project but I’m > > not sure probably that was wrong way and there are other new classes for > > getting access to context in new version… > > > No that’s fine. We’ve documented this here: > http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWikicontext > > In short you should use this in your component: > > @Inject > private Provider xwikiContextProvider; > > > > Is it possible to write hole extension only on java without creating xwiki > > sheets and classes? > > It really depends what your extensions is doing... > > > So I mean that, now I create xwiki configuration class and configurable > > class and also sheet with document and sheet dependencies. But maybe there > > is another way to write all of these only on java? > > > No it’s ok for an extension to generate a XAR. Here’s an example of an > extension that has both a JAR (it even has 2 jars) and a XAR: > https://github.com/xwiki-contrib/application-antispam > > > > And another questions: I read topic about Wysiwyg editor but it contains > > not enough information. Is there more detailed instruction for creating my > > own menu items and bind one with some logic for example calling script > > through $services.myScriptService.myScriptMethod()? > > I’m not an expert here. I’ve found the following: > * > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfiguretheWYSIWYGeditor > > Don’t know if it helps. About creating your own plugin, there's no doc > because it's not that easy, you can't do it outside of the GWT code of the > editor. You would have to recompile the editor. You should also know that > we’re transitioning to CKEditor. We’re still finishing its integration at > http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration and > soon (around XWiki 8.0 or more likely 8.1) we’ll start bundling it. So if you > wish to plan for the future you should probably look at writing plugins for > CKeditor. For completeness there’s some draft document started here: http://design.xwiki.org/xwiki/bin/view/Design/WYSIWYGPluginInterface But again you should probably look at CKeditor plugins now. Thanks -Vincent > On a related topic I see you’ve tried twice to add a Redmine extension. It’s > actually me who deleted the page (but it can’t be undeleted from trash!). > I’ve done that because I’ve contacted you by mail but you didn’t reply. I > wanted to tell you that your extension could not be used, it was missing a > lot of things: > * there was only a XAR and missing a JAR > * users couldn’t install your extension > * the metadata were not filled > * no documentation, no screenshots > > Let me know if you need help for publishing your extension. > > Thanks > -Vincent > > > > > Thank you in advance > > > > Thank you in advance for any answers! > > > > > > Best regards, > > Maxim Birukov > > Java developer > > > > # +38-095-234-13-34 > > Skype: maksim.b > > E-mail: m .biru...@comparus.de > > www.comparus.de > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users