Skip to content

Commit

Permalink
[eclipse] Use Ecore description in the wizards for creating the SARL …
Browse files Browse the repository at this point in the history
…elements.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Jan 8, 2015
1 parent a197060 commit f4fe369
Show file tree
Hide file tree
Showing 19 changed files with 1,087 additions and 606 deletions.
6 changes: 6 additions & 0 deletions checkstyle/suppressions.xml
Expand Up @@ -77,5 +77,11 @@

<suppress checks="NPathComplexity" files="FieldInitializerUtil.java"/>

<suppress checks="NPathComplexity" files="Jdt2Ecore.java"/>
<suppress checks="CyclomaticComplexity" files="Jdt2Ecore.java"/>
<suppress checks="MethodLength" files="Jdt2Ecore.java"/>
<suppress checks="NestedIfDepth" files="Jdt2Ecore.java"/>
<suppress checks="ParameterNumber" files="Jdt2Ecore.java"/>

</suppressions>

Binary file modified plugins/io.sarl.eclipse/icons/sarl_new_agent_dialog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plugins/io.sarl.eclipse/icons/sarl_new_behavior_dialog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plugins/io.sarl.eclipse/icons/sarl_new_capacity_dialog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plugins/io.sarl.eclipse/icons/sarl_new_event_dialog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plugins/io.sarl.eclipse/icons/sarl_new_skill_dialog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 15 additions & 10 deletions plugins/io.sarl.eclipse/plugin.xml
Expand Up @@ -13,18 +13,17 @@
<wizard
category="io.sarl.eclipse.category.wizards"
class="io.sarl.eclipse.wizards.newproject.NewSarlProjectWizard"
finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
icon="icons/sarl_new_project_16.png"
id="io.sarl.eclipse.wizard.newSarlProject"
name="%wizard.name.newSarlProject"
preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective"
finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective,org.eclipse.jdt.ui.JavaBrowsingPerspective"
project="true">
<description>%wizard.description.newSarlProject"</description>
</wizard>
<wizard
category="io.sarl.eclipse.category.wizards"
class="io.sarl.eclipse.SARLEclipseExecutableExtensionFactory:io.sarl.eclipse.wizards.newfile.NewSarlFileWizard"
finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
icon="icons/sarl_new_file_16.png"
id="io.sarl.eclipse.wizard.newSarlScript"
name="%wizard.name.newSarlScript">
Expand Down Expand Up @@ -248,7 +247,7 @@
</property>
<property
name="preferenceCustomization"
value="plugin_customization.ini"/>
value="plugin_customization.ini"/>
</product>
</extension>

Expand All @@ -257,15 +256,21 @@
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<newWizardShortcut
id="io.sarl.eclipse.wizard.newSarlAgent">
</newWizardShortcut>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlProject"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlAgent"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlBehavior"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlCapacity"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlEvent"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlSkill"/>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaBrowsingPerspective">
<newWizardShortcut
id="io.sarl.eclipse.wizard.newSarlAgent">
</newWizardShortcut>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlProject"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlAgent"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlBehavior"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlCapacity"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlEvent"/>
<newWizardShortcut id="io.sarl.eclipse.wizard.newSarlSkill"/>
</perspectiveExtension>
</extension>

Expand Down
Expand Up @@ -36,13 +36,16 @@
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.swt.widgets.Shell;

import com.google.common.annotations.Beta;

/** Dialog box for selecting an agent type.
*
* @author $Author: sgalland$
* @version $FullVersion$
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
@Beta
public class SuperAgentSelectionDialog extends OpenTypeSelectionDialog {

/** Creates new instance of SuperInterfaceSelectionDialog.
Expand Down

0 comments on commit f4fe369

Please sign in to comment.