[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Re: Extending DocShare for JSP editor

Hi all

First - apologies for sending a usage question on the dev list..

I'm actually trying to get a prototype setup in my day job project - I want to get docshare working in a particular editor that was written - it implements ITextEditor.

I've tried what is suggested here : http://wiki.eclipse.org/Extending_Real-Time_Shared_Editing_for_Use_with_Other_Editors

I didn't have a contextID set for the editor so I just added in a contextID string as follows:

   setEditorContextMenuId("com.myeditor.context");

But it still doesn't seem to allow me to do shared editor stuff. Am I missing something?
Is this the wrong way to specify a contextID for my editor?


Thanks
James



On Sat, 24 Jan 2009 09:46:55 -0800
 Scott Lewis <slewis@xxxxxxxxxxxxxxxxx> wrote:
Greetings Lauren,

I'm thrilled to hear that things are working ok with the jsp editor...thanks for letting us know. And if OK with you I would like to put the correct jsp editor markup on the wiki page as an example. I need to ask though: what was the change/fix? (so that I can give some prose on the wiki page about common errors). Thanksinadvance,

Scott

Lauren J. Hayward wrote:
Hi again,
Just wanted to let everyone know that someone else was able to point me in the right direction. In case you ever run into the issue again, I'm putting the correct plugin.xml file below. Lauren :-)


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.jst.jsp.core.jspsource.source.EditorContext">


<dynamic class="org.eclipse.ecf.internal.provisional.docshare.menu.DocShareRosterMenuContributionItem"

id="com.foo.jmd.MyEditorContextID.dynamic1">
</dynamic>
</menuContribution>
</extension>


</plugin>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



On Fri, Jan 23, 2009 at 1:59 PM, Lauren J. Hayward <laurenjhayward@xxxxxxxxx <mailto:laurenjhayward@xxxxxxxxx>> wrote:


    Hi,

I'm attempting to extend the DocShare real-timed shared editing
plugin to the JSP editor. I have been using the tutorial posted
here,
http://wiki.eclipse.org/Extending_Real-Time_Shared_Editing_for_Use_with_Other_Editors,
to do so. I have tried every combination of options I can think
of inside my plugin.xml file, and I can't seem to get it correct. No matter what I do, the option to "Share Editor With" does not
appear in the JSP editor, even though it works fine in the Java
editor and text editor. I'm including two different versions of
plugin.xml below. The first version is the file for a new plugin
I created and the second version is the file for the original
docshare plugin.xml.


I would really appreciate any help or hints you can provide.

    Thank you for your time!
    Lauren

    ---


<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <plugin> <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="popup:org. eclipse.jst.jsp.core.jspsource"> <dynamic class="org.eclipse.ecf.internal.provisional.docshare.menu.DocShareRosterMenuContributionItem" id="org.eclipse.jst.jsp.core.jspsource.dynamic1"> </dynamic> </menuContribution> </extension>

    </plugin>

    ---

<?xml version="1.0" encoding="UTF-8" ?>
<?eclipse version="3.2"?>
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_> <plugin>
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_>
<extension point="*org.eclipse.ecf.start*">
<run class="*org.eclipse.ecf.internal.docshare.ECFStart*" />
</extension>
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_>
<extension point="*org.eclipse.ui.menus*">
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_>
<menuContribution locationURI="*popup:#CompilationUnitEditorContext*">
<dynamic
class="*org.eclipse.ecf.internal.provisional.docshare.menu.DocShareRosterMenuContributionItem*"
id="*org.eclipse.ecf.editorshare.dynamic1*" />
</menuContribution>
</extension>
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_>
<extension point="*org.eclipse.ui.menus*">
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_>
<menuContribution locationURI="*popup:#TextEditorContext*">
<dynamic
class="*org.eclipse.ecf.internal.provisional.docshare.menu.DocShareRosterMenuContributionItem*"
id="*org.eclipse.ecf.editorshare.dynamic2*" />
</menuContribution>
</extension>
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_>
<extension point="*org.eclipse.ui.menus*">
- <http://?ui=2&view=bsp&ver=1qygpcgurkovy#11f04d73b0d7a706_>
<menuContribution
locationURI="*popup:*org.eclipse.jst.jsp.core.jspsource.*JSPSourcePageEditor*">
<dynamic
class="*org.eclipse.ecf.internal.provisional.docshare.menu.DocShareRosterMenuContributionItem*"
id="*org.eclipse.ecf.editorshare.dynamic3*" />
</menuContribution>
</extension>
</plugin>



-- Lauren J. Hayward
NC State STARS Assistant Academic Liaison
Master's Degree Student, NC State University
http://www4.ncsu.edu/~ljhaywar <http://www4.ncsu.edu/%7Eljhaywar>
lauren@xxxxxxxxxxxxxxx <mailto:lauren@xxxxxxxxxxxxxxx>



-- Lauren J. Hayward
NC State STARS Assistant Academic Liaison
Master's Degree Student, NC State University
http://www4.ncsu.edu/~ljhaywar <http://www4.ncsu.edu/%7Eljhaywar>
lauren@xxxxxxxxxxxxxxx <mailto:lauren@xxxxxxxxxxxxxxx>





--
Lauren J. Hayward
NC State STARS Assistant Academic Liaison
Master's Degree Student, NC State University
http://www4.ncsu.edu/~ljhaywar <http://www4.ncsu.edu/%7Eljhaywar>
lauren@xxxxxxxxxxxxxxx <mailto:lauren@xxxxxxxxxxxxxxx>
------------------------------------------------------------------------


_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev

_______________________________________________ ecf-dev mailing list ecf-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/ecf-dev