-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added structure-based editing stuf (not tested).
- Loading branch information
1 parent
7fd0f67
commit 20c1bcc
Showing
5 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
.../de.cau.cs.kieler.klighd/src/de/cau/cs/kieler/klighd/structurebasedediting/InputType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* KIELER - Kiel Integrated Environment for Layout Eclipse RichClient | ||
* | ||
* http://rtsys.informatik.uni-kiel.de/kieler | ||
* | ||
* Copyright 2024 by | ||
* + Kiel University | ||
* + Department of Computer Science | ||
* + Real-Time and Embedded Systems Group | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package de.cau.cs.kieler.klighd.structurebasedediting; | ||
|
||
/** | ||
* Data class for structured editing input type. | ||
*/ | ||
public class InputType { | ||
String field; | ||
String type; | ||
String label; | ||
|
||
public InputType(String field, String type, String label) { | ||
this.field = field; | ||
this.type = type; | ||
this.label = label; | ||
} | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
...lighd/src/de/cau/cs/kieler/klighd/structurebasedediting/StructureBasedEditingMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* KIELER - Kiel Integrated Environment for Layout Eclipse RichClient | ||
* | ||
* http://rtsys.informatik.uni-kiel.de/kieler | ||
* | ||
* Copyright 2024 by | ||
* + Kiel University | ||
* + Department of Computer Science | ||
* + Real-Time and Embedded Systems Group | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package de.cau.cs.kieler.klighd.structurebasedediting; | ||
|
||
/** | ||
* Data class for structure editing message to be send from client to server. | ||
*/ | ||
public class StructureBasedEditingMessage { | ||
|
||
String label; | ||
String kind; | ||
Boolean mergable; | ||
InputType[] inputs; | ||
|
||
public StructureBasedEditingMessage(String label, String kind, Boolean mergable, InputType[] inputs) { | ||
this.label = label; | ||
this.kind = kind; | ||
this.mergable = mergable; | ||
this.inputs = inputs; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...lighd/src/de/cau/cs/kieler/klighd/structurebasedediting/StructureBasedEditingOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* KIELER - Kiel Integrated Environment for Layout Eclipse RichClient | ||
* | ||
* http://rtsys.informatik.uni-kiel.de/kieler | ||
* | ||
* Copyright 2024 by | ||
* + Kiel University | ||
* + Department of Computer Science | ||
* + Real-Time and Embedded Systems Group | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package de.cau.cs.kieler.klighd.structurebasedediting; | ||
|
||
import java.util.Map; | ||
|
||
import de.cau.cs.kieler.klighd.filtering.SemanticFilterTag; | ||
|
||
/** | ||
* Property that holds the information about support structured editing messages and what elements support which message. | ||
*/ | ||
public class StructureBasedEditingOptions { | ||
Map<SemanticFilterTag, StructureBasedEditingMessage[]> options; | ||
|
||
public StructureBasedEditingOptions(Map<SemanticFilterTag, StructureBasedEditingMessage[]> map) { | ||
options = map; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters