-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[461506] Improve the Dot Color sub-grammar validation/content assistant.
- Modify the DotColorJavaValidator and the DotColorProposalProvider to consider the globally set colorscheme attribute value. - Modify the DotColorJavaValidator and the DotColorProposalProvider to treat the colorscheme attribute value case insensitively. - Move the Dot ast walking logic from the DotProposalProvider class into the DotAstHelper class. - Implement corresponding validation and content assistant test cases.
- Loading branch information
Showing
9 changed files
with
425 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2017 itemis AG and others. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Tamas Miklossy (itemis AG) - Initial text | ||
* | ||
*******************************************************************************/ | ||
|
||
// Sample graph from | ||
// https://github.com/ellson/graphviz/blob/master/rtest/graphs/colorscheme.gv | ||
|
||
digraph G { | ||
|
||
node [shape=box, style=filled] | ||
|
||
subgraph { | ||
node [colorscheme=spectral11] | ||
1 [color=1] | ||
4 [color=4] | ||
8 [color=8] | ||
11 [color="//11"] | ||
} | ||
|
||
ylgn7 [color="/ylgn7/5"] | ||
X11 [color="/X11/thistle"] | ||
indigo [color="/X11/indigo"] | ||
magenta [color="magenta"] | ||
} |
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
Oops, something went wrong.