Skip to content

Instantly share code, notes, and snippets.

@simonbrandhof
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save simonbrandhof/9793395 to your computer and use it in GitHub Desktop.

Select an option

Save simonbrandhof/9793395 to your computer and use it in GitHub Desktop.
Sample of tab
@NavigationSection(NavigationSection.RESOURCE_TAB)
@ResourceQualifier({Qualifiers.FILE})
@RequiredMeasures(anyOf = {"a_metric"})
@UserRole(UserRole.USER)
public class FooPage extends AbstractRubyTemplate implements RubyRailsWidget {
protected String getTemplatePath() {
return "/myplugin/my_template.erb";
}
@Override
public String getId() {
return "foo";
}
@Override
public String getTitle() {
return "Foo";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment