Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured Programming #84

Closed
wants to merge 14 commits into from
Closed

Conversation

FelixJoehnk
Copy link

…_TYPE for every node, region and Transition in SCChart synthesis based on changes from tik/proxy-view. There is no merge since all the changes where kind of spread out and it was only a minor portion of the commits i needed.
# Conflicts:
#	plugins/de.cau.cs.kieler.sccharts.ui/src/de/cau/cs/kieler/sccharts/ui/synthesis/ControlflowRegionSynthesis.xtend
#	plugins/de.cau.cs.kieler.sccharts.ui/src/de/cau/cs/kieler/sccharts/ui/synthesis/DataflowRegionSynthesis.xtend
#	plugins/de.cau.cs.kieler.sccharts.ui/src/de/cau/cs/kieler/sccharts/ui/synthesis/StateSynthesis.xtend
@a-sr a-sr marked this pull request as draft March 27, 2023 11:19
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be empty. I guess this is in here because you want to use a service interface?

@@ -24,6 +24,7 @@ import org.eclipse.xtext.Constants
import org.eclipse.xtext.IGrammarAccess
import org.eclipse.xtext.ide.server.ILanguageServerExtension
import org.eclipse.xtext.util.Modules2
import de.cau.cs.kieler.klighd.lsp.structuredProgramming.sccharts.StructuredProgScchartLanguageServerExtension
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactoring this to be in the semantic would allow to collect the LS extension via a service interface as done in line 63.

@@ -41,7 +41,8 @@ Require-Bundle: de.cau.cs.kieler.klighd,
org.eclipse.jdt.core;bundle-version="3.19.0",
de.cau.cs.kieler.kicool.ide,
de.cau.cs.kieler.annotations.ide,
org.eclipse.elk.core.service
org.eclipse.elk.core.service,
de.cau.cs.kieler.klighd.lsp;bundle-version="2.2.1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this dependency should not be necessary.
Maybe all the SCCharts structured editing should be in a new package in scharts.ide?

Are the changes in sccharts.ui from your work or from the work on the proxies?

/**
* Enables the structured programming mode on the client
*/
public static final SynthesisOption ENABLE_STRUCTURED_PROGRAMMING = SynthesisOption.createCheckOption(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is the only real change, the other ones are whitespace changes?

@@ -187,7 +198,12 @@ class SCChartsSynthesis extends AbstractDiagramSynthesis<SCCharts> {
if (scc.hasPragma(PRAGMA_SKINPATH)) {
setSkinPath(scc.getStringPragmas(PRAGMA_SKINPATH).head.values.head, usedContext)
}


//Enables or disables the display of the contextmenu on the client.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space after //

@@ -326,8 +367,12 @@ class StateSynthesis extends SubSynthesis<State, KNode> {
if (SHOW_INHERITANCE.booleanValue) regions.addAll(0, state.allVisibleInheritedRegions.toList)
for (region : regions) {
switch region {
ControlflowRegion: node.children += region.transform
DataflowRegion: node.children += region.transform
ControlflowRegion: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change this?

*
* http://rtsys.informatik.uni-kiel.de/kieler
*
* Copyright ${year} by
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Year

@soerendomroes
Copy link
Member

soerendomroes commented Mar 12, 2024

Superseded by #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants