11 |
12 |
13 |
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/Diagram.gwt.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/grammar/src/main/java/jetbrains/jetpad/grammar/Grammar.gwt.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/view/src/main/java/jetbrains/jetpad/projectional/view/toGwt/SvgUtil.java:
--------------------------------------------------------------------------------
1 | package jetbrains.jetpad.projectional.view.toGwt;
2 |
3 | import com.google.gwt.dom.client.Element;
4 |
5 | class SvgUtil {
6 | static native Element createSvgElement(String name) /*-{
7 | return $doc.createElementNS('http://www.w3.org/2000/svg', name);
8 | }-*/;
9 |
10 | static Element createPath() {
11 | return createSvgElement("path");
12 | }
13 |
14 | static Element createPolyline() {
15 | return createSvgElement("polyline");
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/svgDemo/src/main/java/jetbrains/jetpad/projectional/svgDemo/GwtDemo.gwt.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/Cell.gwt.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/event/src/main/java/jetbrains/jetpad/event/ContentKind.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.event;
17 |
18 | public interface ContentKind {
19 | }
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/HorizontalCell.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell;
17 |
18 | public class HorizontalCell extends Cell {
19 | }
--------------------------------------------------------------------------------
/grammar/src/main/java/jetbrains/jetpad/grammar/Associativity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.grammar;
17 |
18 | public enum Associativity {
19 | LEFT, RIGHT
20 | }
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/event/EventPriority.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell.event;
17 |
18 | public enum EventPriority {
19 | NORMAL, LOW
20 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/IdExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public class IdExpr extends Expr {
19 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/EmptyExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public class EmptyExpr extends Expr {
19 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/MulExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public class MulExpr extends BinExpr {
19 | }
--------------------------------------------------------------------------------
/dataflow/src/main/webapp/index.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | Diagram Editor Demo
6 |
7 |
8 |
9 |
10 |
Shortcuts
11 |
12 |
C - add new constant block
13 |
I - add new integration block
14 |
S - add new sum block
15 |
O - add new output block
16 |
Del/Backspace - delete selection
17 |
18 |
Diagram
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/Expr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public abstract class Expr extends ExprNode {
19 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/PlusExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public class PlusExpr extends BinExpr {
19 | }
--------------------------------------------------------------------------------
/grammar/src/main/java/jetbrains/jetpad/grammar/RuleHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.grammar;
17 |
18 | public interface RuleHandler {
19 | Object handle(RuleContext ctx);
20 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/AsyncValueExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public class AsyncValueExpr extends Expr {
19 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/PosValueExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public class PosValueExpr extends Expr {
19 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/ComplexValueExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | public class ComplexValueExpr extends Expr {
19 | }
--------------------------------------------------------------------------------
/projectional/src/main/java/jetbrains/jetpad/projectional/binOp/Associativity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.binOp;
17 |
18 | public enum Associativity {
19 | LEFT, RIGHT
20 | }
--------------------------------------------------------------------------------
/svg/src/main/java/jetbrains/jetpad/projectional/svg/SvgCssResource.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.svg;
17 |
18 | public interface SvgCssResource {
19 | public String css();
20 | }
--------------------------------------------------------------------------------
/hybrid/src/main/java/jetbrains/jetpad/hybrid/parser/Parser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.parser;
17 |
18 | public interface Parser {
19 | ResultT parse(ParsingContext ctx);
20 | }
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/util/CellState.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell.util;
17 |
18 | public interface CellState {
19 | CellStateDifference getDifference(CellState state);
20 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/concept/model/ChildMember.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.concept.model;
17 |
18 | public class ChildMember extends NamedMember {
19 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/concept/model/EmptyMember.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.concept.model;
17 |
18 | public class EmptyMember extends ConceptMember {
19 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/concept/model/PropertyMember.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.concept.model;
17 |
18 | public class PropertyMember extends NamedMember {
19 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/concept/model/ReferenceMember.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.concept.model;
17 |
18 | public class ReferenceMember extends NamedMember {
19 | }
--------------------------------------------------------------------------------
/svg/src/main/java/jetbrains/jetpad/projectional/svg/SvgConstants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.svg;
17 |
18 | public interface SvgConstants {
19 | String SVG_TEXT_ANCHOR_ATTRIBUTE = "text-anchor";
20 | }
--------------------------------------------------------------------------------
/svg/src/main/java/jetbrains/jetpad/projectional/svg/Svg.gwt.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/RootCell.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell;
17 |
18 | public class RootCell extends Cell {
19 | RootCell(CellContainer cellContainer) {
20 | super(cellContainer);
21 | }
22 | }
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/indent/updater/CellWrapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell.indent.updater;
17 |
18 | public interface CellWrapper {
19 | CompositeT item();
20 | void remove();
21 | }
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/view/DeleteHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.diagram.view;
17 |
18 | public interface DeleteHandler {
19 | boolean canDelete();
20 | void delete();
21 | }
--------------------------------------------------------------------------------
/event/src/main/java/jetbrains/jetpad/event/ModifierKey.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.event;
17 |
18 | public enum ModifierKey {
19 | CONTROL(),
20 | ALT(),
21 | SHIFT(),
22 | META();
23 |
24 | ModifierKey() {
25 | }
26 | }
--------------------------------------------------------------------------------
/event/src/main/java/jetbrains/jetpad/event/ClipboardContent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.event;
17 |
18 | public interface ClipboardContent {
19 | boolean isSupported(ContentKind> kind);
20 | T get(ContentKind kind);
21 | }
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/algorithm/graph/Graph.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.diagram.algorithm.graph;
17 |
18 | public interface Graph {
19 | Iterable getEdges(NodeT node);
20 | }
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/view/RoutingViewConfiguration.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.diagram.view;
17 |
18 | public interface RoutingViewConfiguration {
19 | boolean preventBlocksOverlapping();
20 | }
--------------------------------------------------------------------------------
/svg/src/main/java/jetbrains/jetpad/projectional/svg/event/SvgEventSpec.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.svg.event;
17 |
18 | public enum SvgEventSpec {
19 | MOUSE_CLICKED, MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_OVER, MOUSE_MOVE, MOUSE_OUT
20 | }
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/mappersUtil/HasCounters.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell.mappersUtil;
17 |
18 | public interface HasCounters {
19 | int getCounter(CounterSpec spec);
20 | void changeCounter(CounterSpec spec, int delta);
21 | }
--------------------------------------------------------------------------------
/event/src/main/java/jetbrains/jetpad/event/KeyStrokeSpec.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.event;
17 |
18 | import java.util.Set;
19 |
20 | public interface KeyStrokeSpec {
21 | boolean matches(KeyStroke keyStroke);
22 | Set getKeyStrokes();
23 | }
--------------------------------------------------------------------------------
/hybrid/src/main/java/jetbrains/jetpad/hybrid/parser/prettyprint/PrettyPrinter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.parser.prettyprint;
17 |
18 | public interface PrettyPrinter {
19 | void print(NodeT value, PrettyPrinterContext ctx);
20 | }
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/view/MoveHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.diagram.view;
17 |
18 | import jetbrains.jetpad.geometry.Vector;
19 |
20 | public interface MoveHandler {
21 | void move(Vector delta);
22 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/IdExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | public class IdExpr extends Expr {
19 | @Override
20 | public String toString() {
21 | return "id";
22 | }
23 | }
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/completion/CompletionConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell.completion;
17 |
18 | public interface CompletionConfig {
19 |
20 | boolean canDoRightTransform(CompletionItems completionItems, String prefixText);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/dataflow/src/main/java/jetbrains/mps/diagram/dataflow/model/InputPort.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.mps.diagram.dataflow.model;
17 |
18 | import jetbrains.jetpad.model.children.SimpleComposite;
19 |
20 | public class InputPort extends SimpleComposite {
21 | }
--------------------------------------------------------------------------------
/dataflow/src/main/java/jetbrains/mps/diagram/dataflow/model/OutputPort.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.mps.diagram.dataflow.model;
17 |
18 | import jetbrains.jetpad.model.children.SimpleComposite;
19 |
20 | public class OutputPort extends SimpleComposite {
21 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/DivExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | public class DivExpr extends BinExpr {
19 | @Override
20 | protected String getSign() {
21 | return "/";
22 | }
23 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/EqExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | public class EqExpr extends BinExpr {
19 | @Override
20 | protected String getSign() {
21 | return "==";
22 | }
23 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/MulExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | public class MulExpr extends BinExpr {
19 | @Override
20 | protected String getSign() {
21 | return "*";
22 | }
23 | }
--------------------------------------------------------------------------------
/dataflow/src/main/java/jetbrains/mps/diagram/dataflow/Dataflow.gwt.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/ExprNode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | import jetbrains.jetpad.model.children.SimpleComposite;
19 |
20 | public abstract class ExprNode extends SimpleComposite {
21 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/MinusExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | public class MinusExpr extends BinExpr {
19 | @Override
20 | protected String getSign() {
21 | return "-";
22 | }
23 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/PlusExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | public class PlusExpr extends BinExpr {
19 | @Override
20 | protected String getSign() {
21 | return "+";
22 | }
23 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/AssignExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | public class AssignExpr extends BinExpr {
19 | @Override
20 | protected String getSign() {
21 | return "=";
22 | }
23 | }
--------------------------------------------------------------------------------
/view/src/main/java/jetbrains/jetpad/projectional/view/ViewEventHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.view;
17 |
18 | import jetbrains.jetpad.event.Event;
19 |
20 | public interface ViewEventHandler {
21 | void handle(View view, EventT e);
22 | }
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/algorithm/graph/WeightedGraph.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.diagram.algorithm.graph;
17 |
18 | public interface WeightedGraph extends Graph {
19 | Iterable getEdgeWeights(NodeT node);
20 | }
--------------------------------------------------------------------------------
/projectional/src/test/java/jetbrains/jetpad/projectional/testApp/model/ExprNode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.testApp.model;
17 |
18 | import jetbrains.jetpad.model.children.SimpleComposite;
19 |
20 | public class ExprNode extends SimpleComposite {
21 | }
--------------------------------------------------------------------------------
/domUtil/src/main/java/jetbrains/jetpad/projectional/domUtil/TextMetrics.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.domUtil;
17 |
18 |
19 | import jetbrains.jetpad.geometry.DoubleVector;
20 |
21 | public interface TextMetrics {
22 | DoubleVector dimension();
23 | int baseLine();
24 | }
--------------------------------------------------------------------------------
/hybrid/src/main/java/jetbrains/jetpad/hybrid/HybridEditorSpec.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid;
17 |
18 | import jetbrains.jetpad.hybrid.parser.Parser;
19 |
20 | public interface HybridEditorSpec extends SimpleHybridEditorSpec {
21 | Parser getParser();
22 | }
--------------------------------------------------------------------------------
/hybrid/src/main/java/jetbrains/jetpad/hybrid/parser/ParsingContextFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.parser;
17 |
18 | import java.util.List;
19 |
20 | public interface ParsingContextFactory {
21 |
22 | ParsingContext getParsingContext(List tokenList);
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/toDom/CellToDomBundle.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell.toDom;
17 |
18 | import com.google.gwt.resources.client.ClientBundle;
19 |
20 | public interface CellToDomBundle extends ClientBundle {
21 | @Source("style.css")
22 | CellToDomCss style();
23 | }
--------------------------------------------------------------------------------
/grammar/src/main/java/jetbrains/jetpad/grammar/Terminal.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.grammar;
17 |
18 | /**
19 | * Terminal symbol of a grammar
20 | */
21 | public final class Terminal extends Symbol {
22 | Terminal(Grammar grammar, String name) {
23 | super(grammar, name);
24 | }
25 | }
--------------------------------------------------------------------------------
/cell/src/main/java/jetbrains/jetpad/cell/event/CellEventHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.cell.event;
17 |
18 | import jetbrains.jetpad.cell.Cell;
19 | import jetbrains.jetpad.event.Event;
20 |
21 | public interface CellEventHandler {
22 | void handle(Cell cell, EventT e);
23 | }
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/view/Connection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.diagram.view;
17 |
18 | import jetbrains.jetpad.projectional.view.View;
19 |
20 | public interface Connection {
21 | View view();
22 |
23 | void attach();
24 | void detach();
25 | }
--------------------------------------------------------------------------------
/event/src/main/java/jetbrains/jetpad/event/Events.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.event;
17 |
18 | public class Events {
19 | public static Event getCause(Event e) {
20 | while (e instanceof DerivedEvent) {
21 | e = ((DerivedEvent) e).getCause();
22 | }
23 | return e;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/projectional/src/main/java/jetbrains/jetpad/projectional/selection/SelectionId.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.selection;
17 |
18 | import jetbrains.jetpad.model.id.BaseId;
19 |
20 | public class SelectionId extends BaseId {
21 | public SelectionId() {
22 | super();
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/hybridExpr/model/types/Type.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.hybridExpr.model.types;
17 |
18 | import java.util.List;
19 |
20 | public interface Type {
21 | List getFields();
22 | List getMethods();
23 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/indentDemo/model/LambdaNode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.indentDemo.model;
17 |
18 | import jetbrains.jetpad.model.children.SimpleComposite;
19 |
20 | public abstract class LambdaNode extends SimpleComposite {
21 | }
--------------------------------------------------------------------------------
/diagram/src/main/java/jetbrains/jetpad/projectional/diagram/layout/ConnectionRouter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.diagram.layout;
17 |
18 | import jetbrains.jetpad.projectional.diagram.view.DiagramView;
19 |
20 | public interface ConnectionRouter {
21 | void findRoutes(DiagramView view);
22 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/ExprList.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | import jetbrains.jetpad.model.children.ChildList;
19 |
20 | public class ExprList extends ExprNode {
21 | public final ChildList expr = new ChildList<>(this);
22 | }
--------------------------------------------------------------------------------
/hybrid/src/main/java/jetbrains/jetpad/hybrid/parser/simple/UnaryExpressionFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.parser.simple;
17 |
18 | import jetbrains.jetpad.grammar.ParserParameters;
19 |
20 | public interface UnaryExpressionFactory {
21 | ExprT create(ParserParameters params, ExprT expr);
22 | }
--------------------------------------------------------------------------------
/svg/src/main/java/jetbrains/jetpad/projectional/svg/SvgElementListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.svg;
17 |
18 | import jetbrains.jetpad.projectional.svg.event.SvgAttributeEvent;
19 |
20 | public interface SvgElementListener {
21 | public void onAttrSet(SvgAttributeEvent event);
22 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/expr/model/ExpressionAstNode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.expr.model;
17 |
18 | import jetbrains.jetpad.model.children.SimpleComposite;
19 |
20 | public abstract class ExpressionAstNode extends SimpleComposite {
21 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/hybridExpr/model/ExpressionNode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.hybridExpr.model;
17 |
18 | import jetbrains.jetpad.model.children.SimpleComposite;
19 |
20 | public abstract class ExpressionNode extends SimpleComposite {
21 | }
--------------------------------------------------------------------------------
/hybrid/src/main/java/jetbrains/jetpad/hybrid/parser/simple/BinaryExpressionFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.parser.simple;
17 |
18 | import jetbrains.jetpad.grammar.ParserParameters;
19 |
20 | public interface BinaryExpressionFactory {
21 | ExprT create(ParserParameters params, ExprT left, ExprT right);
22 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/ParenExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | import jetbrains.jetpad.model.children.ChildProperty;
19 |
20 | public class ParenExpr extends Expr {
21 | public final ChildProperty expr = new ChildProperty(this);
22 | }
--------------------------------------------------------------------------------
/projectional/src/main/java/jetbrains/jetpad/projectional/selection/Selection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.selection;
17 |
18 | import jetbrains.jetpad.cell.Cell;
19 |
20 | public interface Selection {
21 | Cell getStart();
22 | Object getStartPosition();
23 | Cell getEnd();
24 | Object getEndPosition();
25 | }
26 |
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/hybridExpr/model/Expression.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.hybridExpr.model;
17 |
18 | import jetbrains.jetpad.projectional.demo.hybridExpr.model.types.Type;
19 |
20 | public abstract class Expression extends ExpressionNode {
21 | public abstract Type getType();
22 | }
--------------------------------------------------------------------------------
/event/src/main/java/jetbrains/jetpad/event/DerivedEvent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.event;
17 |
18 | public class DerivedEvent extends Event {
19 | private final Event myCause;
20 |
21 | public DerivedEvent(Event cause) {
22 | myCause = cause;
23 | }
24 |
25 | public Event getCause() {
26 | return myCause;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/ExprContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | import jetbrains.jetpad.model.children.ChildProperty;
19 |
20 | public class ExprContainer extends ExprNode {
21 | public final ChildProperty expr = new ChildProperty(this);
22 | }
--------------------------------------------------------------------------------
/svg/src/main/java/jetbrains/jetpad/projectional/svg/event/SvgEventHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.svg.event;
17 |
18 | import jetbrains.jetpad.event.Event;
19 | import jetbrains.jetpad.projectional.svg.SvgNode;
20 |
21 | public interface SvgEventHandler {
22 | void handle(SvgNode node, EventT e);
23 | }
--------------------------------------------------------------------------------
/hybrid/src/main/java/jetbrains/jetpad/hybrid/CommentSpec.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid;
17 |
18 | public interface CommentSpec {
19 |
20 | CommentSpec EMPTY = new CommentSpec() {
21 | @Override
22 | public String getCommentPrefix() {
23 | return null;
24 | }
25 | };
26 |
27 | String getCommentPrefix();
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/projectional/src/main/java/jetbrains/jetpad/projectional/cell/mapping/ToCellMapping.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.cell.mapping;
17 |
18 | import jetbrains.jetpad.cell.Cell;
19 |
20 | import java.util.List;
21 |
22 | public interface ToCellMapping {
23 | List getCells(Object source);
24 | Object getSource(Cell cell);
25 | }
26 |
--------------------------------------------------------------------------------
/completion/src/main/java/jetbrains/jetpad/completion/CompletionParameters.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.completion;
17 |
18 | public interface CompletionParameters {
19 | CompletionParameters EMPTY = new BaseCompletionParameters();
20 |
21 | boolean isEndRightTransform();
22 | boolean isMenu();
23 |
24 | boolean isBulkCompletionRequired();
25 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/hybridExpr/model/Operation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.hybridExpr.model;
17 |
18 | import jetbrains.jetpad.projectional.demo.hybridExpr.model.types.Type;
19 |
20 | public abstract class Operation extends ExpressionNode {
21 | public abstract Type getType(Type operandType);
22 | }
--------------------------------------------------------------------------------
/demo/src/main/java/jetbrains/jetpad/projectional/demo/indentDemo/model/Expr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.projectional.demo.indentDemo.model;
17 |
18 | public abstract class Expr extends LambdaNode {
19 | public abstract Expr copy();
20 |
21 | protected Expr copy(Expr e) {
22 | if (e == null) return null;
23 | return e.copy();
24 | }
25 | }
--------------------------------------------------------------------------------
/hybrid/src/test/java/jetbrains/jetpad/hybrid/testapp/model/ValueExpr.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012-2016 JetBrains s.r.o
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package jetbrains.jetpad.hybrid.testapp.model;
17 |
18 | import jetbrains.jetpad.model.property.Property;
19 | import jetbrains.jetpad.model.property.ValueProperty;
20 |
21 | public class ValueExpr extends Expr {
22 | public Property