-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] Add styled string support in the explorer for Papaya models
Signed-off-by: Stéphane Bégaudeau <[email protected]>
- Loading branch information
1 parent
6003599
commit f851b2f
Showing
11 changed files
with
214 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ain/java/org/eclipse/sirius/components/papaya/provider/spec/PapayaStyledStringStyles.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Obeo. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.sirius.components.papaya.provider.spec; | ||
|
||
import org.eclipse.emf.common.util.URI; | ||
import org.eclipse.emf.edit.provider.StyledString; | ||
|
||
/** | ||
* Used to contain the various styles of StyledString used in Papaya. | ||
* | ||
* @author sbegaudeau | ||
*/ | ||
public final class PapayaStyledStringStyles { | ||
public static final StyledString.Style DECORATOR_STYLE = StyledString.Style.newBuilder() | ||
.setForegroundColor(URI.createURI("color://rgb/120/120/120")) | ||
.toStyle(); | ||
|
||
public static final StyledString.Style TYPE_STYLE = StyledString.Style.newBuilder() | ||
.setForegroundColor(URI.createURI("color://rgb/40/77/181")) | ||
.toStyle(); | ||
|
||
public static final StyledString.Style GENERIC_TYPE_STYLE = StyledString.Style.newBuilder() | ||
.setForegroundColor(URI.createURI("color://rgb/40/100/120")) | ||
.toStyle(); | ||
|
||
private PapayaStyledStringStyles() { | ||
// Prevent instantiation | ||
} | ||
} |
Oops, something went wrong.