-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved expression handling and more
* handle global title in label provider * improved expression validation * no error for optional pilot episode * follow up news variable validation * validation support for global variables * support betty love modifier * validation function dot missing and <all> is first language
- Loading branch information
Showing
12 changed files
with
334 additions
and
32 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
19 changes: 19 additions & 0 deletions
19
org.tvtower.db/src/org/tvtower/db/scoping/DatabaseLinkingDiagnosticMessageProvider.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,19 @@ | ||
package org.tvtower.db.scoping; | ||
|
||
import org.eclipse.xtext.diagnostics.DiagnosticMessage; | ||
import org.eclipse.xtext.linking.impl.LinkingDiagnosticMessageProvider; | ||
import org.tvtower.db.database.Effect; | ||
|
||
public class DatabaseLinkingDiagnosticMessageProvider extends LinkingDiagnosticMessageProvider { | ||
|
||
@Override | ||
public DiagnosticMessage getUnresolvedProxyMessage(ILinkingDiagnosticContext context) { | ||
// do not try to resolve variables within effects | ||
if (context.getContext() instanceof Effect) { | ||
if (context.getLinkText() != null && context.getLinkText().matches("\\$\\{\\w+\\}")) { | ||
return null; | ||
} | ||
} | ||
return super.getUnresolvedProxyMessage(context); | ||
} | ||
} |
Oops, something went wrong.