public code v1

This commit is contained in:
Francisco Jesús Martínez Mimbrera
2026-05-23 00:32:57 +02:00
commit 759a8968a2
4357 changed files with 163763 additions and 0 deletions
@@ -0,0 +1,7 @@
<?flintstones.helper.data.xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>flintstones.group</groupId>
<artifactId>flintstones.bundles</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>flintstones.application</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<name>[bundle] Plugin rcp flintstones</name>
<organization>
<name>Sinbad2</name>
</organization>
</project>
+45
View File
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>flintstones.application</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1779484362511</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
pluginProject.extensions=false
resolve.requirebundle=false
@@ -0,0 +1,206 @@
<?xml version="1.0" encoding="UTF-8"?>
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_Sxnc4NQ5EeeQP5iyua1uaQ" elementId="flintstones.application.application">
<children xsi:type="basic:TrimmedWindow" xmi:id="_VKupUNQ5EeeQP5iyua1uaQ" elementId="flintstones.application.trimmedwindow.flintstones" label="%flintstones.application.trimmedwindow.main.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/flintstones.png" x="0" y="0" width="1050" height="750">
<children xsi:type="advanced:PerspectiveStack" xmi:id="_m_Pz0NQ5EeeQP5iyua1uaQ" elementId="flintstones.application.perspectivestack.modes">
<children xsi:type="advanced:Perspective" xmi:id="_aLD10LcpEeiIWMI8wDGaZg" elementId="flintstones.application.perspective.framework" label="%flintstones.application.perspective.framework.label"/>
<children xsi:type="advanced:Perspective" xmi:id="_K4OCQNQ6EeeQP5iyua1uaQ" elementId="flintstones.application.perspective.sensitiveanalysis" label="%flintstones.application.perspective.sensitiveanalysis.label">
<children xsi:type="basic:PartSashContainer" xmi:id="_kc1t8LpmEeiTBpFMx0o9lA" elementId="flintstones.application.partsashcontainer.0" horizontal="true">
<children xsi:type="basic:PartSashContainer" xmi:id="_mQQzYLpmEeiTBpFMx0o9lA" elementId="flintstones.application.partsashcontainer.1" containerData="3000">
<children xsi:type="basic:PartStack" xmi:id="_MyFTYLpnEeiTBpFMx0o9lA" elementId="flintstones.application.partstack.0">
<children xsi:type="basic:Part" xmi:id="_unrxULpmEeiTBpFMx0o9lA" elementId="flintstones.application.part.matrizdedecisin" label="Matriz de decisión"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="_NZIsULpnEeiTBpFMx0o9lA" elementId="flintstones.application.partstack.0">
<children xsi:type="basic:Part" xmi:id="_u_ChYLpmEeiTBpFMx0o9lA" elementId="flintstones.application.part.ranking" label="Ranking"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="_NcZbsLpnEeiTBpFMx0o9lA" elementId="flintstones.application.partstack.0">
<children xsi:type="basic:Part" xmi:id="_vVst4LpmEeiTBpFMx0o9lA" elementId="flintstones.application.part.dominio" label="Dominio"/>
</children>
</children>
<children xsi:type="basic:PartSashContainer" xmi:id="_rhnYQLpmEeiTBpFMx0o9lA" elementId="flintstones.application.partsashcontainer.2" containerData="7000">
<children xsi:type="basic:PartStack" xmi:id="_OzGv8LpnEeiTBpFMx0o9lA" elementId="flintstones.application.partstack.1">
<children xsi:type="basic:Part" xmi:id="_v0Dd0LpmEeiTBpFMx0o9lA" elementId="flintstones.application.part.analisissensible" label="Analisis sensible"/>
</children>
<children xsi:type="basic:PartStack" xmi:id="_PAedkLpnEeiTBpFMx0o9lA" elementId="flintstones.application.partstack.1">
<children xsi:type="basic:Part" xmi:id="_wHIK0LpmEeiTBpFMx0o9lA" elementId="flintstones.application.part.analisis" label="Analisis"/>
</children>
</children>
</children>
</children>
<children xsi:type="advanced:Perspective" xmi:id="_As7rQLdNEei3OIr3jKHUzg" elementId="flintstones.application.perspective.debug" label="Consola">
<children xsi:type="basic:Part" xmi:id="_DC7SQLdNEei3OIr3jKHUzg" elementId="flintstones.application.part.consola" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.ConsolaControl" label="Consola"/>
</children>
</children>
<mainMenu xmi:id="_if-wwNmrEee116JrfV3ZgA" elementId="flintstones.application.menu.main">
<children xsi:type="menu:Menu" xmi:id="_j4OWENmrEee116JrfV3ZgA" elementId="flintstones.application.menu.file" label="%flintstones.application.menu.file.label">
<children xsi:type="menu:HandledMenuItem" xmi:id="_qUhEENmrEee116JrfV3ZgA" elementId="flintstones.application.menu.file.handledmenuitem.new" label="%flintstones.application.menu.file.handledmenuitem.new.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/new_16.png" command="_5j_WMN5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_D2XwgN5IEeeaK6O5x57v_w" elementId="flintstones.application.menu.file.handledmenuitem.open" label="%flintstones.application.menu.file.handledmenuitem.open.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/read_16.png" command="_7hsZAN5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_EL5UkN5IEeperspective_parametereaK6O5x57v_w" elementId="flintstones.application.menu.file.handledmenuitem.save" label="%flintstones.application.menu.file.handledmenuitem.save.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/save_16.png" command="_9VM-AN5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_Efp-EN5IEeeaK6O5x57v_w" elementId="flintstones.application.menu.file.handledmenuitem.saveas" label="%flintstones.application.menu.file.handledmenuitem.saveas.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/save-as_16.png" command="__ERH4N5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_Fs7pgN5IEeeaK6O5x57v_w" elementId="flintstones.application.menu.file.handledmenuitem.saveandclose" label="%flintstones.application.menu.file.handledmenuitem.saveandclose.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/save-and-close_16.png" command="__8g-gN5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_GDE4oN5IEeeaK6O5x57v_w" elementId="flintstones.application.menu.file.handledmenuitem.exit" label="%flintstones.application.menu.file.handledmenuitem.exit.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/exit_16.png" command="_BeDpwN5SEeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_QF96IHfREemHI7uE3cdyIA" elementId="flintstones.application.handledmenuitem.openfs4folder" label="Open FS4 folder" iconURI="platform:/plugin/flintstones.model.ui.service/icons/core/fs4folder.png" command="_sSoZoHfQEemHI7uE3cdyIA"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_X6BA8Ng-Eeij3usL0pMmRg" elementId="flintstones.application.handledmenuitem.debug.opensavefile" label="IO/ Open save file" iconURI="platform:/plugin/flintstones.model.ui.service/icons/save_16.png" command="_MuDe0Ng-Eeij3usL0pMmRg"/>
</children>
<children xsi:type="menu:Menu" xmi:id="_lNECENmrEee116JrfV3ZgA" elementId="flintstones.application.menu.edit" visible="false" label="%flintstones.application.menu.edit.label">
<children xsi:type="menu:HandledMenuItem" xmi:id="_rUTGENmrEee116JrfV3ZgA" elementId="flintstones.application.menu.edit.handledmenuitem.undo" label="%flintstones.application.menu.edit.handledmenuitem.undo.label" command="_EGJGUN5SEeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_76RcoN5HEeeaK6O5x57v_w" elementId="flintstones.application.menu.edit.handledmenuitem.redo" label="%flintstones.application.menu.edit.handledmenuitem.redo.label" command="_EX0sMN5SEeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_8ng9IN5HEeeaK6O5x57v_w" elementId="flintstones.application.menu.edit.handledmenuitem.preferences" label="%flintstones.application.menu.edit.handledmenuitem.preferences.label" command="_EpWhEN5SEeeaK6O5x57v_w"/>
</children>
<children xsi:type="menu:Menu" xmi:id="_e29_QGfgEei7ktnwzrASpg" elementId="flintstones.application.menu.locale" label="%flintstones.application.menu.locale.label"/>
<children xsi:type="menu:Menu" xmi:id="_CFta8Ip9Eei81qL9gMJd7g" elementId="flintstones.application.menu.debug" visible="false" label="Debug">
<children xsi:type="menu:HandledMenuItem" xmi:id="_d0GkgL2JEeioR4eM7V2_mg" elementId="flintstones.application.handledmenuitem.fillvaluations" label="1/ Fill Valuations" command="_i2tiwL2JEeioR4eM7V2_mg"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_xIhZAJVcEeis2uwRWAmrWA" elementId="flintstones.application.handledmenuitem.debug.dumpPhasesOutput" label="2/ Dump Phases Output" command="_o7qFQJVcEeis2uwRWAmrWA"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_-VhHQKoYEemPtJzRD3yTZQ" elementId="flintstones.application.handledmenuitem.debug.exportAFRYCA" label="3/ Export to AFRYCA" iconURI="platform:/plugin/flintstones.model.ui.service/icons/debug/afryca_export_24.png" command="_qy4OEKoYEemPtJzRD3yTZQ"/>
<children xsi:type="menu:Menu" xmi:id="_w7PQkLvgEeiuvtI0hafizA" elementId="flintstones.application.menu.phasemethod" label="4/ PhaseMethod">
<children xsi:type="menu:HandledMenuItem" xmi:id="_zWHXkLvgEeiuvtI0hafizA" elementId="flintstones.application.handledmenuitem.filloperators" label="Fill Operators (Aggregation)" command="_5D2WcLvgEeiuvtI0hafizA"/>
</children>
<children xsi:type="menu:HandledMenuItem" xmi:id="_hlGBkLfxEeikhInIbJXGxA" elementId="flintstones.application.handledmenuitem.debug.console" label="S/ Open in-app console" iconURI="platform:/plugin/flintstones.model.ui.service/icons/debug/terminal-24.png" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_gS_TAbdNEei3OIr3jKHUzg" elementId="flintstones.application.parameter.debug" name="perspective_parameter" value="flintstones.application.perspective.debug"/>
</children>
<children xsi:type="menu:HandledMenuItem" xmi:id="_FddOULZ5EeiSmZkCPSqT0Q" elementId="flintstones.application.handledmenuitem.debug.dumpextensionpoints" label="S/ Dump Extension Points" command="_5mHM4LZ4EeiSmZkCPSqT0Q"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_HNChIIp9Eei81qL9gMJd7g" elementId="flintstones.application.handledmenuitem.debug.dumpServices" label="S/ Dump Services" command="_Jx-4MIp_Eei81qL9gMJd7g"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_3FvvAMCWEeitvLkIerbKqA" elementId="flintstones.application.handledmenuitem.debug.systemout" label="S/ System Out" command="_uhnx0MCWEeitvLkIerbKqA"/>
<children xsi:type="menu:HandledMenuItem" xmi:id="_B0jXANeAEeiT2tj0DVMmxQ" elementId="flintstones.application.handledmenuitem.debug.execute" label="S/ Execute" command="_3H3K0Nd_EeiT2tj0DVMmxQ"/>
</children>
<children xsi:type="menu:Menu" xmi:id="_Q6Wl8OGbEeixlsnf5s6j4g" elementId="flintstones.application.menu.rating" visible="false" label="Metodos"/>
<children xsi:type="menu:Menu" xmi:id="_DBPFEAT9EemKL7i9bTkQxg" elementId="flintstones.application.menu.sendbroker" visible="false" label="Events"/>
</mainMenu>
<trimBars xmi:id="_qhX6UN5LEeeaK6O5x57v_w" elementId="flintstones.application.trimbar" side="Bottom">
<tags>NO_MOVE</tags>
<children xsi:type="menu:ToolBar" xmi:id="_vY_wkN5LEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.file" toBeRendered="false" visible="false">
<tags>no_move</tags>
<tags>NO_MOVE</tags>
<children xsi:type="menu:HandledToolItem" xmi:id="_j7HGEN5NEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.file.handledtoolitem.new" label="%flintstones.application.toolbar.file.handledtoolitem.new.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/new_16.png" tooltip="%flintstones.application.toolbar.file.handledtoolitem.new.tooltip" command="_5j_WMN5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_d7Oc4N5xEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.file.handledtoolitem.open" label="%flintstones.application.toolbar.file.handledtoolitem.open.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/read_16.png" tooltip="%flintstones.application.toolbar.file.handledtoolitem.open.tooltip" command="_7hsZAN5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_-O4xgN5xEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.file.handledtoolitem.save" label="%flintstones.application.toolbar.file.handledtoolitem.save.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/save_16.png" tooltip="%flintstones.application.toolbar.file.handledtoolitem.save.tooltip" command="_9VM-AN5REeeaK6O5x57v_w"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_K6kZ8N5yEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.file.handledtoolitem.saveandclose" label="%flintstones.application.toolbar.file.handledtoolitem.saveandclose.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/save-and-close_16.png" tooltip="%flintstones.application.toolbar.file.handledtoolitem.saveandclose.tooltip" command="__8g-gN5REeeaK6O5x57v_w"/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_I2sdgN5NEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.perspectiveswitcher" toBeRendered="false" visible="false">
<tags>NO_MOVE</tags>
<children xsi:type="menu:HandledToolItem" xmi:id="_RwPREN5NEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework" visible="false" accessibilityPhrase="1. Framework" label="1. Framework" iconURI="" tooltip="" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_XftSUN5uEeeaK6O5x57v_w" elementId="flintstones.application.parameter.perspectiveFramework" name="perspective_parameter" value="flintstones.application.perspective.framework"/>
</children>
<children xsi:type="menu:HandledToolItem" xmi:id="_EYCSkIkYEemONYgjlNTlVA" elementId="flintstones.application.handledtoolitem." visible="false" label=" > "/>
<children xsi:type="menu:HandledToolItem" xmi:id="_YT22oN5vEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating" toBeRendered="false" visible="false" label="%flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/rating.png" tooltip="%flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating.tooltip" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_sYuTIN5vEeeaK6O5x57v_w" elementId="flintstones.application.parameter.perspectiverating" name="perspective_parameter" value="flintstones.application.perspective.rating"/>
</children>
<children xsi:type="menu:HandledToolItem" xmi:id="_zq3rEN5vEeeaK6O5x57v_w" elementId="flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.sensitiveanalysis" toBeRendered="false" visible="false" label="%flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.sensitiveanalysis.label" iconURI="platform:/plugin/flintstones.model.ui.service/icons/sensitivityanalysis.png" tooltip="%flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.sensitiveanalysis.tooltip" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_7b3iMN5vEeeaK6O5x57v_w" elementId="flintstones.application.parameter.perspectivesensitiveanalysis" name="perspective_parameter" value="flintstones.application.perspective.sensitiveanalysis"/>
</children>
<children xsi:type="menu:HandledToolItem" xmi:id="_K5upUBsMEemGeYpfhM1LEg" elementId="flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.method" toBeRendered="false" visible="false" label="Phase" iconURI="platform:/plugin/flintstones.model.ui.service/icons/rating.png" tooltip="%flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating.tooltip" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_K5upURsMEemGeYpfhM1LEg" elementId="flintstones.application.parameter.method" name="perspective_parameter" value="flintstones.application.perspective.phase"/>
</children>
<children xsi:type="menu:HandledToolItem" xmi:id="_HFZfcIkSEemONYgjlNTlVA" elementId="flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework" visible="false" accessibilityPhrase="2.Framework Structuring" label="2.Framework Structuring" iconURI="" tooltip="2.Framework Structuring" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_HFZfcYkSEemONYgjlNTlVA" elementId="flintstones.application.parameter.perspectiveFramework" name="perspective_parameter" value="flintstones.application.perspective.frameworkstructuring"/>
</children>
<children xsi:type="menu:HandledToolItem" xmi:id="_HbBxMIkSEemONYgjlNTlVA" elementId="flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework" visible="false" accessibilityPhrase="3. Gathering" label="3. Gathering" iconURI="" tooltip="3. Gathering" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_HbBxMYkSEemONYgjlNTlVA" elementId="flintstones.application.parameter.perspectiveFramework" name="perspective_parameter" value="flintstones.application.perspective.gathering"/>
</children>
<children xsi:type="menu:HandledToolItem" xmi:id="_PbZSUIkYEemONYgjlNTlVA" elementId="flintstones.application.handledtoolitem." visible="false" label=" > "/>
<children xsi:type="menu:HandledToolItem" xmi:id="_HfwgMIkSEemONYgjlNTlVA" elementId="flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework" visible="false" accessibilityPhrase="4.Method Selection" label="4.Method Selection" iconURI="" tooltip="4.Method Selection" command="_NsH0AN5QEeeaK6O5x57v_w">
<parameters xmi:id="_HfwgMYkSEemONYgjlNTlVA" elementId="flintstones.application.parameter.perspectiveFramework" name="perspective_parameter" value="flintstones.application.perspective.method"/>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_UUyF4I54Eem1xKzhwIP4vw" elementId="flintstones.application.toolcontrol.1" toBeRendered="false" visible="false" accessibilityPhrase=">" contributionURI="bundleclass://flintstones.application/flintstones.applicaiton.toolcontrols.ArrowSeparatorToolControl"/>
<children xsi:type="menu:HandledToolItem" xmi:id="_N3nLYIkYEemONYgjlNTlVA" elementId="flintstones.application.handledtoolitem." label=""/>
</children>
<children xsi:type="menu:ToolBar" xmi:id="_S5TgcIkUEemONYgjlNTlVA" elementId="flintstones.application.toolbar.0" toBeRendered="false" visible="false">
<children xsi:type="menu:HandledToolItem" xmi:id="_h7E2gIkUEemONYgjlNTlVA" elementId="flintstones.application.directtoolitem.problem.type" label="Ranking Problem" command="_mHP8AIkUEemONYgjlNTlVA">
<tags>stretch</tags>
</children>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_e-K1cN8SEeeaK6O5x57v_w" elementId="flintstones.application.toolcontrol.spacercontrol" toBeRendered="false" visible="false" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.SpacerControl">
<tags>stretch</tags>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_5YRjgI50Eem1xKzhwIP4vw" elementId="flintstones.application.toolcontrol.0" contributionURI="bundleclass://flintstones.application/flintstones.applicaiton.toolcontrols.MenuItemToolControl">
<persistedState key="label" value="Framework"/>
<persistedState key="position" value="1"/>
<persistedState key="perspective" value="flintstones.application.perspective.framework"/>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_2asQsI53Eem1xKzhwIP4vw" elementId="flintstones.application.toolcontrol.0" contributionURI="bundleclass://flintstones.application/flintstones.applicaiton.toolcontrols.MenuItemToolControl">
<persistedState key="label" value="Framework Structuring"/>
<persistedState key="position" value="2"/>
<persistedState key="perspective" value="flintstones.application.perspective.frameworkstructuring"/>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_2qF-oI53Eem1xKzhwIP4vw" elementId="flintstones.application.toolcontrol.0" contributionURI="bundleclass://flintstones.application/flintstones.applicaiton.toolcontrols.MenuItemToolControl">
<persistedState key="label" value="Gathering"/>
<persistedState key="position" value="3"/>
<persistedState key="perspective" value="flintstones.application.perspective.gathering"/>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_21WzcI53Eem1xKzhwIP4vw" elementId="flintstones.application.toolcontrol.0" contributionURI="bundleclass://flintstones.application/flintstones.applicaiton.toolcontrols.MenuItemToolControl">
<persistedState key="label" value="Method Selection"/>
<persistedState key="position" value="4"/>
<persistedState key="perspective" value="flintstones.application.perspective.method"/>
</children>
<children xsi:type="menu:ToolControl" xmi:id="_xlURoJDyEemfreztMATwIQ" elementId="flintstones.application.toolcontrol.5" contributionURI="bundleclass://flintstones.application/flintstones.applicaiton.toolcontrols.RankingToolControl"/>
</trimBars>
</children>
<handlers xmi:id="_Qzra0N5QEeeaK6O5x57v_w" elementId="flintstones.application.handler.perspectiveswitcher" contributionURI="bundleclass://flintstones.application/flintstones.application.handlers.PerspectiveSwitcher" command="_NsH0AN5QEeeaK6O5x57v_w"/>
<handlers xmi:id="_VayogN5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.new" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.NewHandler" command="_5j_WMN5REeeaK6O5x57v_w"/>
<handlers xmi:id="_WLEO4N5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.open" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.OpenHandler" command="_7hsZAN5REeeaK6O5x57v_w"/>
<handlers xmi:id="_WdOV4N5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.save" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.SaveHandler" command="_9VM-AN5REeeaK6O5x57v_w"/>
<handlers xmi:id="_W0V1YN5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.saveas" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.SaveAsHandler" command="__ERH4N5REeeaK6O5x57v_w"/>
<handlers xmi:id="_XFi6IN5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.saveandclose" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.SaveAndCloseHandler" command="__8g-gN5REeeaK6O5x57v_w"/>
<handlers xmi:id="_XXZfIN5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.exit" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.ExitHandler" command="_BeDpwN5SEeeaK6O5x57v_w"/>
<handlers xmi:id="_XocL0N5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.undo" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.UndoHandler" command="_EGJGUN5SEeeaK6O5x57v_w"/>
<handlers xmi:id="_X35kIN5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.redo" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.RedoHandler" command="_EX0sMN5SEeeaK6O5x57v_w"/>
<handlers xmi:id="_YQRn4N5TEeeaK6O5x57v_w" elementId="flintstones.application.handler.preferences" contributionURI="bundleclass://flintstones.application/flintstones.application.handlers.PreferencesHandler" command="_EpWhEN5SEeeaK6O5x57v_w"/>
<handlers xmi:id="_UYwpoIp_Eei81qL9gMJd7g" elementId="flintstones.application.handler.debug.dumpservices" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.DumpServicesDebugHandler" command="_Jx-4MIp_Eei81qL9gMJd7g"/>
<handlers xmi:id="_j4npMJVcEeis2uwRWAmrWA" elementId="flintstones.application.handler.debug.dumpPhasesOutput" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.DumpPhasesOutputDebugHandler" command="_o7qFQJVcEeis2uwRWAmrWA"/>
<handlers xmi:id="_gnLKsLD0EeiD8uJk4efgGw" elementId="flintstones.application.handler.debug.cleardomain" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.ClearDomainDebugHandler" command="_lq48MLD0EeiD8uJk4efgGw"/>
<handlers xmi:id="_-GQ-ULZ4EeiSmZkCPSqT0Q" elementId="flintstones.application.handler.debug.dumpextensionpoints" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.DumpExtensionPointDataDebugHandler" command="_5mHM4LZ4EeiSmZkCPSqT0Q"/>
<handlers xmi:id="_39kD0LvgEeiuvtI0hafizA" elementId="flintstones.application.handler.0" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.FillOperatorsAggregation" command="_5D2WcLvgEeiuvtI0hafizA"/>
<handlers xmi:id="_lsD_QL2JEeioR4eM7V2_mg" elementId="flintstones.application.handler.fillvaluations" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.FillValuationsDebugHandler" command="_i2tiwL2JEeioR4eM7V2_mg"/>
<handlers xmi:id="_xcuRAMCWEeitvLkIerbKqA" elementId="flintstones.application.handler.debug.systemout.debug" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.SystemOutDebugHandler" command="_uhnx0MCWEeitvLkIerbKqA"/>
<handlers xmi:id="_5oy2gNd_EeiT2tj0DVMmxQ" elementId="flintstones.application.handler.debug.execute" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.ExecuteDebugHandler" command="_3H3K0Nd_EeiT2tj0DVMmxQ"/>
<handlers xmi:id="_kkjqoKoYEemPtJzRD3yTZQ" elementId="flintstones.application.handler.debug.exportAFRYCA" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.ExportToAFRYCA" command="_qy4OEKoYEemPtJzRD3yTZQ"/>
<handlers xmi:id="_KXjhgNg-Eeij3usL0pMmRg" elementId="flintstones.application.handler.debug.opensavefile" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.OpenSaveFileDebugHandler" command="_MuDe0Ng-Eeij3usL0pMmRg"/>
<handlers xmi:id="_6vx2sODVEeiBfuNNVMsYCg" elementId="flintstones.application.handler.locale" contributionURI="bundleclass://flintstones.application/flintstones.application.handlers.LocaleHandler" command="_wTwhwODrEeiBfuNNVMsYCg"/>
<handlers xmi:id="_jFQ3MOGbEeixlsnf5s6j4g" elementId="flintstones.application.handler.rating.selectmethod" contributionURI="bundleclass://flintstones.application/flintstones.application.handlers.SelectMethodHandler" command="_dhzOoOGbEeixlsnf5s6j4g"/>
<handlers xmi:id="_Y3xXwAQyEem-OrUHyIVU5A" elementId="flintstones.application.handler.debug.sendbroker" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.SendBrokerDebugHandler" command="_b4dhkAQyEem-OrUHyIVU5A"/>
<handlers xmi:id="_vI41EHfQEemHI7uE3cdyIA" elementId="flintstones.application.handler.openfs4folder" contributionURI="bundleclass://flintstones.application.control/flintstones.application.control.handler.OpenFs4FolderHandler" command="_sSoZoHfQEemHI7uE3cdyIA"/>
<handlers xmi:id="_pT4QEIkUEemONYgjlNTlVA" elementId="flintstones.application.handler.changeproblemtype" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.handler.ChangeProblemTypeHandler" command="_mHP8AIkUEemONYgjlNTlVA"/>
<commands xmi:id="_NsH0AN5QEeeaK6O5x57v_w" elementId="flintstones.application.command.perspectiveswitcher" commandName="%flintstones.application.command.perspectiveswitcher.name">
<parameters xmi:id="_5ZeJcN5rEeeaK6O5x57v_w" elementId="perspective_parameter" name="perspective"/>
</commands>
<commands xmi:id="_5j_WMN5REeeaK6O5x57v_w" elementId="flintstones.application.command.new" commandName="%flintstones.application.command.new.name"/>
<commands xmi:id="_7hsZAN5REeeaK6O5x57v_w" elementId="flintstones.application.command.open" commandName="%flintstones.application.command.open.name"/>
<commands xmi:id="_9VM-AN5REeeaK6O5x57v_w" elementId="flintstones.application.command.save" commandName="%flintstones.application.command.open.name"/>
<commands xmi:id="__ERH4N5REeeaK6O5x57v_w" elementId="flintstones.application.command.saveas" commandName="%flintstones.application.command.saveas.name"/>
<commands xmi:id="__8g-gN5REeeaK6O5x57v_w" elementId="flintstones.application.command.saveandclose" commandName="%flintstones.application.command.saveandclose.name"/>
<commands xmi:id="_BeDpwN5SEeeaK6O5x57v_w" elementId="flintstones.application.command.exit" commandName="%flintstones.application.command.exit.name"/>
<commands xmi:id="_EGJGUN5SEeeaK6O5x57v_w" elementId="flintstones.application.command.undo" commandName="%flintstones.application.command.undo.name"/>
<commands xmi:id="_EX0sMN5SEeeaK6O5x57v_w" elementId="flintstones.application.command.redo" commandName="%flintstones.application.command.redo.name"/>
<commands xmi:id="_EpWhEN5SEeeaK6O5x57v_w" elementId="flintstones.application.command.preferences" commandName="%flintstones.application.command.preferences.name"/>
<commands xmi:id="_Jx-4MIp_Eei81qL9gMJd7g" elementId="flintstones.application.command.debug.dumpServices" commandName="[DEBUG] Dump services"/>
<commands xmi:id="_o7qFQJVcEeis2uwRWAmrWA" elementId="flintstones.application.command.debug.dumpPhasesOutput" commandName="[DEBUG] Dump Phases Output"/>
<commands xmi:id="_lq48MLD0EeiD8uJk4efgGw" elementId="flintstones.application.command.debug.cleardomain" commandName="[DEBUG] Clear Domain"/>
<commands xmi:id="_5mHM4LZ4EeiSmZkCPSqT0Q" elementId="flintstones.application.command.debug.dumpextensionpoints" commandName="[DEBUG] Dump Extension Points"/>
<commands xmi:id="_5D2WcLvgEeiuvtI0hafizA" elementId="flintstones.application.command.debugfilloperatorsaggregation" commandName="[DEBUG] Fill Operators (Aggregation)"/>
<commands xmi:id="_i2tiwL2JEeioR4eM7V2_mg" elementId="flintstones.application.command.fillValuations" commandName="[DEBUG] Fill valuations"/>
<commands xmi:id="_uhnx0MCWEeitvLkIerbKqA" elementId="flintstones.application.command.systemout.debug" commandName="[DEBUG] System Out"/>
<commands xmi:id="_3H3K0Nd_EeiT2tj0DVMmxQ" elementId="flintstones.application.command.debug.execute" commandName="[DEBUG] Execute"/>
<commands xmi:id="_qy4OEKoYEemPtJzRD3yTZQ" elementId="flintstones.application.command.debug.exportAFRYCA" commandName="[DEBUG] Export to AFRYCA"/>
<commands xmi:id="_MuDe0Ng-Eeij3usL0pMmRg" elementId="flintstones.application.command.debug.opensavefile" commandName="Open Save File"/>
<commands xmi:id="_wTwhwODrEeiBfuNNVMsYCg" elementId="flintstones.application.command.locale" commandName="Locale Manager">
<parameters xmi:id="_yQrhcODrEeiBfuNNVMsYCg" elementId="flintstones.application.commandparameter.localeId" name="locale_id" optional="false"/>
</commands>
<commands xmi:id="_dhzOoOGbEeixlsnf5s6j4g" elementId="flintstones.application.command.rating.selectmethod" commandName="Select Method">
<parameters xmi:id="_v0OdIOGbEeixlsnf5s6j4g" elementId="flintstones.application.commandparameter.rating.selectmethod" name="method_id"/>
</commands>
<commands xmi:id="_b4dhkAQyEem-OrUHyIVU5A" elementId="flintstones.application.command.debug.sendbroker" commandName="[DEBUG] Send Broker">
<parameters xmi:id="_QX_5oAQzEem-OrUHyIVU5A" elementId="flintstones.application.commandparameter.debug.sendbroker.brokerevent" name="event_id"/>
</commands>
<commands xmi:id="_sSoZoHfQEemHI7uE3cdyIA" elementId="flintstones.application.command.openfs4folder" commandName="Open Flintstones 4 Folder"/>
<commands xmi:id="_mHP8AIkUEemONYgjlNTlVA" elementId="flintstones.application.command.changeproblemtype" commandName="Change Problem Type"/>
<addons xmi:id="_Sxnc4dQ5EeeQP5iyua1uaQ" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
<addons xmi:id="_Sxnc4tQ5EeeQP5iyua1uaQ" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
<addons xmi:id="_Sxnc49Q5EeeQP5iyua1uaQ" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
<addons xmi:id="_Sxnc5NQ5EeeQP5iyua1uaQ" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
<addons xmi:id="_Sxnc5dQ5EeeQP5iyua1uaQ" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
<addons xmi:id="_Sxnc5tQ5EeeQP5iyua1uaQ" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
<addons xmi:id="_Sxnc59Q5EeeQP5iyua1uaQ" elementId="org.eclipse.e4.ui.workbench.handler.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
<addons xmi:id="_jBpOMHOMEeiM-_fGUFmdMA" elementId="flintstones.application.addon.LoadServicesAddon" contributionURI="bundleclass://flintstones.application/flintstones.application.addons.LoadServicesAddon"/>
<addons xmi:id="_ZeQWgDlvEeiRAZAz6MpOhg" elementId="flintstones.application.addon.loadfile" contributionURI="bundleclass://flintstones.application/flintstones.application.addons.LoadFileAddon"/>
<addons xmi:id="_FPSnoELXEeiYJLQBLNtfkQ" elementId="flintstones.application.addon.auto" contributionURI="bundleclass://flintstones.application.debug/flintstones.application.debug.addon.AutoAddon"/>
<addons xmi:id="_AsONMARHEem-OrUHyIVU5A" elementId="flintstones.application.addon.0" contributionURI="bundleclass://flintstones.application/flintstones.application.addons.RedirectErrorsAddon"/>
</application:Application>
@@ -0,0 +1,44 @@
Manifest-Version: 1.0
Automatic-Module-Name: flintstones.application
Bundle-SymbolicName: flintstones.application;singleton:=true
Export-Package: flintstones.application.handlers
Bundle-Name: Plugin rcp flintstones
Bundle-Version: 1.0.0.qualifier
Require-Bundle: flintstones.model.application.service,
javax.annotation,
javax.inject,
org.eclipse.e4.ui.di,
org.eclipse.e4.core.contexts,
org.eclipse.e4.core.services,
flintstones.model.domain.service,
org.eclipse.e4.ui.services,
flintstones.entity.domain,
flintstones.helper.debug,
flintstones.helper.data,
org.eclipse.e4.ui.workbench,
org.eclipse.e4.ui.model.workbench,
org.eclipse.swt,
org.eclipse.core.runtime,
flintstones.helper.data.io,
org.eclipse.e4.core.di,
org.eclipse.jface,
flintstones.model.problemelement.service,
flintstones.application.constants,
flintstones.model.ui.service,
org.eclipse.nebula.widgets.opal.notifier,
flintstones.model.valuation.service,
org.eclipse.equinox.registry,
flintstones.helper.ui,
flintstones.application.perspective.framework.ui,
flintstones.domain.numeric.real,
flintstones.valuation.numeric.integer,
flintstones.model.application.provider,
flintstones.entity.method,
flintstones.model.method.service,
org.lorissecuro.ui,
flintstones.application.debug
Bundle-ManifestVersion: 2
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-Vendor: Sinbad2
Eclipse-BundleShape: dir
@@ -0,0 +1,49 @@
flintstones.application.trimmedwindow.main.label = Flintstones
flintstones.application.perspective.framework.label = Framework
flintstones.application.perspective.frameworkstructuring.label = Framework Structuring
flintstones.application.perspective.gathering.label = Gathering
flintstones.application.perspective.rating.label = Rating
flintstones.application.perspective.sensitiveanalysis.label = Sensitive Analysis
flintstones.application.menu.file.label = File
flintstones.application.menu.file.handledmenuitem.new.label = New
flintstones.application.menu.file.handledmenuitem.open.label = Open
flintstones.application.menu.file.handledmenuitem.save.label = Save
flintstones.application.menu.file.handledmenuitem.saveas.label = Save as...
flintstones.application.menu.file.handledmenuitem.saveandclose.label = Save and close
flintstones.application.menu.file.handledmenuitem.exit.label = Exit
flintstones.application.menu.edit.label = Edit
flintstones.application.menu.edit.handledmenuitem.undo.label = Undo
flintstones.application.menu.edit.handledmenuitem.redo.label = Redo
flintstones.application.menu.edit.handledmenuitem.preferences.label = Preferences
flintstones.application.toolbar.file.handledtoolitem.new.label = New
flintstones.application.toolbar.file.handledtoolitem.new.tooltip = New
flintstones.application.toolbar.file.handledtoolitem.open.label = Open
flintstones.application.toolbar.file.handledtoolitem.open.tooltip = Open
flintstones.application.toolbar.file.handledtoolitem.save.label= Save
flintstones.application.toolbar.file.handledtoolitem.save.tooltip = Save
flintstones.application.toolbar.file.handledtoolitem.saveandclose.label = Save and close
flintstones.application.toolbar.file.handledtoolitem.saveandclose.tooltip = Save and close
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework.label = Framework
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework.tooltip = Framework
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.frameworkstructuring.label = Framework Structuring
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.frameworkstructuring.tooltip = Framework Structuring
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.gathering.label = Gathering
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.gathering.tooltip = Gathering
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating.label = Rating
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating.tooltip = Rating
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.sensitiveanalysis.label = Sensitive Analysis
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.sensitiveanalysis.tooltip = Sensitive Analysis
flintstones.application.command.perspectiveswitcher.name = Perspective switcher
flintstones.application.command.new.name = New
flintstones.application.command.open.name = Open
flintstones.application.command.save.name = Save
flintstones.application.command.saveas.name = Save as
flintstones.application.command.saveandclose.name = Save and close
flintstones.application.command.exit.name = Exit
flintstones.application.command.undo.name = Undo
flintstones.application.command.redo.name = Redo
flintstones.application.command.preferences.name = Preferences
flintstones.application.menu.locale.label=Language
flintstones.application.menu.locale.es.label=Spanish
flintstones.application.menu.locale.en.label=English
@@ -0,0 +1,49 @@
flintstones.application.trimmedwindow.main.label = Flintstones
flintstones.application.perspective.framework.label = Framework
flintstones.application.perspective.frameworkstructuring.label = Framework Structuring
flintstones.application.perspective.gathering.label = Gathering
flintstones.application.perspective.rating.label = Rating
flintstones.application.perspective.sensitiveanalysis.label = Sensitive Analysis
flintstones.application.menu.file.label = Archivo
flintstones.application.menu.file.handledmenuitem.new.label = Nuevo
flintstones.application.menu.file.handledmenuitem.open.label = Abrir
flintstones.application.menu.file.handledmenuitem.save.label = Guardar
flintstones.application.menu.file.handledmenuitem.saveas.label = Guardar como...
flintstones.application.menu.file.handledmenuitem.saveandclose.label = Guardar y salir
flintstones.application.menu.file.handledmenuitem.exit.label = Salir
flintstones.application.menu.edit.label = Editar
flintstones.application.menu.edit.handledmenuitem.undo.label = Deshacer
flintstones.application.menu.edit.handledmenuitem.redo.label = Rehacer
flintstones.application.menu.edit.handledmenuitem.preferences.label = Preferencias
flintstones.application.toolbar.file.handledtoolitem.new.label = Nuevo
flintstones.application.toolbar.file.handledtoolitem.new.tooltip = Nuevo
flintstones.application.toolbar.file.handledtoolitem.open.label = Abrir
flintstones.application.toolbar.file.handledtoolitem.open.tooltip = Abrir
flintstones.application.toolbar.file.handledtoolitem.save.label= Guardar
flintstones.application.toolbar.file.handledtoolitem.save.tooltip = Guardar
flintstones.application.toolbar.file.handledtoolitem.saveandclose.label = Guardar y salir
flintstones.application.toolbar.file.handledtoolitem.saveandclose.tooltip = Guardar y salir
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework.label = Framework
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.framework.tooltip = Framework
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.frameworkstructuring.label = Framework Structuring
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.frameworkstructuring.tooltip = Framework Structuring
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.gathering.label = Gathering
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.gathering.tooltip = Gathering
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating.label = Rating
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.rating.tooltip = Rating
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.sensitiveanalysis.label = Sensitive Analysis
flintstones.application.toolbar.perspectiveswitcher.handledtoolitem.sensitiveanalysis.tooltip = Sensitive Analysis
flintstones.application.command.perspectiveswitcher.name = Perspective switcher
flintstones.application.command.new.name = New
flintstones.application.command.open.name = Open
flintstones.application.command.save.name = Save
flintstones.application.command.saveas.name = Save as
flintstones.application.command.saveandclose.name = Save and close
flintstones.application.command.exit.name = Exit
flintstones.application.command.undo.name = Undo
flintstones.application.command.redo.name = Redo
flintstones.application.command.preferences.name = Preferences
flintstones.application.menu.locale.label=Idioma
flintstones.application.menu.locale.es.label=Espaol
flintstones.application.menu.locale.en.label=Ingls
@@ -0,0 +1,9 @@
output.. = bin/
bin.includes = META-INF/,\
.,\
Application.e4xmi,\
OSGI-INF/,\
plugin.xml,\
build.txt,\
version
source.. = src/
@@ -0,0 +1 @@
5892025ce
@@ -0,0 +1,20 @@
.MPartStack
{
swt-maximize-visible: false;
swt-minimize-visible: false;
}
/*
.MPartStack > CTabItem:selected
{
background-color: #FFFFFF;
}
.MPartStack.active > CTabItem:selected
{
background-color: #ffffff #2f83df 50% 100%;
}
.MPartStack.active.noFocus > CTabItem:selected
{
background-color: #FFFFFF;
}*/
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<?eclipse version="3.4"?>
<plugin>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="org.eclipse.e4.ui.workbench.swt.E4Application"
name="flinstones">
<property
name="appName"
value="flinstones">
</property>
<property
name="cssTheme"
value="flintstones.theme.default">
</property>
</product>
</extension>
</plugin>
@@ -0,0 +1,16 @@
package flintstones.applicaiton.toolcontrols;
import javax.annotation.PostConstruct;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
public class ArrowSeparatorToolControl {
@PostConstruct
public void createControls(Composite parent) {
Label l = new Label(parent,0);
l.setText(" > ");
}
}
@@ -0,0 +1,83 @@
package flintstones.applicaiton.toolcontrols;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.e4.ui.di.UIEventTopic;
import org.eclipse.e4.ui.model.application.ui.menu.MToolControl;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Composite;
import flintstones.application.handlers.PerspectiveSwitcher;
import flintstones.helper.ui.components.ActionButton;
import flintstones.model.ui.service.UiService;
public class MenuItemToolControl {
@Inject
MToolControl toolControl;
@Inject
IEclipseContext context;
@Inject
IEventBroker broker;
private static final String ID = "TOPIC_WINDOW_TRIMBAR";
String currentPerspective = "";
ActionButton button;
@PostConstruct
public void createControls(Composite parent) {
UiService.setGridLayout(parent, 5,true);
UiService.setGridDataAuto(parent);
Map<String, String> state = toolControl.getPersistedState();
String label = state.get("position") + ". " + state.get("label");
currentPerspective = state.get("perspective");
button = new ActionButton(parent,SWT.TOGGLE, 16);
UiService.setGridData(button.getButton(), 9, 9, true, true);
button.setText(label);
button.setSelection(true);
if(state.get("position").equals("1"))
button.setSelection(true);
else
button.setSelection(false);
button.getButton().addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
ContextInjectionFactory.make(PerspectiveSwitcher.class, context).changePerspective(currentPerspective);
broker.post(ID, currentPerspective);
}
});
}
@SuppressWarnings("unused")
@Inject
@Optional
private void subscribe(@UIEventTopic(ID) String perspective) {
if(perspective.equals(currentPerspective))
button.setSelection(true);
else
button.setSelection(false);
}
}
@@ -0,0 +1,82 @@
package flintstones.applicaiton.toolcontrols;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.e4.ui.model.application.ui.menu.MToolControl;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.widgets.Composite;
import org.lorissecuro.ui.CustomButton;
import flintstones.application.debug.handler.ChangeProblemTypeHandler;
import flintstones.application.handlers.PerspectiveSwitcher;
import flintstones.application.model.IApplicationService;
import flintstones.model.ui.service.UiService;
public class RankingToolControl {
@Inject
MToolControl toolControl;
@Inject
IEclipseContext context;
@Inject
IEventBroker broker;
@Inject
IApplicationService appService;
private static final String ID = "TOPIC_WINDOW_TRIMBAR";
CustomButton cb;
@PostConstruct
public void createControls(Composite parent) {
cb = new CustomButton(parent, 0);
cb.setText(appService.getProblemType().toString());
cb.setBackground(UiService.COLOR_SECONDARY);
cb.setForeground(UiService.COLOR_SECONDARY_FG);
cb.setBackgroundSelected(UiService.COLOR_SECONDARY);
cb.setForegroundSelected(UiService.COLOR_SECONDARY_FG);
cb.setBackgroundHover(UiService.COLOR_SECONDARY_HOVER);
cb.setForegroundHover(UiService.COLOR_SECONDARY_FG);
cb.setBackgroundPressed(UiService.COLOR_SECONDARY);
cb.setForegroundPressed(UiService.COLOR_SECONDARY_FG);
cb.setBorderWidth(0);
cb.setBorder2Width(0);
cb.setColorTransition(false);
UiService.setFont(cb, UiService.FONT_BUTTON);
UiService.setFontSize(cb, 16);
UiService.setGridData(cb, 9, 9, true, true);
cb.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
ContextInjectionFactory.make(PerspectiveSwitcher.class, context).changePerspective("flintstones.application.perspective.framework");
broker.post(ID, "flintstones.application.perspective.framework");
ContextInjectionFactory.make(ChangeProblemTypeHandler.class, context).execute();
cb.setText(appService.getProblemType().toString());
}
});
}
}
@@ -0,0 +1,146 @@
package flintstones.application;
import java.util.HashMap;
import javax.inject.Inject;
import org.eclipse.nebula.widgets.opal.notifier.WNotifier;
import flintstones.helper.data.HashMatrix;
import flintstones.model.domain.service.IDomainService;
import flintstones.model.problemelement.service.IProblemElementService;
import flintstones.model.valuation.service.IValuationService;
public class PerspectiveManager {
@Inject
IDomainService domainService;
@Inject
IProblemElementService problemService;
@Inject
IValuationService valuationService;
private HashMatrix<String, String, Boolean> blockedPerspectiveType = new HashMatrix<>();
private HashMap<String, Integer> blockedPerspectiveDomainNumber = new HashMap<>();
private HashMatrix<String, String, Integer> blockedPerspectiveProblemElementNumber = new HashMatrix<>();
private HashMatrix<String, String, Boolean> blockedNotEvaluated = new HashMatrix<>();
public PerspectiveManager() {
}
public void blockDomain(String perspective, String domainType) {
blockedPerspectiveType.put(getPerspectiveName(perspective), getDomainType(domainType), false);
}
public void blockDomainNumber(String perspective, int domainNumber) {
blockedPerspectiveDomainNumber.put(getPerspectiveName(perspective), domainNumber);
}
public void blockProblemElementNumber(String perspective, String type, int minNumber) {
blockedPerspectiveProblemElementNumber.put(getPerspectiveName(perspective), type, minNumber);
}
public void blockNotFullyEvaluated(String perspective, String domainType) {
blockedNotEvaluated.put(getPerspectiveName(perspective), getDomainType(domainType), true);
}
public String process(String perspective) {
int domainNumber = domainService.getAll().length;
if (domainNumber == 0) {
if(perspective.equals("flintstones.application.perspective.framework")) {
return getPerspectiveName("framework");
} else {
new WNotifier("No disponible", "Debes crear un dominio para continuar")
.send();
return "";
}
}
if(!requiredDomain(perspective))
return "";
//
// if (!requiredPE(perspective, Alternative.Type))
// return "";
//
// if (!requiredPE(perspective, Expert.Type))
// return "";
//
// if (!requiredPE(perspective, Criterion.Type))
// return "";
if(perspective.equals("flintstones.application.perspective.gathering") && !valuationService.isAssignmentFilled()) {
new WNotifier("No disponible", "Debes finalizar la asignación de dominios").send();
return "";
}
if(!fullyEvaluated(perspective))
return "";
return perspective;
}
private boolean fullyEvaluated(String perspective) {
if(blockedNotEvaluated.get(getPerspectiveName(perspective), getDomainType()) != null) {
if(!valuationService.isEvaluationFilled()) {
new WNotifier("No disponible","La fase " + perspective + " no está disponible antes \n de añadir todas las evaluaciones en gathering ")
.send();
return false;
}
}
return true;
}
private boolean requiredDomain(String perspective) {
String domainType = getDomainType();
Boolean perspectiveAvaliable = blockedPerspectiveType.get(perspective, domainType);
if(perspectiveAvaliable == null)
return true;
new WNotifier("No disponible","La fase " + perspective + " no está disponible para el dominio " + domainType)
.send();
return false;
}
private String getDomainType() {
return domainService.getAll()[0].getType();
}
private String getPerspectiveName(String perspective) {
if (!perspective.contains(".")) {
perspective = "flintstones.application.perspective." + perspective;
}
return perspective;
}
private String getDomainType(String type) {
if (!type.contains(".")) {
type = "flintstones.domain." + type;
}
return type;
}
// private boolean requiredPE(String perspective, String type) {
//
// if (blockedPerspectiveProblemElementNumber.get(perspective, type) == null)
// return true;
//
// int number = blockedPerspectiveProblemElementNumber.get(perspective, type);
//
// if (problemService.getAll(type).length < number) {
// Notifier.notify("No disponible", "La fase " + perspective + " requiere minimo " + number + " " + type);
// return false;
// }
//
// return true;
// }
}
@@ -0,0 +1,56 @@
package flintstones.application.addons;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.eclipse.core.runtime.Platform;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import flintstones.helper.data.io.FlintstonesIO;
import flintstones.helper.debug.DH;
/**
* The Class LoadFileAddon.
*
* @author UJA
*/
@SuppressWarnings("nls")
public class LoadFileAddon {
/** The context. */
@Inject
IEclipseContext context;
/**
* Instantiates a new load file addon.
*/
public LoadFileAddon() {
}
/**
* Inits the loader.
*/
@PostConstruct
public void init() {
int pos = -1;
String[] args = Platform.getCommandLineArgs();
for (int i = 0; i < args.length; i++)
if (args[i].equals("-loadFile")) {
pos = i;
continue;
}
if (pos == -1)
return;
String filePath = args[pos + 1];
DH.out("I/O","!INFO Cargando el fichero " + filePath + " ya que la flag -loadFile esta presente");
FlintstonesIO fio = ContextInjectionFactory.make(FlintstonesIO.class, this.context);
fio.load(filePath);
}
}
@@ -0,0 +1,43 @@
package flintstones.application.addons;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.ui.model.application.MApplication;
import flintstones.application.model.IApplicationService;
import flintstones.application.model.service.ApplicationServiceProvider;
/**
* The Class LoadServicesAddon.
*/
public class LoadServicesAddon {
/** The context. */
@Inject
IEclipseContext context;
/**
* Instantiates a new load services addon.
*/
public LoadServicesAddon() {
}
/**
* Inits the addon.
*/
@PostConstruct
private void init() {
// Pre
MApplication application = this.context.get(MApplication.class);
IEclipseContext applicationContext = application.getContext();
// Services
IApplicationService appService = ContextInjectionFactory.make(ApplicationServiceProvider.class, this.context);
applicationContext.set(IApplicationService.class, appService);
}
}
@@ -0,0 +1,40 @@
package flintstones.application.addons;
import java.util.Locale;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.services.nls.ILocaleChangeService;
import org.eclipse.e4.core.services.nls.Translation;
import org.eclipse.e4.ui.di.UIEventTopic;
@SuppressWarnings({ "nls", "javadoc" })
public class Pruebas {
@Inject
@Translation
private flintstones.entity.domain.messages.Messages domainMessages;
public int X = 0;
@PostConstruct
private void init() {
}
public Pruebas() {
}
public void setX(int x) {
this.X = x;
}
@Inject
@Optional
private void getNotified(@UIEventTopic(ILocaleChangeService.LOCALE_CHANGE) Locale s) {
System.out.println(s + " " + this.X);
System.out.println(this.domainMessages.Domain_entity);
}
}
@@ -0,0 +1,64 @@
package flintstones.application.addons;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import javax.annotation.PostConstruct;
import org.eclipse.core.runtime.Platform;
import flintstones.helper.debug.DH;
public class RedirectErrorsAddon {
@PostConstruct
private void init() throws IOException {
// https://stackoverflow.com/questions/1308755/launch-an-app-on-os-x-with-command-line
String[] args = Platform.getCommandLineArgs();
if (Arrays.asList(args)
.stream()
.anyMatch(flag -> flag.equals("-redirectErrors"))) {
redirectErrors();
}
}
private void redirectErrors() throws IOException, FileNotFoundException {
String folder = System.getProperty("user.home") + File.separator + "Flintstones" + File.separator + "logs";
Date date = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss"); //$NON-NLS-1$
String dateS = dateFormat.format(date);
String template = "log-{0}"; //$NON-NLS-1$
String file = MessageFormat.format(template, dateS);
String fullPath = folder + File.separator + file;
String outPath = fullPath+".out.log";
String errPath = fullPath+".err.log";
File f1 = new File(outPath);
File f2 = new File(errPath);
f1.getParentFile().mkdirs();
f2.getParentFile().mkdirs();
f1.createNewFile();
f2.createNewFile();
System.setOut(new PrintStream(new FileOutputStream(outPath)));
System.setErr(new PrintStream(new FileOutputStream(errPath)));
DH.out("This is test output");
}
}
@@ -0,0 +1,41 @@
package flintstones.application.handlers;
import java.util.HashMap;
import javax.inject.Inject;
import org.eclipse.core.commands.ParameterizedCommand;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.services.nls.ILocaleChangeService;
import flintstones.application.model.IApplicationService;
import flintstones.helper.debug.DH;
/**
* @author UJA
* Changes the current locale
*/
public class LocaleHandler {
@Inject
ILocaleChangeService lcs;
@Inject
IApplicationService appService;
/**
* @param command The command that launch the handler
*/
@Execute
@SuppressWarnings("unchecked")
public void execute(@Optional ParameterizedCommand command) {
HashMap<String, String> map = (HashMap<String, String>) command.getParameterMap();
String id = map.get("flintstones.application.commandparameter.localeId");
String locale = id.substring(id.lastIndexOf('.') + 1); // flintstones.xxxx.xxxx.xxxx.es / .en / .{locale}
DH.out("locale","Cambiando locale a " + locale);
this.lcs.changeApplicationLocale(locale);
appService.setCurrentLocale(locale);
}
}
@@ -0,0 +1,95 @@
package flintstones.application.handlers;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Named;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.e4.ui.di.UIEventTopic;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.advanced.MPerspective;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import flintstones.application.constants.FrameworkConstants;
import flintstones.helper.debug.DH;
import flintstones.model.domain.service.IDomainService;
import flintstones.model.problemelement.service.IProblemElementService;
import flintstones.model.valuation.service.IValuationService;
public class PerspectiveSwitcher {
@Inject
MApplication app;
@Inject
EPartService partService;
@Inject
EModelService modelService;
@Inject
MApplication application;
@Inject
IProblemElementService problemService;
@Inject
IDomainService domainService;
@Inject
IValuationService valuationService;
@Inject
IEclipseContext context;
@Inject
IEventBroker broker;
@Execute
public void execute(@Named("perspective_parameter") String perspectiveId) {
perspectiveId = patch(perspectiveId);
changePerspective(perspectiveId);
broker.post("TOPIC_WINDOW_TRIMBAR",perspectiveId);
}
private String patch(String perspectiveId) {
return perspectiveId;
// PerspectiveManager manager = ContextInjectionFactory.make(PerspectiveManager.class, context);
//
// return manager.process(perspectiveId);
//
}
public void changePerspective(String perspectiveId) {
DH.out("router",perspectiveId);
List<MPerspective> perspectives = modelService.findElements(app, perspectiveId, MPerspective.class, null);
// switch to perspective with the ID if found
if (!perspectives.isEmpty())
try {
partService.switchPerspective(perspectives.get(0));
} catch(Exception e) {}
}
/**
* Subscribe.
*
* @param event the event
*/
@Inject
@Optional
private void subscribe(@UIEventTopic(FrameworkConstants.TOPIC_PERSPECTIVE_CHANGE) String perspectiveId ) {
if( perspectiveId != null )
changePerspective(perspectiveId);
}
}
@@ -0,0 +1,10 @@
package flintstones.application.handlers;
import org.eclipse.e4.core.di.annotations.Execute;
public class PreferencesHandler {
@Execute
public void execute() {
System.out.println(""); //$NON-NLS-1$
}
}
@@ -0,0 +1,121 @@
package flintstones.application.handlers;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.eclipse.core.commands.ParameterizedCommand;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.e4.ui.di.UIEventTopic;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.commands.MCommand;
import org.eclipse.e4.ui.model.application.commands.MParameter;
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem;
import org.eclipse.e4.ui.model.application.ui.menu.MMenu;
import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
import flintstones.application.constants.ApplicationContants;
import flintstones.application.constants.FrameworkConstants;
import flintstones.entity.method.Method;
import flintstones.model.method.service.IMethodService;
public class SelectMethodHandler {
@Inject
MApplication application;
@Inject
EModelService modelService;
@Inject
MApplication app;
@Inject
IMethodService methodService;
@Inject
IEclipseContext context;
@Inject
IEventBroker broker;
MMenu menu;
private static final String REFRESH_SUB_ID = FrameworkConstants.TOPIC_FRAMEWORK_ALLTOPICS;
@PostConstruct
private void postConstruct() {
buildMenu();
}
@Execute
public void execute(@Optional ParameterizedCommand command) {
@SuppressWarnings("unchecked")
HashMap<String, String> map = (HashMap<String, String>) command.getParameterMap();
String methodID = map.get(ApplicationContants.MParameter_Rating_Selectmethod);
// 1.Change to the phase, it loads empty
ContextInjectionFactory.make(PerspectiveSwitcher.class, context).changePerspective(ApplicationContants.MPerspective_Phase);
// 2.Send the method
broker.post(FrameworkConstants.TOPIC_METHOD_LOAD, Arrays.stream(methodService.getAll()).filter(k -> k.getId().equals(methodID)).findFirst().get());
}
private void buildMenu() {
Method[] methods = methodService.getAll();
String commandId = ApplicationContants.MCommand_Rating_Selectmethod;
String menuId = ApplicationContants.MMenu_Rating;
String windowId = ApplicationContants.MWindow_Main;
MWindow window = (MWindow) this.modelService.find(windowId, this.application);
MCommand command = modelService.findElements(app, commandId, MCommand.class, null).get(0);
MMenu mainMenu = window.getMainMenu();
menu = (MMenu) mainMenu.getChildren().stream().filter(k -> k.getElementId().equals(menuId)).findFirst().get();
for (Method method : methods) {
MHandledMenuItem menuItem = modelService.createModelElement(MHandledMenuItem.class);
MParameter parameter = modelService.createModelElement(MParameter.class);
menuItem.setLabel(method.getName());
menuItem.setCommand(command);
if (!method.canBeExecuted())
menuItem.setVisible(false);
parameter.setName(ApplicationContants.MParameter_Rating_Selectmethod);
parameter.setValue(method.getId());
menuItem.getParameters().add(parameter);
menu.getChildren().add(menuItem);
}
}
@SuppressWarnings("unused")
@Inject
@Optional
private void subscribeClear(@UIEventTopic(REFRESH_SUB_ID) Map<String, String> event) {
Method[] methods = methodService.getAll();
for (MMenuElement menuItem : menu.getChildren()) {
String label = menuItem.getLabel();
Method method = Arrays.stream(methods).filter(k -> k.getName().equals(label)).findFirst().get();
boolean canBeExecuted = method.canBeExecuted();
menuItem.setVisible(canBeExecuted);
}
}
}
+2
View File
@@ -0,0 +1,2 @@
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200