Commit 3934a20c authored by Hernan Ponce de Leon's avatar Hernan Ponce de Leon
Browse files

[YELLOW] Code review. Removed unused af3 files

parent 84fa050a
ApplicationCommandHandler.java 2e3c9141e07f9aa1b969250aba40746832c0b0e5 YELLOW
ApplicationCommandHandler.java 114c9f2b3667b7fdc0f94bc52a924cec77c031b6 YELLOW
......@@ -22,9 +22,11 @@ import static org.eclipse.jface.dialogs.ErrorDialog.openError;
import static org.eclipse.jface.dialogs.MessageDialog.openError;
import static org.eclipse.jface.dialogs.MessageDialog.openWarning;
import static org.eclipse.ui.PlatformUI.getWorkbench;
import static org.eclipse.ui.internal.about.AboutUtils.openErrorLogBrowser;
import static org.fortiss.af3.project.storage.LocationProvider.CURRENT_AF3_PROJECT_FILES_EXTENSION;
import static org.fortiss.af3.project.ui.utils.ExportProjectUtils.exportProject;
import static org.fortiss.af3.project.ui.utils.ExportProjectUtils.fileSelectionDialog;
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.importFileCopy;
import static org.fortiss.af3.project.ui.utils.NewProjectUtils.createNewGeneralProject;
......@@ -56,7 +58,6 @@ 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.ExportProjectUtils;
import org.fortiss.af3.project.ui.utils.FileNameValidatorUtil;
import org.fortiss.af3.rcp.application.AF3ApplicationActivator;
import org.fortiss.af3.rcp.application.example.SimpleTrafficLightsCodeGenerationExample;
......@@ -238,7 +239,8 @@ public class ApplicationCommandHandler {
@Override
public Object execute(ExecutionEvent event) {
loadExistingModel(AF3ApplicationActivator.PLUGIN_ID,
"test-data/SimpleTrafficLightsExample.af3_23", "SimpleTrafficLightsExample");
"test-data/SimpleTrafficLightsExampleNoUseCase.af3_23",
"SimpleTrafficLightsExample");
return null;
}
}
......@@ -497,7 +499,7 @@ public class ApplicationCommandHandler {
*/
@Override
public Object execute(ExecutionEvent event) {
FileProject selectedProject = ExportProjectUtils.getSelectedFileProject();
FileProject selectedProject = getSelectedFileProject();
if(selectedProject != null) {
// Open file selection dialog to select the target file
......@@ -523,7 +525,7 @@ public class ApplicationCommandHandler {
/** Opens the error log. */
@Override
public Object execute(ExecutionEvent event) {
openError(Display.getCurrent().getActiveShell(), "Errors", null);
openErrorLogBrowser(Display.getCurrent().getActiveShell());
return null;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment