Examples of DataContext


Examples of com.google.clearsilver.jsilver.data.DataContext

  }

  @Override
  public RenderingContext createRenderingContext(Data data, Appendable out,
      ResourceLoader resourceLoader) {
    DataContext dataContext = new DefaultDataContext(data);
    return new DefaultRenderingContext(dataContext, resourceLoader, out, functionExecutor,
        autoEscapeOptions);
  }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext

    public void update(final AnActionEvent pEvent) {
        super.update(pEvent);
    }

    protected VirtualFile getVirtualFile(final AnActionEvent pEvent) {
        final DataContext dc = pEvent.getDataContext();
        return (VirtualFile) dc.getData(DataConstants.VIRTUAL_FILE);
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext

    public void update(final AnActionEvent pEvent) {
        super.update(pEvent);
    }

    protected VirtualFile getVirtualFile(final AnActionEvent pEvent) {
        final DataContext dc = pEvent.getDataContext();
        return (VirtualFile) dc.getData(DataConstants.VIRTUAL_FILE);
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext

    return false;
  }

  protected void scrollToSource(Component tree)
  {
    DataContext dataContext = DataManager.getInstance().getDataContext(tree);
    final VirtualFile vFile = PlatformDataKeys.VIRTUAL_FILE.getData(dataContext);
    if (vFile != null)
    {
      // Attempt to navigate to the virtual file with unknown file type will show a modal dialog
      // asking to register some file type for this file. This behaviour is undesirable when autoscrolling.
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext

    super.submitAsync(events, additionalInfo, parentComponent, consumer);
  }

  private SubmittedReportInfo submit(IdeaLoggingEvent[] ideaLoggingEvents, String description, String user,
                                     Component component) {
    final DataContext dataContext = DataManager.getInstance().getDataContext(component);
    final Project project = PlatformDataKeys.PROJECT.getData(dataContext);
    final IdeaLoggingEvent ideaLoggingEvent = ideaLoggingEvents[0];
    final String throwableText = ideaLoggingEvent.getThrowableText();
    this.myDescription = throwableText.substring(0, Math.min(Math.max(80, throwableText.length()), 80));
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext

        return "Submit Issue Report";
    }

    @Override
    public SubmittedReportInfo submit(IdeaLoggingEvent[] events, Component parentComponent) {
        DataContext dataContext = DataManager.getInstance().getDataContext(parentComponent);
        Project project = PlatformDataKeys.PROJECT.getData(dataContext);

        String localPluginVersion = getPluginDescriptor().getVersion();
        String repositoryPluginVersion = DatabaseNavigator.getInstance().getRepositoryPluginVersion();
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext


  @Override
  public void update(final AnActionEvent event) {
    try {
      final DataContext dataContext = event.getDataContext();
      final Project project = DataKeys.PROJECT.getData(dataContext);
      final Presentation presentation = event.getPresentation();

      if (isProjectNotLoaded(project, presentation)) {
        return;
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext


  @Override
  public void update(final AnActionEvent event) {
    try {
      final DataContext dataContext = event.getDataContext();
      final Project project = DataKeys.PROJECT.getData(dataContext);
      final Presentation presentation = event.getPresentation();

      if (isProjectNotLoaded(project, presentation)) {
        return;
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext


  @Override
  public final void update(final AnActionEvent event) {
    try {
      final DataContext dataContext = event.getDataContext();
      final Project project = DataKeys.PROJECT.getData(dataContext);
      final Presentation presentation = event.getPresentation();

      if (isProjectLoaded(project, presentation)) {
        return;
View Full Code Here

Examples of com.intellij.openapi.actionSystem.DataContext

  private static final Logger LOGGER = Logger.getInstance(BaseAction.class.getName());

  @Override
  public void actionPerformed(final AnActionEvent e) {
    final DataContext dataContext = e.getDataContext();
    final Project project = e.getData(PlatformDataKeys.PROJECT);
    final Module module = e.getData(LangDataKeys.MODULE);
    if (project == null) {
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.