Skip to content

Commit

Permalink
Examples: Export into binary, check for null when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
kasemir committed May 10, 2016
1 parent 18f05b7 commit 99581f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -8,6 +8,7 @@
package org.csstudio.display.builder.examples;

import java.net.URL;
import java.util.Objects;

import org.csstudio.display.builder.model.ModelPlugin;
import org.csstudio.examples.SampleSet;
Expand All @@ -17,12 +18,13 @@
/** Example support for installing the model's examples
* @author Kay Kasemir
*/
@SuppressWarnings("nls")
public class Examples implements SampleSet
{
@Override
public URL getDirectoryURL()
{
final Bundle bundle = Platform.getBundle(ModelPlugin.ID);
return bundle.getEntry("/examples");
return Objects.requireNonNull(bundle.getEntry("/examples"), "Cannot locate examples");
}
}
3 changes: 2 additions & 1 deletion org.csstudio.display.builder.model/build.properties
Expand Up @@ -6,4 +6,5 @@ bin.includes = META-INF/,\
plugin.xml,\
schema/,\
plugin.properties,\
preferences.ini
preferences.ini,\
examples/

0 comments on commit 99581f5

Please sign in to comment.