My favorites | Sign in
Project Home Downloads Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright (c) 2012 Google Inc.
*
* 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
*/
package com.google.eclipse.xtext.filename.resource;

import static com.google.eclipse.xtext.filename.resource.URIs.isMyDslFile;

import org.eclipse.emf.common.util.URI;
import org.eclipse.xtext.resource.impl.DefaultResourceServiceProvider;

/**
* Class that provides services (e.g. validation, content description, encoding) to "MyDsl" files.
*
* @see org.eclipse.xtext.resource.IResourceServiceProvider
*
* @author alruiz@google.com (Alex Ruiz)
*/
public class MyDslResourceServiceProvider extends DefaultResourceServiceProvider {

/**
* Indicates that this service provider can only handle URIs that refers to a "MyDsl" file.
* @param uri the URI to check. It may be {@code null}.
* @return {@code true} if the given URI refers to a "MyDsl" file; {@code false} otherwise.
*/
@Override public boolean canHandle(URI uri) {
return isMyDslFile(uri);
}
}

Change log

ba3910eee250 by Alex Ruiz <alr...@google.com> on Jan 10, 2012   Diff
Formatting.
Go to: 
Project members, sign in to write a code review

Older revisions

46a03995f280 by Alex Ruiz <alr...@google.com> on Jan 7, 2012   Diff
Initial upload.
All revisions of this file

File info

Size: 1170 bytes, 33 lines
Powered by Google Project Hosting