I recommend deleting the relevant files from org.rubypeople.rdt.debug.ui yourself as at the moment Subclipse seems to fight my attempts to delete them properly so I can create a relevant patch.
It fixes the overview, tutorial and whats new welcome extension.
It also moves the cheatsheet from dubug.ui.
The open ruby perspective class is no longer needed as the open perspective command is called directly from the cheetsheet now.
Have you had a chance to build the plugin from the trunk because I am convinced it is slightly messed up. The documentation is definitely broken and the Ruby Editor parser seems to be broken as well. It highlights all sorts of things the 0.8 release version does not.
Regards,
Designker
On 8/2/06, Markus Barchfeld <[EMAIL PROTECTED]
> wrote:
designker wrote:
> Hi,
>
> After messing around with org.rubypeople.rdt I have fixed the RDT
> Overview and Tutorial that no longer appeared as of RDT 0.8. I am not
> 100% sure I have fixed it all as the org.rubypeople.rdt.doc.user that
> is in the trunk has an empty HTML folder and I think that is where the
> RDT help should have been?????
Could you move the cheatsheet to org.rubypeople.rdt? The reason why it
was located in debug.ui were commands which used classes from debug.ui.
And org.rubypeople.rdt should not depend on org.rubypeople.rdt.debug.ui.
The html files are generated from the docbook file. Try to generated
with the current information in the wiki. If that doesn't work anymore I
am going to update it.
>
> Can you explain how I can now give you the changes. Should I email a
> patch or is there some way to commit it to a branch so you can
> evaluate it. Sorry for the newbie questions.
You can send a patch to me. After you have sent in a few patches and if
you intend to contribute further (which of course would be very much
appreciated) you will be granted developer access.
Thanks
Markus
Index: C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/RdtPlugin.java =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/RdtPlugin.java (revision 0) +++ C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/RdtPlugin.java (revision 0) @@ -0,0 +1,20 @@ +package org.rubypeople.rdt.cheatsheets; + +import org.eclipse.ui.plugin.AbstractUIPlugin; + + +public class RdtPlugin extends AbstractUIPlugin { + + public static final String PLUGIN_ID = "org.rubypeople.rdt"; //$NON-NLS-1$ + protected static RdtPlugin plugin; + + public RdtPlugin() { + super(); + plugin = this; + } + + public static RdtPlugin getDefault() { + return plugin; + } +} + Index: C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/OpenNewRubyProjectWizardAction.java =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/OpenNewRubyProjectWizardAction.java (revision 0) +++ C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/OpenNewRubyProjectWizardAction.java (revision 0) @@ -0,0 +1,45 @@ +package org.rubypeople.rdt.cheatsheets.webservice; + +import org.eclipse.jface.action.Action; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.wizard.WizardDialog; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.cheatsheets.ICheatSheetAction; +import org.eclipse.ui.cheatsheets.ICheatSheetManager; +import org.rubypeople.rdt.internal.ui.RubyPlugin; +import org.rubypeople.rdt.internal.ui.wizards.NewProjectCreationWizard; + + +/** + * @author markus + * + */ +public class OpenNewRubyProjectWizardAction extends Action implements ICheatSheetAction { + public OpenNewRubyProjectWizardAction() { + super("OpenProject"); //$NON-NLS-1$ + } + + /** + * @see IActionDelegate#run(IAction) + */ + public void run() { + run(new String [] {}, null); + } + + /* (non-Javadoc) + * @see org.eclipse.ui.cheatsheets.ICheatSheetAction#run(java.lang.String[], org.eclipse.ui.cheatsheets.ICheatSheetManager) + */ + public void run(String[] params, ICheatSheetManager manager) { + NewProjectCreationWizard wizard = new NewProjectCreationWizard(); + if (params.length > 0) { + wizard.setDefaultProjectName(params[0]) ; + } + wizard.init(PlatformUI.getWorkbench(), new StructuredSelection()); + WizardDialog dialog = new WizardDialog(RubyPlugin.getActiveWorkbenchShell(), wizard); + dialog.create(); + //SWTUtil.setDialogSize(dialog, 500, 500); + dialog.getShell().setText(wizard.getWindowTitle()); + int result = dialog.open(); + notifyResult(result==WizardDialog.OK); + } +} Index: C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/CopyContentAction.java =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/CopyContentAction.java (revision 0) +++ C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/CopyContentAction.java (revision 0) @@ -0,0 +1,43 @@ +package org.rubypeople.rdt.cheatsheets.webservice; + +import java.io.File; +import java.io.FileInputStream; +import java.io.InputStream; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.Path; +import org.eclipse.jface.action.Action; +import org.eclipse.ui.cheatsheets.ICheatSheetAction; +import org.eclipse.ui.cheatsheets.ICheatSheetManager; +import org.rubypeople.rdt.cheatsheets.RdtPlugin; +import org.rubypeople.rdt.core.RubyCore; +import org.rubypeople.rdt.internal.ui.RubyPlugin; + + +public class CopyContentAction extends Action implements ICheatSheetAction { + + /* (non-Javadoc) + * @see org.eclipse.ui.cheatsheets.ICheatSheetAction#run(java.lang.String[], org.eclipse.ui.cheatsheets.ICheatSheetManager) + */ + public void run(String[] params, ICheatSheetManager manager) { + File sourceFile = new File(RubyCore.getOSDirectory(RdtPlugin.getDefault()) + params[0]); + if (!sourceFile.exists()) { + this.notifyResult(false); + return; + } + + IFile dest = RubyPlugin.getWorkspace().getRoot().getFile(new Path(params[1])); + if (dest == null || !dest.exists()) { + this.notifyResult(false); + return; + } + try { + InputStream inputStream = new FileInputStream(sourceFile); + dest.setContents(inputStream, true, true, null); + this.notifyResult(true); + } catch (Exception e) { + this.notifyResult(false); + } + } + +} Index: C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/CreateWsdlFileAction.java =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/CreateWsdlFileAction.java (revision 0) +++ C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/CreateWsdlFileAction.java (revision 0) @@ -0,0 +1,38 @@ +package org.rubypeople.rdt.cheatsheets.webservice; + +import org.eclipse.core.resources.IProject; +import org.eclipse.jface.action.Action; +import org.eclipse.jface.viewers.StructuredSelection; +import org.eclipse.jface.wizard.WizardDialog; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.cheatsheets.ICheatSheetAction; +import org.eclipse.ui.cheatsheets.ICheatSheetManager; +import org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard; +import org.rubypeople.rdt.internal.ui.RubyPlugin; + + +public class CreateWsdlFileAction extends Action implements ICheatSheetAction { + + + public void run(String[] params, ICheatSheetManager manager) { + + BasicNewFileResourceWizard wizard = new BasicNewFileResourceWizard(); + + + String projectName = params.length > 0 ? params[0] : "Unbekannt" ; + IProject project = RubyPlugin.getWorkspace().getRoot().getProject(projectName) ; + + if (project == null) { + // show error dialog + return ; + } + + wizard.init(PlatformUI.getWorkbench(), new StructuredSelection(project)); + WizardDialog dialog = new WizardDialog(RubyPlugin.getActiveWorkbenchShell(), wizard); + dialog.create(); + dialog.getShell().setText(wizard.getWindowTitle()); + int result = dialog.open(); + notifyResult(result==WizardDialog.OK); + } + +} Index: C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/OpenRunConfigurationAction.java =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/OpenRunConfigurationAction.java (revision 0) +++ C:/PluginStuff/org.rubypeople.rdt/src/org/rubypeople/rdt/cheatsheets/webservice/OpenRunConfigurationAction.java (revision 0) @@ -0,0 +1,23 @@ +package org.rubypeople.rdt.cheatsheets.webservice; + +import org.eclipse.debug.internal.ui.DebugUIPlugin; +import org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog; +import org.eclipse.debug.ui.IDebugUIConstants; +import org.eclipse.jface.action.Action; +import org.eclipse.ui.cheatsheets.ICheatSheetAction; +import org.eclipse.ui.cheatsheets.ICheatSheetManager; + + +public class OpenRunConfigurationAction extends Action implements ICheatSheetAction { + + /* (non-Javadoc) + * @see org.eclipse.ui.cheatsheets.ICheatSheetAction#run(java.lang.String[], org.eclipse.ui.cheatsheets.ICheatSheetManager) + */ + public void run(String[] params, ICheatSheetManager manager) { + LaunchConfigurationsDialog dialog = new LaunchConfigurationsDialog(DebugUIPlugin.getShell(), DebugUIPlugin.getDefault().getLaunchConfigurationManager().getDefaultLanuchGroup(IDebugUIConstants.ID_RUN_LAUNCH_GROUP)); + dialog.setOpenMode(LaunchConfigurationsDialog.LAUNCH_CONFIGURATION_DIALOG_OPEN_ON_LAST_LAUNCHED); + dialog.open(); + + } + +} Index: C:/PluginStuff/org.rubypeople.rdt/plugin.properties =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/plugin.properties (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/plugin.properties (working copy) @@ -1,2 +1,6 @@ pluginName=Ruby Development Tools -providerName=RubyPeople, Inc. \ No newline at end of file +providerName=RubyPeople, Inc. + +cheatsheet.category.rdt = Ruby Development +cheatsheet.webservices.name=RDT Introduction +cheatsheet.webservices.desc=Ruby Development Tools (RDT) Introduction \ No newline at end of file Index: C:/PluginStuff/org.rubypeople.rdt/build.properties =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/build.properties (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/build.properties (working copy) @@ -8,4 +8,6 @@ ruby.png,\ intro/,\ rdt.license,\ - Changelog.txt + Changelog.txt,\ + cheatsheets/,\ + META-INF/ Index: C:/PluginStuff/org.rubypeople.rdt/intro/rdtOverviewExtensionContent.xml =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/intro/rdtOverviewExtensionContent.xml (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/intro/rdtOverviewExtensionContent.xml (working copy) @@ -1,9 +1,11 @@ -<?xml version="1.0" encoding="UTF-8" ?> +<?xml version="1.0" encoding="utf-8" ?> <introContent> - <!-- Extension to the SDK Overview Page. --> - <extensionContent alt-style="css/rdt.properties" style="css/rdtOverview.css" path="overview/page-content/overview-links/endAnchor"> - <link label="Ruby Development Tools" url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.rubypeople.rdt.doc.user/html/index.html" id="rdt"> - <text>Overview of the Ruby Development Tools (RDT)</text> - </link> - </extensionContent> + <!-- Extension to the SDK Overview Page. --> + <extensionContent id="org.eclipse.rdt" alt-style="css/rdt.properties" style="css/rdtOverview.css" name="Ruby Development" path="overview/@"> + <group style-id="content-group" id="content-group"> + <link label="Ruby Development" url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.rubypeople.rdt.doc.user/html/index.html" id="ruby" style-id="content-link"> + <text>Get familiar with developing Ruby programs Using Eclipse</text> + </link> + </group> + </extensionContent> </introContent> \ No newline at end of file Index: C:/PluginStuff/org.rubypeople.rdt/intro/rdtTutorialsExtensionContent.xml =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/intro/rdtTutorialsExtensionContent.xml (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/intro/rdtTutorialsExtensionContent.xml (working copy) @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8" ?> <introContent> <!-- Extension to the SDK Tutorials Page. --> - <extensionContent alt-style="css/rdt.properties" style="css/rdtTutorials.css" path="tutorials/page-content/endAnchor"> - <group label="Ruby Development Tools" id="rdt" style-id="tutorials-group"> - <link url="http://org.eclipse.ui.intro/showStandby?partId=org.eclipse.platform.cheatsheet&input=org.rubypeople.rdt.cheatsheets.webservices" label="Introduction to RDT" id="rdt-introduction" style-id="tutorials-link"> - <text>Learn how to create ruby projects and how to run and debug ruby programs using soap4r as example</text> + <extensionContent id="org.eclipse.rdt" alt-style="css/rdt.properties" style="css/rdtTutorials.css" name="Ruby Development" path="tutorials/@"> + <group style-id="content-group" id="ruby-introduction-group"> + <link url="http://org.eclipse.ui.intro/showStandby?partId=org.eclipse.platform.cheatsheet&input=org.rubypeople.rdt.cheatsheets.webservices" label="Introduction to RDT" id="ruby-introduction" style-id="content-link"> + <text>Learn how to create ruby projects and how to run and debug ruby programs using soap4r as an example</text> </link> </group> </extensionContent> Index: C:/PluginStuff/org.rubypeople.rdt/intro/css/rdt.properties =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/intro/css/rdt.properties (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/intro/css/rdt.properties (working copy) @@ -1,8 +1,11 @@ # this is the configuration for swt based presentation of the # intro pages, like it is used for os=linux and ws=motif -overview.page-content.overview-links.rdt.link-icon = intro/css/graphics/rdt_overview.gif +overview.rdt.link-icon = intro/css/graphics/rdt_overview.gif +tutorials.rdt-introduction.link-icon = intro/css/graphics/rdt_tutorial.gif +tutorials.rdt-introduction.hover-icon = intro/css/graphics/rdt_tutorialhov.gif + tutorials.page-content.rdt.layout.ncolumns = 1 tutorials.page-content.rdt.rdt-introduction.link-icon = intro/css/graphics/rdt_tutorial.gif Index: C:/PluginStuff/org.rubypeople.rdt/intro/css/rdtOverview.css =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: C:/PluginStuff/org.rubypeople.rdt/intro/css/rdtTutorials.css =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: C:/PluginStuff/org.rubypeople.rdt/intro/rdtNewsExtensionContent.xml =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/intro/rdtNewsExtensionContent.xml (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/intro/rdtNewsExtensionContent.xml (working copy) @@ -1,9 +1,11 @@ <?xml version="1.0" encoding="UTF-8" ?> <introContent> - <!-- Extension to the SDK What's New Page. --> - <extensionContent alt-style="css/rdt.properties" path="news/page-content/noteworthy-links/generalAnchor"> - <link label="Ruby Development Tools" url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.rubypeople.rdt.doc.user/html/ch04.html" id="rdt-noteworthy" style-id="noteworthy-link"> - <text>News about RDT for this release</text> - </link> - </extensionContent> + <!-- Extension to the SDK What's New Page. --> + <extensionContent id="org.eclipse.jdt" name="Ruby Development Tools" path="whatsnew/@"> + <group style-id="content-group" id="content-group"> + <link label="Ruby Development Tools" url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.rubypeople.rdt.doc.user/html/ch03.html" id="rdt-noteworthy" style-id="content-link"> + <text>News about RDT for this release</text> + </link> + </group> + </extensionContent> </introContent> \ No newline at end of file Index: C:/PluginStuff/org.rubypeople.rdt/plugin.xml =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/plugin.xml (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/plugin.xml (working copy) @@ -1,25 +1,35 @@ <?xml version="1.0" encoding="UTF-8"?> -<?eclipse version="3.0"?> -<plugin - id="org.rubypeople.rdt" - name="%pluginName" - version="0.0.0" - provider-name="%providerName"> - <requires> - <import plugin="org.eclipse.ui.intro"/> - </requires> +<?eclipse version="3.2"?> +<plugin> + <extension point="org.eclipse.ui.intro.configExtension"> <configExtension + content="intro/rdtOverviewExtensionContent.xml" + configId="org.eclipse.ui.intro.universalConfig"/> + <configExtension content="intro/rdtTutorialsExtensionContent.xml" - configId="org.eclipse.platform.introConfig"/> + configId="org.eclipse.ui.intro.universalConfig"/> <configExtension - content="intro/rdtOverviewExtensionContent.xml" - configId="org.eclipse.platform.introConfig"/> - <configExtension content="intro/rdtNewsExtensionContent.xml" - configId="org.eclipse.platform.introConfig"/> + configId="org.eclipse.ui.intro.universalConfig"/> </extension> + <extension + point="org.eclipse.ui.cheatsheets.cheatSheetContent"> + <category + id="org.rubypeople.rdt.cheatsheet.category" + name="%cheatsheet.category.rdt"/> + <cheatsheet + category="org.rubypeople.rdt.cheatsheet.category" + composite="false" + contentFile="$nl$/cheatsheets/WebServices.xml" + id="org.rubypeople.rdt.cheatsheets.webservices" + name="%cheatsheet.webservices.name"> + <description> + %cheatsheet.webservices.desc + </description> + </cheatsheet> + </extension> </plugin> Index: C:/PluginStuff/org.rubypeople.rdt/META-INF/MANIFEST.MF =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/META-INF/MANIFEST.MF (revision 0) +++ C:/PluginStuff/org.rubypeople.rdt/META-INF/MANIFEST.MF (revision 0) @@ -0,0 +1,20 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.rubypeople.rdt;singleton:=true +Bundle-Version: 0.0.0 +Bundle-Localization: plugin +Require-Bundle: org.eclipse.core.resources, + org.eclipse.debug.ui, + org.rubypeople.rdt.ui, + org.rubypeople.rdt.core, + org.rubypeople.rdt.debug.core, + org.eclipse.ui.ide, + org.eclipse.ui.cheatsheets, + org.eclipse.core.runtime, + org.rubypeople.rdt.debug.ui, + org.eclipse.jface, + org.eclipse.ui.workbench +Eclipse-LazyStart: true +Bundle-Activator: org.rubypeople.rdt.cheatsheets.RdtPlugin +Bundle-Vendor: %providerName Index: C:/PluginStuff/org.rubypeople.rdt/.classpath =================================================================== --- C:/PluginStuff/org.rubypeople.rdt/.classpath (revision 1550) +++ C:/PluginStuff/org.rubypeople.rdt/.classpath (working copy) @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> + <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/>
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Rubyeclipse-development mailing list Rubyeclipse-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development