[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] perspectiveExtensions newWizardShort + addShowViewShortcut problem

Hello,

I defined a newWizardShortcut and a perspective with a perspective factory like that:

public void createInitialLayout (IPageLayout layout)
{
 layout.addShowViewShortcut("org.eclipse.ui.navigator.ProjectExplorer");
}

The problem is that the shortcut for the project wizard only appears in this perspective when the layout.addShowViewShortcut method is not called!!

Any ideas?

----

I give here the the full plugin.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>

	<extension
         point="org.eclipse.ui.newWizards">

	      <category
	            name="MyWizard"
	            id="testfilewizard.MyWizard.category">
	      </category>
	
	      <wizard
	            name="NewOpenSpliceProject"
	            category="testfilewizard.MyWizard.category"
	            id="MyWizardID"
	         	class="testfilewizard.MyWizard"
	         	project="true"
	     	>
	      </wizard>

      </extension>

   	<extension point="org.eclipse.ui.perspectiveExtensions">
	 	<perspectiveExtension targetID="*">
			<newWizardShortcut id="MyWizardID"/>
		</perspectiveExtension>
	</extension>
	
	
</plugin>