Skip to content

Structured Programming#156

Open
FelixJoehnk wants to merge 16 commits intokieler:masterfrom
FelixJoehnk:master
Open

Structured Programming#156
FelixJoehnk wants to merge 16 commits intokieler:masterfrom
FelixJoehnk:master

Conversation

@FelixJoehnk
Copy link
Copy Markdown

Copy link
Copy Markdown
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.

<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
Copy link
Copy Markdown
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
Copy Markdown
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.

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
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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