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 #156

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Structured Programming #156

wants to merge 16 commits into from

Conversation

FelixJoehnk
Copy link

Copy link
Member

@soerendomroes soerendomroes left a comment

Choose a reason for hiding this comment

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

klighd.lsp cannot depend on SCCharts. Try using a service interface instead.

@@ -6,12 +6,12 @@
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
Copy link
Member

Choose a reason for hiding this comment

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

Why is this changed?

@Inject

@Inject
protected ScchartStructuredProgrammingActionHandler scchartsStructuredActionHandler
Copy link
Member

Choose a reason for hiding this comment

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

Is this the only change and the rest are just write-space changes?
The name suggests that it should not be in here since it sounds SCCharts-specific, maybe you should use a service interface for this.
If you use SCCharts in a class name, also capitalize it the same way as SCCharts.

@@ -35,4 +36,5 @@ Require-Bundle: de.cau.cs.kieler.kgraph.text,
org.eclipse.lsp4j.jsonrpc;bundle-version="0.8.0",
org.eclipse.sprotty;bundle-version="0.7.0",
org.eclipse.xtext.ide;bundle-version="2.21.0",
org.eclipse.xtext.xbase;bundle-version="2.21.0"
org.eclipse.xtext.xbase;bundle-version="2.21.0",
de.cau.cs.kieler.sccharts;bundle-version="1.4.0"
Copy link
Member

Choose a reason for hiding this comment

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

klighd.lsp cannot and should never have an SCCharts dependency.

* SPDX-License-Identifier: EPL-2.0
*/
package de.cau.cs.kieler.klighd.lsp

import com.google.common.html.HtmlEscapers
import de.cau.cs.kieler.klighd.ViewContext
import de.cau.cs.kieler.klighd.kgraph.KNode
import de.cau.cs.kieler.klighd.kgraph.KEdge
import de.cau.cs.kieler.klighd.internal.util.KlighdInternalProperties
import de.cau.cs.kieler.sccharts.State
Copy link
Member

Choose a reason for hiding this comment

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

Again, no SCCharts dependencies in here.

import de.cau.cs.kieler.klighd.kgraph.KEdge
import de.cau.cs.kieler.klighd.internal.util.KlighdInternalProperties
import de.cau.cs.kieler.sccharts.State
import de.cau.cs.kieler.kexpressions.impl.ValuedObjectImpl
Copy link
Member

Choose a reason for hiding this comment

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

Also no kexpressions dependencies.

*
* 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 missing.

}

/*Method to add hirarchical behavior to a node */
def addHirachicalNode(AddHierarchicalStateAction action, String clientId, KGraphDiagramServer server) {
Copy link
Member

Choose a reason for hiding this comment

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

Hierarchical

factory = new SCChartsFactoryImpl()
}

/*simply sets the range to be the files size. */
Copy link
Member

Choose a reason for hiding this comment

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

All the methods below do not have a javadoc but only a comment in front of them.

@@ -21,6 +21,7 @@ Bundle-ActivationPolicy: lazy
Bundle-Activator: de.cau.cs.kieler.klighd.KlighdPlugin
Export-Package: de.cau.cs.kieler.klighd,
de.cau.cs.kieler.klighd.actions,
de.cau.cs.kieler.klighd.filtering,
Copy link
Member

Choose a reason for hiding this comment

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

These are the changes by mka, correct?

/**
* This class holds the keyinformation what inputs need to be done on the client for a specific
* action. The label is displayed to the user in the contextmenu. The kind is the action kind.
* Mergable is when multiple things are selected and it can be done for all of them The InputType
Copy link
Member

Choose a reason for hiding this comment

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

them. The InputType

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