From 18985b5a2607770788dc6e0bd0a687ca2fdf7a1c Mon Sep 17 00:00:00 2001 From: ipa-nhg Date: Tue, 21 Nov 2023 11:02:30 +0100 Subject: [PATCH] Clean eclipse wizards --- .../de.fraunhofer.ipa.ros.editor/plugin.xml | 8 +- .../ros/presentation/RosArtifactWizard.java | 178 +++++------------- .../build.properties | 3 +- .../.settings/org.eclipse.jdt.core.prefs | 13 +- .../src/ros/impl/AmentPackageImpl.java | 2 +- .../build.properties | 1 - .../.launch/Launch Runtime Eclipse.launch | 1 - .../build.properties | 1 - .../plugin.xml | 4 +- .../build.properties | 1 - 10 files changed, 68 insertions(+), 144 deletions(-) diff --git a/plugins/de.fraunhofer.ipa.ros.editor/plugin.xml b/plugins/de.fraunhofer.ipa.ros.editor/plugin.xml index 9d234c71f..099c5a10c 100644 --- a/plugins/de.fraunhofer.ipa.ros.editor/plugin.xml +++ b/plugins/de.fraunhofer.ipa.ros.editor/plugin.xml @@ -120,15 +120,15 @@ - + - + availableViewPoints = ViewpointSelection.getViewpoints("ros"); - Set viewpoints = new HashSet(); - for(Viewpoint p : availableViewPoints) - viewpoints.add(SiriusResourceHelper.getCorrespondingViewpoint(session, p)); - ViewpointSelection.Callback callback = new ViewpointSelectionCallbackWithConfimation(); - - //set ros model as root object for the representation - @SuppressWarnings("restriction") - RecordingCommand command = new ChangeViewpointSelectionCommand( session, callback, viewpoints, new HashSet(), true, monitor); - TransactionalEditingDomain domain = session.getTransactionalEditingDomain(); - EObject rootObject = RosFactory.eINSTANCE.createArtifact(); - session.addSemanticResource(rosFileURI, monitor); - domain.getCommandStack().execute(command); - - - - //Add resource dependencies to communication objects - if (ResourcesPlugin.getWorkspace().getRoot().getProject("de.fraunhofer.ipa.ros.communication.objects").exists()) { - File[] Objectfiles = new File(ResourcesPlugin.getWorkspace().getRoot().getProject("de.fraunhofer.ipa.ros.communication.objects").getLocation().toString()+"/basic_msgs").listFiles(); - for (File Ofile:Objectfiles) { - if(Ofile.isFile()){ - IFile Oifile= ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(Path.fromOSString(Ofile.getAbsolutePath())); - if (Oifile.getFileExtension().contains("ros")) { - AddSemanticResourceCommand addCommandToSession = new AddSemanticResourceCommand(session, URI.createPlatformResourceURI(Oifile.getFullPath().toOSString(), true), monitor ); - domain.getCommandStack().execute(addCommandToSession); - } - } - } - } - //create representation - try { - rootObject = session.getSemanticResources().iterator().next().getContents().get(0).eContents().get(0).eContents().get(0); - Collection representationDescriptions = DialectManager.INSTANCE.getAvailableRepresentationDescriptions(session.getSelectedViewpoints(true), rootObject); - SessionManager.INSTANCE.notifyRepresentationCreated(session); - RepresentationDescription description_ = representationDescriptions.iterator().next(); - Command createViewCommand = new CreateRepresentationCommand(session, description_, rootObject, ProjectName, monitor); - session.getTransactionalEditingDomain().getCommandStack().execute(createViewCommand); - DialectManager viewpointDialectManager = DialectManager.INSTANCE; - project.open(IResource.BACKGROUND_REFRESH, monitor); - Collection representations = viewpointDialectManager.getRepresentations(description_, session); - DRepresentation myDiagramRepresentation = representations.iterator().next(); - DialectUIManager dialectUIManager = DialectUIManager.INSTANCE; dialectUIManager.openEditor(session, myDiagramRepresentation, monitor); - - } finally { - session.open(monitor); - //ResourcesPlugin.getWorkspace().getRoot().getProject(project.getName()).refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor()); - //project.open(IResource.BACKGROUND_REFRESH, monitor); - } - monitor.worked(1); } diff --git a/plugins/de.fraunhofer.ipa.ros.xtext/build.properties b/plugins/de.fraunhofer.ipa.ros.xtext/build.properties index f8a35f780..320a75357 100644 --- a/plugins/de.fraunhofer.ipa.ros.xtext/build.properties +++ b/plugins/de.fraunhofer.ipa.ros.xtext/build.properties @@ -15,5 +15,4 @@ additional.bundles = org.eclipse.xtext.xbase,\ org.apache.commons.logging,\ org.apache.log4j,\ com.ibm.icu,\ - org.eclipse.xtext.xtext.generator,\ - org.eclipse.emf.mwe2.launch + org.eclipse.xtext.xtext.generator \ No newline at end of file diff --git a/plugins/de.fraunhofer.ipa.ros/.settings/org.eclipse.jdt.core.prefs b/plugins/de.fraunhofer.ipa.ros/.settings/org.eclipse.jdt.core.prefs index 7adc0fb9a..bc37f8d04 100644 --- a/plugins/de.fraunhofer.ipa.ros/.settings/org.eclipse.jdt.core.prefs +++ b/plugins/de.fraunhofer.ipa.ros/.settings/org.eclipse.jdt.core.prefs @@ -1,10 +1,15 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 -org.eclipse.jdt.core.compiler.compliance=11 +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=19 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=19 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning -org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=11 +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=19 diff --git a/plugins/de.fraunhofer.ipa.ros/src/ros/impl/AmentPackageImpl.java b/plugins/de.fraunhofer.ipa.ros/src/ros/impl/AmentPackageImpl.java index 571c31a61..e8f8ad098 100644 --- a/plugins/de.fraunhofer.ipa.ros/src/ros/impl/AmentPackageImpl.java +++ b/plugins/de.fraunhofer.ipa.ros/src/ros/impl/AmentPackageImpl.java @@ -20,7 +20,7 @@ public class AmentPackageImpl extends PackageImpl implements AmentPackage { * * @generated */ - protected AmentPackageImpl() { + public AmentPackageImpl() { super(); } diff --git a/plugins/de.fraunhofer.ipa.ros1.xtext/build.properties b/plugins/de.fraunhofer.ipa.ros1.xtext/build.properties index c24ff3680..43a31d7a6 100644 --- a/plugins/de.fraunhofer.ipa.ros1.xtext/build.properties +++ b/plugins/de.fraunhofer.ipa.ros1.xtext/build.properties @@ -10,7 +10,6 @@ additional.bundles = org.eclipse.xtext.xbase,\ org.eclipse.xtext.xtext.generator,\ org.eclipse.emf.codegen.ecore,\ org.eclipse.emf.mwe.utils,\ - org.eclipse.emf.mwe2.launch,\ org.eclipse.emf.mwe2.lib,\ org.objectweb.asm,\ org.apache.commons.logging,\ diff --git a/plugins/de.fraunhofer.ipa.ros2.xtext/.launch/Launch Runtime Eclipse.launch b/plugins/de.fraunhofer.ipa.ros2.xtext/.launch/Launch Runtime Eclipse.launch index 1ff8520ca..3f8cee5bc 100644 --- a/plugins/de.fraunhofer.ipa.ros2.xtext/.launch/Launch Runtime Eclipse.launch +++ b/plugins/de.fraunhofer.ipa.ros2.xtext/.launch/Launch Runtime Eclipse.launch @@ -17,7 +17,6 @@ - diff --git a/plugins/de.fraunhofer.ipa.ros2.xtext/build.properties b/plugins/de.fraunhofer.ipa.ros2.xtext/build.properties index c24ff3680..43a31d7a6 100644 --- a/plugins/de.fraunhofer.ipa.ros2.xtext/build.properties +++ b/plugins/de.fraunhofer.ipa.ros2.xtext/build.properties @@ -10,7 +10,6 @@ additional.bundles = org.eclipse.xtext.xbase,\ org.eclipse.xtext.xtext.generator,\ org.eclipse.emf.codegen.ecore,\ org.eclipse.emf.mwe.utils,\ - org.eclipse.emf.mwe2.launch,\ org.eclipse.emf.mwe2.lib,\ org.objectweb.asm,\ org.apache.commons.logging,\ diff --git a/plugins/de.fraunhofer.ipa.rossystem.editor/plugin.xml b/plugins/de.fraunhofer.ipa.rossystem.editor/plugin.xml index 66a74c835..d1eb97940 100644 --- a/plugins/de.fraunhofer.ipa.rossystem.editor/plugin.xml +++ b/plugins/de.fraunhofer.ipa.rossystem.editor/plugin.xml @@ -21,7 +21,7 @@ - +