From 93b5df4f2a2bd6e412133b9d96b89af7484871a3 Mon Sep 17 00:00:00 2001 From: Simon Barner Date: Fri, 19 Nov 2021 08:55:37 +0100 Subject: [PATCH 1/4] Remove menu entry for deprecated library implementation Issue-Ref: 3946 Issue-Url: https://git.fortiss.org/af3/af3/-/issues/3946 Signed-off-by: Simon Barner --- org.fortiss.af3.rcp.application/plugin.xml | 6 ------ .../org/fortiss/af3/rcp/application/.ratings | 2 +- .../application/NewProjectContextMenu.java | 11 ++++------ .../af3/rcp/application/advisors/.ratings | 2 +- .../advisors/ApplicationActionBarAdvisor.java | 21 ------------------- 5 files changed, 6 insertions(+), 36 deletions(-) diff --git a/org.fortiss.af3.rcp.application/plugin.xml b/org.fortiss.af3.rcp.application/plugin.xml index 87c2aaf..7747f46 100644 --- a/org.fortiss.af3.rcp.application/plugin.xml +++ b/org.fortiss.af3.rcp.application/plugin.xml @@ -190,12 +190,6 @@ id="org.fortiss.af3.rcp.application.loadOperatorPanelExample" name="LoadOperatorPanelExample"> - - contributionItems = new ArrayList(); - contributionItems.add(new ActionContributionItem(getNewAF3ProjectAction())); - contributionItems.add(new ActionContributionItem(getNewAF3LibraryAction())); - return contributionItems; + singletonList((new ActionContributionItem(getNewAF3ProjectAction()))); } return null; } diff --git a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/.ratings b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/.ratings index 175e142..f567ab1 100644 --- a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/.ratings +++ b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/.ratings @@ -1,3 +1,3 @@ -ApplicationActionBarAdvisor.java 881198ff05ab14110efef1673f0914725348442b GREEN +ApplicationActionBarAdvisor.java 7346ff02f98249d473d19a653a1d2a3fdc0cf334 YELLOW ApplicationWorkbenchAdvisor.java 19af4bc3262680a283eccccf92c4e2ae4463fa71 GREEN ApplicationWorkbenchWindowAdvisor.java da5cb38300b384579532c678fbc9faa961c2ca6b GREEN diff --git a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/ApplicationActionBarAdvisor.java b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/ApplicationActionBarAdvisor.java index 881198f..7346ff0 100644 --- a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/ApplicationActionBarAdvisor.java +++ b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/advisors/ApplicationActionBarAdvisor.java @@ -104,9 +104,6 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor { /** AF3-Specific Action to crate a new empty project. */ private static WorkbenchCommandAction newAF3ProjectAction; - /** AF3-Specific Action to crate a new empty library. */ - private static WorkbenchCommandAction newAF3LibraryAction; - /** Open the "goBack" view. */ private static IWorkbenchAction goBack; @@ -210,7 +207,6 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor { register(deleteAction); registerCreateNewProject(window); - registerCreateNewLibrary(window); registerLoadSimpleTrafficLightsExample(window); registerLoadSimpleTrafficLightsModesExample(window); registerLoadSimpleTrafficLightsCodeGenerationExample(window); @@ -336,16 +332,6 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor { null, window); } - /** - * Registers the "New AF3 Library" action and attaches it to the corresponding button. - */ - private void registerCreateNewLibrary(IWorkbenchWindow window) { - newAF3LibraryAction = createAndRegisterWorkBenchCommandAction("New AF3 Library", - "org.fortiss.af3.rcp.application.newaf3library", getPluginImageDescriptor( - "org.fortiss.af3.rcp.application", "icons/new_library.png"), - null, window); - } - /** * Registers the "Load Simple Traffic Lights Example" action and attaches it to the * corresponding button. @@ -530,7 +516,6 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor { ToolBarManager toolBarManager = new ToolBarManager(); coolBar.add(toolBarManager); toolBarManager.add(newAF3ProjectAction); - toolBarManager.add(newAF3LibraryAction); toolBarManager.add(new Separator()); toolBarManager.add(saveAction); toolBarManager.add(new Separator()); @@ -547,7 +532,6 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor { IWorkbenchActionConstants.M_FILE); menuBar.add(fileMenu); fileMenu.add(newAF3ProjectAction); - fileMenu.add(newAF3LibraryAction); MenuManager openAF3ExampleMenuManager = new MenuManager("Open AF3 Example"); fileMenu.add(openAF3ExampleMenuManager); @@ -602,11 +586,6 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor { helpMenu.add(showModelStorageErrorDialogAction); } - /** Returns defined action to create new AF3 Library. */ - public static WorkbenchCommandAction getNewAF3LibraryAction() { - return newAF3LibraryAction; - } - /** Returns defined action to create new AF3 Project. */ public static WorkbenchCommandAction getNewAF3ProjectAction() { return newAF3ProjectAction; -- GitLab From 73d1903f452d41276db867279ba2bd09ef8a754e Mon Sep 17 00:00:00 2001 From: Simon Barner Date: Mon, 21 Feb 2022 19:57:27 +0100 Subject: [PATCH 2/4] Remove library view Issue-Ref: 4161 Issue-Url: https://git.fortiss.org/af3/af3/-/issues/4161 Signed-off-by: Simon Barner --- .../af3/rcp/application/handler/.ratings | 2 +- .../handler/ApplicationCommandHandler.java | 46 ------------------- 2 files changed, 1 insertion(+), 47 deletions(-) diff --git a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/.ratings b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/.ratings index 51df362..dae6b01 100644 --- a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/.ratings +++ b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/.ratings @@ -1 +1 @@ -ApplicationCommandHandler.java 3225d9f72590fcea939b14cae05467cbace1f438 GREEN +ApplicationCommandHandler.java b875be2e477ee14f4b60f6dddbafc984968c9ce3 YELLOW diff --git a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/ApplicationCommandHandler.java b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/ApplicationCommandHandler.java index 3225d9f..b875be2 100644 --- a/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/ApplicationCommandHandler.java +++ b/org.fortiss.af3.rcp.application/src/org/fortiss/af3/rcp/application/handler/ApplicationCommandHandler.java @@ -17,11 +17,9 @@ package org.fortiss.af3.rcp.application.handler; import static org.conqat.ide.commons.ui.logging.LoggingUtils.logAndShowError; -import static org.conqat.ide.commons.ui.ui.WorkbenchUtils.getActiveWorkbenchWindow; import static org.eclipse.emf.common.util.URI.createFileURI; import static org.eclipse.emf.common.util.URI.createPlatformPluginURI; import static org.eclipse.jface.dialogs.ErrorDialog.openError; -import static org.eclipse.jface.dialogs.MessageDialog.openError; import static org.eclipse.ui.PlatformUI.getWorkbench; import static org.eclipse.ui.internal.about.AboutUtils.openErrorLogBrowser; import static org.fortiss.af3.project.AF3Project.AF3_PRJ_SUFFIX; @@ -30,7 +28,6 @@ import static org.fortiss.af3.project.ui.utils.ExportProjectUtils.fileSelectionD import static org.fortiss.af3.project.ui.utils.ExportProjectUtils.getSelectedFileProject; import static org.fortiss.af3.project.ui.utils.ImportProjectUtils.fileSelectionDialog; import static org.fortiss.af3.project.ui.utils.ImportProjectUtils.importUISelectedFile; -import static org.fortiss.af3.project.utils.LibraryModelElementFactory.createFileLibrary; import static org.fortiss.af3.rcp.application.utils.ApplicationUtils.switchToAF3Perspective; import static org.fortiss.tooling.kernel.utils.EMFResourceUtils.refreshWorkspace; import static org.fortiss.tooling.kernel.utils.EcoreUtils.copy; @@ -38,30 +35,23 @@ import static org.fortiss.tooling.kernel.utils.EcoreUtils.copy; import java.io.File; import java.util.List; -import org.conqat.ide.commons.ui.ui.WorkbenchUtils; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.Status; import org.eclipse.emf.common.util.URI; -import org.eclipse.jface.dialogs.InputDialog; -import org.eclipse.jface.window.Window; import org.eclipse.swt.widgets.Display; import org.fortiss.af3.expression.examples.ConfiguredExpressionExample; import org.fortiss.af3.mode.AF3ModeActivator; import org.fortiss.af3.mode.ui.examples.SimpleTrafficLightsModesExample; import org.fortiss.af3.project.example.IExample; -import org.fortiss.af3.project.model.FileLibrary; import org.fortiss.af3.project.model.FileProject; -import org.fortiss.af3.project.ui.utils.FileNameValidatorUtil; -import org.fortiss.af3.project.utils.ProjectUtils; import org.fortiss.af3.rcp.application.AF3ApplicationActivator; import org.fortiss.af3.rcp.application.example.SimpleTrafficLightsCodeGenerationExample; import org.fortiss.af3.rcp.application.utils.ApplicationUtils; import org.fortiss.tooling.kernel.extension.data.ModelStorageError; import org.fortiss.tooling.kernel.service.IPersistencyService; -import org.fortiss.tooling.kernel.ui.internal.views.library.LibraryViewPart; /** * The ApplicationCommandHandler has several nested classes, each for handling a @@ -131,42 +121,6 @@ public class ApplicationCommandHandler { } } - /** Handles the command action to create a new AF3 library. */ - public static final class NewAF3LibraryCommandHandler extends AbstractHandler { - - /** - * Execute definition that creates a new AF3 library and, if required, a - * new general library directory. - */ - @Override - public Object execute(ExecutionEvent event) { - // Create a new AF3 library. - try { - InputDialog dlg = new InputDialog(Display.getCurrent().getActiveShell(), "", - "Please enter a library name", "AF3-Library", new FileNameValidatorUtil()); - - if(dlg.open() != Window.OK) { - return null; - } - - FileLibrary library = createFileLibrary(dlg.getValue()); - - // If a file with this name already exists. - if(!ProjectUtils.saveFileLibrary(library)) { - openError(getActiveWorkbenchWindow().getShell(), - "Error While Saving the Library", - "A library with name " + dlg.getValue() + " already exists"); - } - WorkbenchUtils.getActiveWorkbenchPage().showView(LibraryViewPart.ID); - } catch(Exception e) { - openError(getActiveWorkbenchWindow().getShell(), "Error", e.getMessage()); - return false; - } - - return null; - } - } - /** Handles the command action to create the standard SimpleTrafficLightsExample project. */ public static final class LoadSimpleTrafficLightsExampleCommandHandler extends AbstractHandler { -- GitLab From 1b19789cec8910f0ef66f6316e0e5a76864f7dbc Mon Sep 17 00:00:00 2001 From: Sebastian Bergemann Date: Fri, 25 Feb 2022 16:22:16 +0100 Subject: [PATCH 3/4] GREEN (small fix + unused image removed) Issue-Ref: 3946 Issue-Url: https://git.fortiss.org/af3/af3/-/issues/3946 Signed-off-by: Sebastian Bergemann --- .../icons/new_library.png | Bin 3464 -> 0 bytes .../src/org/fortiss/af3/rcp/application/.ratings | 2 +- .../rcp/application/NewProjectContextMenu.java | 2 +- .../af3/rcp/application/advisors/.ratings | 2 +- .../fortiss/af3/rcp/application/handler/.ratings | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 org.fortiss.af3.rcp.application/icons/new_library.png diff --git a/org.fortiss.af3.rcp.application/icons/new_library.png b/org.fortiss.af3.rcp.application/icons/new_library.png deleted file mode 100644 index 22ae13466d6922452caf6eb9d5ca3db58aa8e2ae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3464 zcmV;34R`X1P)Oz@Z0f2-7z;ux~O9+4z06=<WDR*FRcSTFz- zW=q650N5=6FiBTtNC2?60Km==3$g$R3;-}uh=nNt1bYBr$Ri_o0EC$U6h`t_Jn<{8 z5a%iY0C<_QJh>z}MS)ugEpZ1|S1ukX&Pf+56gFW3VVXcL!g-k)GJ!M?;PcD?0HBc- z5#WRK{dmp}uFlRjj{U%*%WZ25jX z{P*?XzTzZ-GF^d31o+^>%=Ap99M6&ogks$0k4OBs3;+Bb(;~!4V!2o<6ys46agIcq zjPo+3B8fthDa9qy|77CdEc*jK-!%ZRYCZvbku9iQV*~a}ClFY4z~c7+0P?$U!PF=S z1Au6Q;m>#f??3%Vpd|o+W=WE9003S@Bra6Svp>fO002awfhw>;8}z{#EWidF!3EsG z3;bXU&9EIRU@z1_9W=mEXoiz;4lcq~xDGvV5BgyU zp1~-*fe8db$Osc*A=-!mVv1NJjtCc-h4>-CNCXm#Bp}I%6j35eku^v$Qi@a{RY)E3 zJ#qp$hg?Rwkvqr$GJ^buyhkyVfwECO)C{#lxu`c9ghrwZ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url: https://af3-developer.fortiss.org/issues/3946 Signed-off-by: Simon Barner --- org.fortiss.af3.rcp.application/intro/newFeatures.html | 1 - .../intro/newFeatures_af3_fortissPage.html | 1 - 2 files changed, 2 deletions(-) diff --git a/org.fortiss.af3.rcp.application/intro/newFeatures.html b/org.fortiss.af3.rcp.application/intro/newFeatures.html index f6486eb..566fbd0 100644 --- a/org.fortiss.af3.rcp.application/intro/newFeatures.html +++ b/org.fortiss.af3.rcp.application/intro/newFeatures.html @@ -60,7 +60,6 @@
  • MIRA: Status cells are also editable where they should not (#4133)
  • [DSE] Enable import of partition architectures (#4127)
  • Implement a JFX controller for the creation and visualization of reference lists (#4092)
  • -
  • LibraryView to JavaFX (#4019)
  • Introduce Zoom control (#3843)
  • Fix: icons in requirement editor do not vanish correctly when collapsing row items (#4166)
  • [Allocation] Exclude parameter tables when traversing allocation tables (#4158)
  • diff --git a/org.fortiss.af3.rcp.application/intro/newFeatures_af3_fortissPage.html b/org.fortiss.af3.rcp.application/intro/newFeatures_af3_fortissPage.html index a4405b2..511909b 100644 --- a/org.fortiss.af3.rcp.application/intro/newFeatures_af3_fortissPage.html +++ b/org.fortiss.af3.rcp.application/intro/newFeatures_af3_fortissPage.html @@ -106,7 +106,6 @@
  • MIRA: Status cells are also editable where they should not (#4133)
  • [DSE] Enable import of partition architectures (#4127)
  • Implement a JFX controller for the creation and visualization of reference lists (#4092) -
  • LibraryView to JavaFX (#4019)
  • Introduce Zoom control (#3843)
  • Fix: icons in requirement editor do not vanish correctly when collapsing row items (#4147)
  • [Allocation] Exclude parameter tables when traversing allocation tables (#4158) -- GitLab