args) {
38 | super(KIND, elementTypeId, args);
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/di/ClientId.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.di;
17 |
18 | import static java.lang.annotation.ElementType.FIELD;
19 | import static java.lang.annotation.ElementType.METHOD;
20 | import static java.lang.annotation.ElementType.PARAMETER;
21 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
22 |
23 | import java.lang.annotation.Retention;
24 | import java.lang.annotation.Target;
25 |
26 | import com.google.inject.BindingAnnotation;
27 |
28 | /**
29 | * Helper annotation that is used for injecting the client id string into classes of diagram session (client session)
30 | * specific injectors.
31 | *
32 | * Example usage:
33 | *
34 | *
35 | * @Inject
36 | * @ClientId
37 | * private String diagramType;
38 | *
39 | */
40 | @Target({ FIELD, PARAMETER, METHOD })
41 | @Retention(RUNTIME)
42 | @BindingAnnotation
43 | public @interface ClientId {}
44 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/disposable/Disposable.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.disposable;
17 |
18 | /**
19 | * A simple implementation of {@link IDisposable} that ensures that we only dispose an element once and track the
20 | * disposed state correctly.
21 | */
22 | public class Disposable implements IDisposable {
23 | private boolean disposed;
24 |
25 | @Override
26 | public void dispose() {
27 | if (!disposed) {
28 | doDispose();
29 | disposed = true;
30 | }
31 | }
32 |
33 | protected void doDispose() {
34 | // do nothing
35 | }
36 |
37 | @Override
38 | public boolean isDisposed() { return disposed; }
39 | }
40 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/disposable/IDisposableResult.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.disposable;
17 |
18 | /**
19 | * An IDisposable that also holds a result. Useful to wrap
20 | * elements that should be disposed, but don't directly
21 | * implement IDisposable.
22 | *
23 | * @param The type of the wrapped element/result
24 | */
25 | public interface IDisposableResult extends IDisposable {
26 | /**
27 | * @return the value wrapped by this {@link IDisposableResult}
28 | */
29 | T getResult();
30 | }
31 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/contextactions/ContextActionsProviderRegistry.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.contextactions;
17 |
18 | import org.eclipse.glsp.server.registry.Registry;
19 |
20 | /**
21 | * A registry that keeps track of all registered {@link ContextActionsProvider}s.
22 | */
23 | public interface ContextActionsProviderRegistry extends Registry {}
24 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/contextactions/SetAutoCompleteValueAction.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.contextactions;
17 |
18 | import java.util.ArrayList;
19 |
20 | import org.eclipse.glsp.server.actions.Action;
21 | import org.eclipse.glsp.server.features.directediting.LabeledAction;
22 |
23 | public class SetAutoCompleteValueAction extends LabeledAction {
24 |
25 | private String text;
26 |
27 | public SetAutoCompleteValueAction(final String label, final String icon, final String text) {
28 | super(label, new ArrayList(), icon);
29 | this.text = text;
30 | }
31 |
32 | public String getText() { return text; }
33 |
34 | public void setText(final String text) { this.text = text; }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/core/model/RequestBoundsAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.core.model;
17 |
18 | import org.eclipse.glsp.graph.GModelRoot;
19 | import org.eclipse.glsp.server.actions.RequestAction;
20 |
21 | public class RequestBoundsAction extends RequestAction {
22 |
23 | public static final String KIND = "requestBounds";
24 |
25 | private GModelRoot newRoot;
26 |
27 | public RequestBoundsAction() {
28 | super(KIND);
29 | }
30 |
31 | public RequestBoundsAction(final GModelRoot newRoot) {
32 | this();
33 | this.newRoot = newRoot;
34 | }
35 |
36 | public GModelRoot getNewRoot() { return newRoot; }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/core/model/SetBoundsAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.core.model;
17 |
18 | import java.util.ArrayList;
19 | import java.util.List;
20 |
21 | import org.eclipse.glsp.server.actions.ResponseAction;
22 | import org.eclipse.glsp.server.types.ElementAndBounds;
23 |
24 | public class SetBoundsAction extends ResponseAction {
25 |
26 | public static final String KIND = "setBounds";
27 |
28 | private List bounds;
29 |
30 | public SetBoundsAction() {
31 | this(new ArrayList<>());
32 | }
33 |
34 | public SetBoundsAction(final List bounds) {
35 | super(KIND);
36 | this.bounds = bounds;
37 | }
38 |
39 | public List getBounds() { return bounds; }
40 |
41 | public void setBounds(final List bounds) { this.bounds = bounds; }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/core/model/SetModelAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.core.model;
17 |
18 | import org.eclipse.glsp.graph.GModelRoot;
19 | import org.eclipse.glsp.server.actions.ResponseAction;
20 |
21 | public class SetModelAction extends ResponseAction {
22 |
23 | public static final String KIND = "setModel";
24 |
25 | private GModelRoot newRoot;
26 |
27 | public SetModelAction() {
28 | super(KIND);
29 | }
30 |
31 | public SetModelAction(final GModelRoot newRoot) {
32 | this();
33 | this.newRoot = newRoot;
34 | }
35 |
36 | public GModelRoot getNewRoot() { return newRoot; }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/directediting/ApplyLabelEditOperation.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.directediting;
17 |
18 | import org.eclipse.glsp.server.operations.Operation;
19 |
20 | public class ApplyLabelEditOperation extends Operation {
21 |
22 | public static final String KIND = "applyLabelEdit";
23 |
24 | private String labelId;
25 | private String text;
26 |
27 | public ApplyLabelEditOperation() {
28 | super(KIND);
29 | }
30 |
31 | public ApplyLabelEditOperation(final String labelId, final String text) {
32 | this();
33 | this.labelId = labelId;
34 | this.text = text;
35 | }
36 |
37 | public String getLabelId() { return labelId; }
38 |
39 | public String getText() { return text; }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/directediting/ContextEditValidatorRegistry.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.directediting;
17 |
18 | import org.eclipse.glsp.server.registry.Registry;
19 |
20 | /**
21 | * A registry that keeps track of all registered {@link ContextEditValidator}s.
22 | */
23 | public interface ContextEditValidatorRegistry extends Registry {}
24 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/directediting/LabelEditValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.directediting;
17 |
18 | import org.eclipse.glsp.graph.GModelElement;
19 |
20 | /**
21 | * A validator that validates a new label for a given {@link GModelElement}.
22 | */
23 | public interface LabelEditValidator {
24 |
25 | String CONTEXT_ID = "label-edit";
26 |
27 | /**
28 | * Returns the {@link ValidationStatus} for a given edited label of a {@link GModelElement}.
29 | *
30 | * @param label The edited label to validate.
31 | * @param element The element for which the label is going to be edited.
32 | * @return The {@link ValidationStatus} of the label.
33 | */
34 | ValidationStatus validate(String label, GModelElement element);
35 | }
36 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/directediting/ValidateLabelEditAction.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2019-2020 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.directediting;
17 |
18 | public class ValidateLabelEditAction extends RequestEditValidationAction {
19 |
20 | public ValidateLabelEditAction() {
21 | super();
22 | }
23 |
24 | public ValidateLabelEditAction(final String value, final String labelId) {
25 | super(LabelEditValidator.CONTEXT_ID, labelId, value);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/navigation/NavigateToExternalTargetAction.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.navigation;
17 |
18 | import org.eclipse.glsp.server.actions.Action;
19 |
20 | public class NavigateToExternalTargetAction extends Action {
21 |
22 | public static final String KIND = "navigateToExternalTarget";
23 |
24 | private NavigationTarget target;
25 |
26 | public NavigateToExternalTargetAction() {
27 | super(KIND);
28 | }
29 |
30 | public NavigateToExternalTargetAction(final NavigationTarget target) {
31 | this();
32 | this.target = target;
33 | }
34 |
35 | public NavigationTarget getTarget() { return target; }
36 |
37 | public void setTarget(final NavigationTarget navigationTarget) { this.target = navigationTarget; }
38 | }
39 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/navigation/NavigateToTargetAction.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.navigation;
17 |
18 | import org.eclipse.glsp.server.actions.Action;
19 |
20 | public class NavigateToTargetAction extends Action {
21 |
22 | public static final String KIND = "navigateToTarget";
23 |
24 | private NavigationTarget target;
25 |
26 | public NavigateToTargetAction() {
27 | super(KIND);
28 | }
29 |
30 | public NavigateToTargetAction(final NavigationTarget target) {
31 | this();
32 | this.target = target;
33 | }
34 |
35 | public NavigationTarget getTarget() { return target; }
36 |
37 | public void setTarget(final NavigationTarget navigationTarget) {
38 | this.target = navigationTarget;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/navigation/NavigationTargetProviderRegistry.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.navigation;
17 |
18 | import org.eclipse.glsp.server.registry.Registry;
19 |
20 | /**
21 | * This registry keeps track of registered {@link NavigationTargetProvider} for a certain target types.
22 | */
23 | public interface NavigationTargetProviderRegistry extends Registry {}
24 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/popup/RequestPopupModelAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.popup;
17 |
18 | import org.eclipse.glsp.graph.GBounds;
19 | import org.eclipse.glsp.server.actions.RequestAction;
20 |
21 | public class RequestPopupModelAction extends RequestAction {
22 |
23 | public static final String KIND = "requestPopupModel";
24 |
25 | private String elementId;
26 | private GBounds bounds;
27 |
28 | public RequestPopupModelAction() {
29 | super(KIND);
30 | }
31 |
32 | public RequestPopupModelAction(final String elementId, final GBounds bounds) {
33 | this();
34 | this.elementId = elementId;
35 | this.bounds = bounds;
36 | }
37 |
38 | public String getElementId() { return elementId; }
39 |
40 | public GBounds getBounds() { return bounds; }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/popup/SetPopupModelAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.popup;
17 |
18 | import org.eclipse.glsp.graph.GModelRoot;
19 | import org.eclipse.glsp.server.actions.ResponseAction;
20 |
21 | public class SetPopupModelAction extends ResponseAction {
22 |
23 | public static final String KIND = "setPopupModel";
24 |
25 | private GModelRoot newRoot;
26 |
27 | public SetPopupModelAction() {
28 | super(KIND);
29 | }
30 |
31 | public SetPopupModelAction(final GModelRoot newRoot) {
32 | this();
33 | this.newRoot = newRoot;
34 | }
35 |
36 | public GModelRoot getNewRoot() { return newRoot; }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/sourcemodelwatcher/SourceModelChangedAction.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2022 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.sourcemodelwatcher;
17 |
18 | import org.eclipse.glsp.server.actions.Action;
19 |
20 | public class SourceModelChangedAction extends Action {
21 |
22 | private String sourceModelName = "";
23 |
24 | public SourceModelChangedAction() {
25 | super("sourceModelChanged");
26 | }
27 |
28 | public SourceModelChangedAction(final String sourceModelName) {
29 | this();
30 | this.sourceModelName = sourceModelName;
31 | }
32 |
33 | public String getSourceModelName() { return sourceModelName; }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/typehints/RequestTypeHintsAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2023 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.typehints;
17 |
18 | import org.eclipse.glsp.server.actions.RequestAction;
19 |
20 | public class RequestTypeHintsAction extends RequestAction {
21 |
22 | public static final String KIND = "requestTypeHints";
23 |
24 | public RequestTypeHintsAction() {
25 | super(KIND);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/undoredo/RedoAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.undoredo;
17 |
18 | import org.eclipse.glsp.server.actions.Action;
19 |
20 | public class RedoAction extends Action {
21 |
22 | public static final String KIND = "glspRedo";
23 |
24 | public RedoAction() {
25 | super(KIND);
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/undoredo/UndoAction.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.features.undoredo;
17 |
18 | import org.eclipse.glsp.server.operations.Operation;
19 |
20 | public class UndoAction extends Operation {
21 |
22 | public static final String KIND = "glspUndo";
23 |
24 | public UndoAction() {
25 | super(KIND);
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/validation/DeleteMarkersAction.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.validation;
17 |
18 | import java.util.ArrayList;
19 | import java.util.List;
20 |
21 | import org.eclipse.glsp.server.actions.Action;
22 |
23 | public class DeleteMarkersAction extends Action {
24 |
25 | public static final String KIND = "deleteMarkers";
26 |
27 | private List markers;
28 |
29 | public DeleteMarkersAction() {
30 | this(new ArrayList<>());
31 | }
32 |
33 | public DeleteMarkersAction(final List markers) {
34 | super(KIND);
35 | this.markers = markers;
36 | }
37 |
38 | public List getMarkers() { return markers; }
39 |
40 | public void setMarkers(final List markers) { this.markers = markers; }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/validation/MarkerKind.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2019 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.validation;
17 |
18 | /**
19 | * Defines kinds of model markers.
20 | *
21 | */
22 | public final class MarkerKind {
23 |
24 | /**
25 | * Declares markers providing some information about a model element.
26 | */
27 | public static final String INFO = "info";
28 | /**
29 | * Declares markers providing warnings about a model element.
30 | */
31 | public static final String WARNING = "warning";
32 | /**
33 | * Declares markers providing error information about a model element.
34 | */
35 | public static final String ERROR = "error";
36 |
37 | private MarkerKind() {
38 | // prevent instantiation for class only holding constants.
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/features/validation/MarkersReason.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2023 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.features.validation;
17 |
18 | /**
19 | * The default reasons for a request for markers.
20 | */
21 | public final class MarkersReason {
22 |
23 | /**
24 | * Batch validation executed on demand by the client.
25 | */
26 | public static final String BATCH = "batch";
27 | /**
28 | * Live validation executed on start and after model update.
29 | */
30 | public static final String LIVE = "live";
31 |
32 | private MarkersReason() {
33 | // prevent instantiation for class only holding constants.
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/internal/featues/navigation/DefaultNavigationTargetProviderRegistry.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.internal.featues.navigation;
17 |
18 | import java.util.Set;
19 |
20 | import org.eclipse.glsp.server.features.navigation.NavigationTargetProvider;
21 | import org.eclipse.glsp.server.features.navigation.NavigationTargetProviderRegistry;
22 | import org.eclipse.glsp.server.internal.registry.MapRegistry;
23 |
24 | import com.google.inject.Inject;
25 |
26 | public class DefaultNavigationTargetProviderRegistry extends MapRegistry
27 | implements NavigationTargetProviderRegistry {
28 |
29 | @Inject
30 | public DefaultNavigationTargetProviderRegistry(final Set navigationTargetProviders) {
31 | navigationTargetProviders.forEach(provider -> register(provider.getTargetTypeId(), provider));
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/internal/gmodel/commandstack/GModelCommandStack.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2019-2022 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.internal.gmodel.commandstack;
17 |
18 | import org.apache.logging.log4j.LogManager;
19 | import org.apache.logging.log4j.Logger;
20 | import org.eclipse.emf.common.command.BasicCommandStack;
21 |
22 | public class GModelCommandStack extends BasicCommandStack {
23 |
24 | protected static Logger LOGGER = LogManager.getLogger(GModelCommandStack.class);
25 |
26 | @Override
27 | protected void handleError(final Exception exception) {
28 | LOGGER.error("Error while executing command", exception);
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/layout/LayoutEngine.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.layout;
17 |
18 | /**
19 | * A layout engine is able to compute layout information for a model.
20 | */
21 | public interface LayoutEngine {
22 | /**
23 | * Compute a layout for the model state and modify the model accordingly.
24 | */
25 | void layout();
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/ChangeBoundsOperation.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import java.util.ArrayList;
19 | import java.util.List;
20 |
21 | import org.eclipse.glsp.server.types.ElementAndBounds;
22 |
23 | public class ChangeBoundsOperation extends Operation {
24 |
25 | public static final String KIND = "changeBounds";
26 |
27 | private List newBounds;
28 |
29 | public ChangeBoundsOperation() {
30 | this(new ArrayList<>());
31 | }
32 |
33 | public ChangeBoundsOperation(final List newBounds) {
34 | super(KIND);
35 | this.newBounds = newBounds;
36 | }
37 |
38 | public List getNewBounds() { return newBounds; }
39 |
40 | public void setNewBounds(final List newBounds) { this.newBounds = newBounds; }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/CompoundOperation.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import java.util.ArrayList;
19 | import java.util.List;
20 |
21 | public class CompoundOperation extends Operation {
22 |
23 | public static final String KIND = "compound";
24 |
25 | private List operationList;
26 |
27 | public CompoundOperation() {
28 | super(KIND);
29 | operationList = new ArrayList<>();
30 | }
31 |
32 | public List extends Operation> getOperationList() { return operationList; }
33 |
34 | public void setOperationList(final List operationList) { this.operationList = operationList; }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/CutOperation.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import org.eclipse.glsp.server.types.EditorContext;
19 |
20 | public class CutOperation extends Operation {
21 |
22 | public static final String KIND = "cut";
23 |
24 | private EditorContext editorContext;
25 |
26 | public CutOperation() {
27 | super(KIND);
28 | }
29 |
30 | public EditorContext getEditorContext() { return editorContext; }
31 |
32 | public void setEditorContext(final EditorContext editorContext) { this.editorContext = editorContext; }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/CutOperationHandler.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020-2023 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import org.eclipse.glsp.server.gmodel.GModelCutOperationHandler;
19 |
20 | /**
21 | * @deprecated Use {@link GModelCutOperationHandler} instead for GModel-based languages.
22 | */
23 | @Deprecated
24 | public class CutOperationHandler extends GModelCutOperationHandler {}
25 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/DeleteOperation.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import java.util.ArrayList;
19 | import java.util.List;
20 |
21 | public class DeleteOperation extends Operation {
22 |
23 | public static final String KIND = "deleteElement";
24 |
25 | private List elementIds;
26 |
27 | public DeleteOperation() {
28 | this(new ArrayList<>());
29 | }
30 |
31 | public DeleteOperation(final List elementIds) {
32 | super(KIND);
33 | this.elementIds = elementIds;
34 | }
35 |
36 | public List getElementIds() { return elementIds; }
37 |
38 | public void setElementIds(final List elementIds) { this.elementIds = elementIds; }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/GModelOperationHandler.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2023 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import java.util.Optional;
19 |
20 | import org.eclipse.emf.common.command.Command;
21 | import org.eclipse.glsp.server.internal.gmodel.commandstack.GModelRecordingCommand;
22 |
23 | public abstract class GModelOperationHandler extends BasicOperationHandler {
24 |
25 | protected Optional commandOf(final Runnable runnable) {
26 | return Optional.of(recordingCommand(runnable));
27 | }
28 |
29 | protected Command recordingCommand(final Runnable runnable) {
30 | return new GModelRecordingCommand(modelState.getRoot(), getLabel(), runnable);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/LayoutOperation.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2019-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import java.util.ArrayList;
19 | import java.util.List;
20 |
21 | public class LayoutOperation extends Operation {
22 |
23 | public static final String KIND = "layout";
24 |
25 | private List elementIds;
26 |
27 | public LayoutOperation() {
28 | this(new ArrayList<>());
29 | }
30 |
31 | public LayoutOperation(final List elementIds) {
32 | super(KIND);
33 | this.elementIds = elementIds;
34 | }
35 |
36 | public List getElementIds() { return elementIds; }
37 |
38 | public void setElementIds(final List elementIds) { this.elementIds = elementIds; }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/operations/PasteOperation.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2020-2021 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ******************************************************************************/
16 | package org.eclipse.glsp.server.operations;
17 |
18 | import java.util.Map;
19 |
20 | import org.eclipse.glsp.server.types.EditorContext;
21 |
22 | public class PasteOperation extends Operation {
23 |
24 | public static final String KIND = "paste";
25 |
26 | private Map clipboardData;
27 | private EditorContext editorContext;
28 |
29 | public PasteOperation() {
30 | super(KIND);
31 | }
32 |
33 | public Map getClipboardData() { return clipboardData; }
34 |
35 | public void setClipboardData(final Map clipboardData) { this.clipboardData = clipboardData; }
36 |
37 | public EditorContext getEditorContext() { return editorContext; }
38 |
39 | public void setEditorContext(final EditorContext editorContext) { this.editorContext = editorContext; }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/plugins/org.eclipse.glsp.server/src/org/eclipse/glsp/server/types/Severity.java:
--------------------------------------------------------------------------------
1 | /********************************************************************************
2 | * Copyright (c) 2020 EclipseSource and others.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v. 2.0 which is available at
6 | * https://www.eclipse.org/legal/epl-2.0.
7 | *
8 | * This Source Code may also be made available under the following Secondary
9 | * Licenses when the conditions for such availability set forth in the Eclipse
10 | * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11 | * with the GNU Classpath Exception which is available at
12 | * https://www.gnu.org/software/classpath/license.html.
13 | *
14 | * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 | ********************************************************************************/
16 | package org.eclipse.glsp.server.types;
17 |
18 | public enum Severity {
19 | FATAL,
20 | ERROR,
21 | WARNING,
22 | INFO,
23 | OK,
24 | NONE;
25 |
26 | public static String toString(final Severity severity) {
27 | return severity != null ? severity.toString() : null;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/releng/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | /workspace/
3 | /compositeRepository/
4 |
--------------------------------------------------------------------------------
/releng/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.eclipse.glsp.releng
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/releng/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/releng/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.feature/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | /bin/
3 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.feature/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.eclipse.glsp.feature
4 |
5 |
6 |
7 |
8 |
9 |
10 | org.eclipse.pde.FeatureBuilder
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Builder
16 |
17 |
18 |
19 |
20 |
21 | org.eclipse.m2e.core.maven2Nature
22 | org.eclipse.pde.FeatureNature
23 |
24 |
25 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.feature/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.feature/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.feature/build.properties:
--------------------------------------------------------------------------------
1 | bin.includes = feature.xml
2 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.feature/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 | org.eclipse.glsp.feature
4 |
5 | org.eclipse.glsp
6 | org.eclipse.glsp.releng
7 | 2.5.0-SNAPSHOT
8 | ../
9 |
10 | eclipse-feature
11 |
12 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.repository/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | /workspace/
3 | /bin/
4 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.repository/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.eclipse.glsp.repository
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.repository/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/releng/org.eclipse.glsp.repository/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/targetplatforms/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | /workspace/
3 | /bin/
4 |
--------------------------------------------------------------------------------
/targetplatforms/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | targetplatforms
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.xtext.ui.shared.xtextBuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.jdt.core.javabuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.m2e.core.maven2Builder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.jdt.core.javanature
26 | org.eclipse.m2e.core.maven2Nature
27 | org.eclipse.xtext.ui.shared.xtextNature
28 |
29 |
30 |
--------------------------------------------------------------------------------
/targetplatforms/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/targetplatforms/maven-dependencies.tpd:
--------------------------------------------------------------------------------
1 | target "Wrapper for maven dependencies"
2 |
3 |
4 | maven log4j scope=compile dependencyDepth=none missingManifest=generate {
5 | dependency {
6 | groupId="org.apache.logging.log4j"
7 | artifactId="log4j-slf4j2-impl"
8 | version="2.23.1"
9 | }
10 | dependency {
11 | groupId="org.apache.logging.log4j"
12 | artifactId="log4j-core"
13 | version="2.23.1"
14 | }
15 | dependency {
16 | groupId="org.apache.logging.log4j"
17 | artifactId="log4j-api"
18 | version="2.23.1"
19 | }
20 | dependency {
21 | groupId="org.apache.logging.log4j"
22 | artifactId="log4j-1.2-api"
23 | version="2.23.1"
24 | }
25 | dependency {
26 | groupId="org.apache.logging.log4j"
27 | artifactId="log4j-to-slf4j"
28 | version="2.23.1"
29 | }
30 | }
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/targetplatforms/r2023-12.tpd:
--------------------------------------------------------------------------------
1 |
2 | target "2023-12 - Minimum Baseline" with source requirements
3 | include "maven-dependencies.tpd"
4 |
5 | location "http://download.eclipse.org/releases/2023-12" {
6 | org.eclipse.emf.sdk.feature.group
7 | org.eclipse.lsp4j [0.21.1,1.0.0)
8 | org.eclipse.lsp4j.websocket.jakarta [0.21.1,1.0.0)
9 | org.apache.commons.cli [1.6.0,2.0.0)
10 | com.google.gson [2.10.1,3.0.0)
11 | }
12 |
13 | location "https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/2023-12" {
14 | org.junit [4.13.2,5.0.0)
15 | junit-jupiter-api [5.10.1,6.0.0)
16 | jakarta.inject.jakarta.inject-api [2.0.1,3.0.0)
17 | jakarta.servlet-api [4.0.0,5.0.0)
18 | jakarta.websocket-api
19 | }
20 |
21 | location "http://download.eclipse.org/elk/updates/releases/0.8.1/" {
22 | org.eclipse.elk.core lazy
23 | org.eclipse.elk.graph lazy
24 | org.eclipse.elk.graph.text lazy
25 | org.eclipse.elk.alg.layered lazy
26 | }
27 |
28 | location "https://download.eclipse.org/tools/orbit/simrel/maven-jetty/release/12.0.3" {
29 | org.eclipse.jetty.ee10.websocket.jakarta.server lazy
30 | org.eclipse.jetty.ee10.websocket.server lazy
31 | org.eclipse.jetty.websocket.api lazy
32 |
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/targetplatforms/r2024-09.tpd:
--------------------------------------------------------------------------------
1 |
2 | target "2024-09 - Default" with source requirements
3 | include "maven-dependencies.tpd"
4 |
5 | location "http://download.eclipse.org/releases/2024-09" {
6 | org.eclipse.emf.sdk.feature.group
7 | org.eclipse.lsp4j [0.23.0,1.0.0)
8 | org.eclipse.lsp4j.websocket.jakarta [0.23.0,1.0.0)
9 | org.apache.commons.cli [1.4.0,2.0.0)
10 | com.google.gson[2.8.7,3.0.0)
11 | }
12 |
13 | location "https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/2024-09" {
14 | org.junit [4.13.2,5.0.0)
15 | junit-jupiter-api [5.11.0,6.0.0)
16 | slf4j.api [2.0.16,3.0.0)
17 | jakarta.inject.jakarta.inject-api [2.0.1,3.0.0)
18 | }
19 |
20 | location "http://download.eclipse.org/elk/updates/releases/0.9.1/" {
21 | org.eclipse.elk.core
22 | org.eclipse.elk.graph
23 | org.eclipse.elk.graph.text
24 | org.eclipse.elk.alg.layered
25 | }
26 |
27 | location "https://download.eclipse.org/tools/orbit/simrel/maven-jetty/release/12.0.12" {
28 | org.eclipse.jetty.ee10.websocket.jakarta.server
29 | org.eclipse.jetty.ee10.websocket.server
30 | org.eclipse.jetty.websocket.api
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/tests/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.eclipse.glsp.tests
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/.checkstyle:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.eclipse.glsp.graph.test
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 | net.sf.eclipsecs.core.CheckstyleBuilder
25 |
26 |
27 |
28 |
29 | org.eclipse.m2e.core.maven2Builder
30 |
31 |
32 |
33 |
34 |
35 | org.eclipse.m2e.core.maven2Nature
36 | org.eclipse.pde.PluginNature
37 | org.eclipse.jdt.core.javanature
38 | net.sf.eclipsecs.core.CheckstyleNature
39 |
40 |
41 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/java-gen=UTF-8
4 | encoding//src/main/resources=UTF-8
5 | encoding//src/test/java=UTF-8
6 | encoding//src/test/resources=UTF-8
7 | encoding/=UTF-8
8 | encoding/src=UTF-8
9 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/.settings/org.eclipse.jdt.launching.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.launching.PREF_COMPILER_COMPLIANCE_DOES_NOT_MATCH_JRE=ignore
3 | org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=ignore
4 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: GLSP Graph Tests
4 | Bundle-SymbolicName: org.eclipse.glsp.graph.test
5 | Bundle-Version: 0.10.0.qualifier
6 | Fragment-Host: org.eclipse.glsp.graph;bundle-version="0.10.0.qualifier"
7 | Automatic-Module-Name: org.eclipse.glsp.graph.test
8 | Bundle-RequiredExecutionEnvironment: JavaSE-17
9 | Bundle-Vendor: Eclipse GLSP
10 | Export-Package: org.eclipse.glsp.graph,
11 | org.eclipse.glsp.graph.impl
12 | Import-Package: org.junit;version="4.12.0",
13 | org.junit.jupiter.api;version="5.0.0"
14 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/build.properties:
--------------------------------------------------------------------------------
1 | source.. = src/
2 | bin.includes = META-INF/,\
3 | .,\
4 | resources/
5 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/resources/graphEdgeBeforeSourceAndTarget.graph:
--------------------------------------------------------------------------------
1 | {
2 | "revision": 42,
3 | "type": "graph",
4 | "id": "graphId",
5 | "children": [
6 | {
7 | "id": "edge12",
8 | "type": "edge",
9 | "sourceId": "node1",
10 | "targetId": "node2"
11 | },
12 | {
13 | "id": "node1",
14 | "type": "node",
15 | "position": {
16 | "x": 10.0,
17 | "y": 20.0
18 | }
19 | },
20 | {
21 | "id": "node2",
22 | "type": "node",
23 | "position": {
24 | "x": 30.0,
25 | "y": 40.0
26 | }
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/resources/graphWithCustomTypeMap.graph:
--------------------------------------------------------------------------------
1 | {
2 | "revision": 42,
3 | "type": "mygraph",
4 | "id": "graphId",
5 | "children": [
6 | {
7 | "id": "node1",
8 | "type": "mynode",
9 | "position": {
10 | "x": 10.0,
11 | "y": 20.0
12 | }
13 | },
14 | {
15 | "id": "edge",
16 | "type": "myedge",
17 | "sourceId": "node1"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.graph.test/resources/graphWithTwoNodesAndOneEdge.graph:
--------------------------------------------------------------------------------
1 | {
2 | "revision": 42,
3 | "type": "graph",
4 | "id": "graphId",
5 | "children": [
6 | {
7 | "id": "node1",
8 | "type": "node",
9 | "position": {
10 | "x": 10.0,
11 | "y": 20.0
12 | }
13 | },
14 | {
15 | "id": "node2",
16 | "type": "node",
17 | "position": {
18 | "x": 30.0,
19 | "y": 40.0
20 | }
21 | },
22 | {
23 | "id": "edge12",
24 | "type": "edge",
25 | "sourceId": "node1",
26 | "targetId": "node2"
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/.checkstyle:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.eclipse.glsp.server.test
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 | net.sf.eclipsecs.core.CheckstyleBuilder
25 |
26 |
27 |
28 |
29 | org.eclipse.m2e.core.maven2Builder
30 |
31 |
32 |
33 |
34 |
35 | org.eclipse.m2e.core.maven2Nature
36 | org.eclipse.pde.PluginNature
37 | org.eclipse.jdt.core.javanature
38 | net.sf.eclipsecs.core.CheckstyleNature
39 |
40 |
41 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/java-gen=UTF-8
4 | encoding//src/main/resources=UTF-8
5 | encoding//src/test/java=UTF-8
6 | encoding//src/test/resources=UTF-8
7 | encoding/=UTF-8
8 | encoding/src=UTF-8
9 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/.settings/org.eclipse.jdt.launching.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.launching.PREF_COMPILER_COMPLIANCE_DOES_NOT_MATCH_JRE=ignore
3 | org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=ignore
4 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: GLSP Server Tests
4 | Bundle-SymbolicName: org.eclipse.glsp.server.test
5 | Bundle-Version: 0.8.0.qualifier
6 | Fragment-Host: org.eclipse.glsp.server;bundle-version="0.8.0"
7 | Automatic-Module-Name: org.eclipse.glsp.graph.test
8 | Bundle-RequiredExecutionEnvironment: JavaSE-17
9 | Bundle-Vendor: Eclipse GLSP
10 | Export-Package:
11 | org.eclipse.glsp.server.features.sourcemodelwatcher
12 | Import-Package: org.junit;version="4.12.0",
13 | org.junit.jupiter.api;version="5.0.0",
14 | org.junit.jupiter.api.function;version="5.0.0"
15 |
--------------------------------------------------------------------------------
/tests/org.eclipse.glsp.server.test/build.properties:
--------------------------------------------------------------------------------
1 | source.. = src/
2 | bin.includes = META-INF/,\
3 | .
4 |
--------------------------------------------------------------------------------
/tests/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | GLSP Server Tests
8 | org.eclipse.glsp.tests
9 | pom
10 | This module contains the tests for GLSP server modules.
11 |
12 |
13 | org.eclipse.glsp
14 | org.eclipse.glsp.parent
15 | 2.5.0-SNAPSHOT
16 | ../pom.xml
17 |
18 |
19 |
20 |
21 | m2
22 |
23 | false
24 |
25 |
26 | org.eclipse.glsp.server.test
27 | org.eclipse.glsp.graph.test
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------