Tobias,
I applied your stuff while we wait for the commit rights.
/peter
On Thu, Jun 12, 2008 at 10:24 PM, Tobias Sodergren <[EMAIL PROTECTED]> wrote:
> Hi Anders,
>
> I've created a help project (for now w/o dita) which supports both TOC and
> context-sensitive help.
>
> I don't have commit rights yet, and since there seem to be a problem with
> attachments to this list, I'll only give you the changes I made to the
> org.neo4j.neoclipse project, as a patch. I'll checkin the actual help
> project somewhere when I get write access.
>
> /Tobias
>
> Index:
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/META-INF/MANIFEST.MF
> ===================================================================
> ---
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/META-INF/MANIFEST.MF
> (revision 1835)
> +++
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/META-INF/MANIFEST.MF
> (working copy)
> @@ -26,6 +26,7 @@
> org.eclipse.swt.widgets,
> org.eclipse.ui,
> org.eclipse.ui.actions,
> + org.eclipse.ui.help,
> org.eclipse.ui.part,
> org.eclipse.ui.plugin,
> org.eclipse.ui.views,
> Index:
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/help/HelpContextConstants.java
> ===================================================================
> ---
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/help/HelpContextConstants.java
> (revision 0)
> +++
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/help/HelpContextConstants.java
> (revision 0)
> @@ -0,0 +1,10 @@
> +package org.neo4j.neoclipse.help;
> +
> +/**
> + * This class defines the context sensitive context IDs
> + * @author Tobias Södergren
> + *
> + */
> +public final class HelpContextConstants {
> + public static final String NEO_GRAPH_VIEW_PART =
> "org.neo4j.neoclipse.doc.NeoGraphViewPart";
> +}
> Index:
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/view/NeoGraphViewPart.java
> ===================================================================
> ---
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/view/NeoGraphViewPart.java
> (revision 1835)
> +++
> /Users/tobias/dev/workspace-neoclipse/org.neo4j.neoclipse/src/main/java/org/neo4j/neoclipse/view/NeoGraphViewPart.java
> (working copy)
> @@ -13,6 +13,7 @@
> import org.eclipse.jface.viewers.Viewer;
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.widgets.Composite;
> +import org.eclipse.ui.PlatformUI;
> import org.eclipse.ui.actions.ActionFactory;
> import org.eclipse.ui.part.ViewPart;
> import org.eclipse.ui.views.properties.IPropertySheetPage;
> @@ -43,6 +44,7 @@
> import org.neo4j.neoclipse.action.ShowSpringLayoutAction;
> import org.neo4j.neoclipse.action.ShowTreeLayoutAction;
> import org.neo4j.neoclipse.action.ZoomAction;
> +import org.neo4j.neoclipse.help.HelpContextConstants;
> import org.neo4j.neoclipse.neo.NeoServiceEvent;
> import org.neo4j.neoclipse.neo.NeoServiceEventListener;
> import org.neo4j.neoclipse.neo.NeoServiceManager;
> @@ -107,6 +109,8 @@
> getSite().setSelectionProvider(viewer);
>
> showReferenceNode();
> +
> +
> PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(),
> HelpContextConstants.NEO_GRAPH_VIEW_PART);
> }
>
> /**
> _______________________________________________
> Neo mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
>
--
GTalk: neubauer.peter
Skype peter.neubauer
ICQ 18762544
GTalk neubauer.peter
Phone +46704 106975
LinkedIn http://www.linkedin.com/in/neubauer
http://www.neo4j.org - New Energy for Data - the Graph Database.
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user