Examples of Presentation


Examples of com.intellij.openapi.actionSystem.Presentation

  @SuppressWarnings({"AssignmentToStaticFieldFromInstanceMethod"})
  @Override
  public void actionPerformed(final AnActionEvent e) {
    final Project project = IdeaUtilImpl.getProject(e.getDataContext());
    assert project != null;
    final Presentation presentation = e.getPresentation();

    // check a project is loaded
    if (isProjectNotLoaded(project, presentation)) {
      Messages.showWarningDialog("Project not loaded.", "FindBugs");
      return;
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

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

      // check a project is loaded
      if (isProjectNotLoaded(project, presentation)) {
        return;
      }

      isPluginAccessible(project);

      // check if tool window is registered
      final ToolWindow toolWindow = isToolWindowRegistered(project);
      if (toolWindow == null) {
        presentation.setEnabled(false);
        presentation.setVisible(false);

        return;
      }

      registerEventListener(project);

      if (!_running) {
        _enabled = _importBugCollection == null;
      }

      presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
      presentation.setVisible(true);

    } catch (final Throwable e) {
      final FindBugsPluginException processed = FindBugsPluginImpl.processError("Action update failed", e);
      LOGGER.error("Action update failed", processed);
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

    _actionEvent = e;
    _dataContext = e.getDataContext();

    final com.intellij.openapi.project.Project project = DataKeys.PROJECT.getData(_dataContext);
    assert project != null;
    final Presentation presentation = e.getPresentation();


    //final int caretOffset = editor.getCaretModel().getOffset();
    //psiFile.findElementAt(caretOffset);
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.presentation.Presentation

      return true;
    return false;
 
 
  public static EntityBlock getParentReferenceSymbols(Model model, Table table) {
    Presentation presentation = model.getConfiguration().getPresentation();
    for (Iterator iter = presentation.getPresentationBlocks().iterator(); iter.hasNext();) {
      for (Iterator iter2 = ((PresentationBlock)iter.next()).getEntityBlockss().iterator(); iter2.hasNext();)
        for (Iterator iter3 = ((EntityBlocks)iter2.next()).getEntityBlocks().iterator(); iter3.hasNext();) {
          EntityBlock entityBlock = (EntityBlock)iter3.next();
          if (entityBlock.getType()!= null && entityBlock.getName()!= null
            &&  entityBlock.getType().equals("entity-block-parent-reference")
View Full Code Here

Examples of net.sf.minuteProject.loader.presentation.Presentation

    target = populateTarget(initTarget);
    loadTarget(initholder.getConfiguration(), target)
  }
 
  private void loadPresentationDefinition(String dir, String filename) throws Exception {
      Presentation loader = new Presentation(dir, filename);
    presentationholder = loader.load();   
  }
View Full Code Here

Examples of net.sf.mp.demo.conference.domain.conference.Presentation

      return referPresentationUseCache (presentation, false);
   }
         
   public Presentation referPresentationUseCache (Presentation presentation, boolean isAssign) {
    String key = getCacheKey(null, presentation, null, "assignPresentation");
      Presentation presentationCache = (Presentation)simpleCache.get(key);
      if (presentationCache==null) {
         presentationCache = referPresentation (presentation, isAssign);
         if (key!=null)
           simpleCache.put(key, presentationCache);
      }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.staging.StagingView.Presentation

        return getTreePresentationRoots();
    }
  }

  Object[] getTreePresentationRoots() {
    Presentation presentation = stagingView.getPresentation();
    switch (presentation) {
    case COMPACT_TREE:
      return getCompactTreeRoots();
    case TREE:
      return getTreeRoots();
View Full Code Here

Examples of org.eclipse.sapphire.ui.Presentation

       
        final Composite innerComposite = new Composite( composite, SWT.NONE );
        innerComposite.setLayout( glayout( 2, 0, 0 ) );
        innerComposite.setLayoutData( gdfill() );
       
        final Presentation presentation = this.part.createPresentation( null, innerComposite );
       
        presentation.render();
       
        final String initialFocusProperty = this.part.definition().getInitialFocus().content();
       
        if( initialFocusProperty != null )
        {
            this.part.setFocus( initialFocusProperty );
        }
       
        shell.addDisposeListener
        (
            new DisposeListener()
            {
                public void widgetDisposed( final DisposeEvent event )
                {
                    presentation.dispose();
                   
                    SapphireDialog.this.element = null;
                   
                    SapphireDialog.this.part.dispose();
                    SapphireDialog.this.part = null;
View Full Code Here

Examples of org.pptx4j.pml.Presentation

   * @since 2.7
   */ 
  public static Presentation createJaxbPresentationElement(SlideSizesWellKnown sz, boolean landscape) throws JAXBException {

    ObjectFactory factory = Context.getpmlObjectFactory();
    Presentation presentation = factory.createPresentation();

    // Create empty lists
    Presentation.SldMasterIdLst masterIds = factory.createPresentationSldMasterIdLst();
    Presentation.SldIdLst slideIds = factory.createPresentationSldIdLst();   
    presentation.setSldMasterIdLst(masterIds);
    presentation.setSldIdLst(slideIds);
   
    presentation.setNotesSz(
        (CTPositiveSize2D)XmlUtils.unmarshalString(DEFAULT_NOTES_SIZE, Context.jcPML, CTPositiveSize2D.class) );
   
    if (sz==null) {
      presentation.setSldSz(
          (Presentation.SldSz)XmlUtils.unmarshalString(DEFAULT_SLIDE_SIZE, Context.jcPML, Presentation.SldSz.class));
    } else {
      presentation.setSldSzMainPresentationPart.createSlideSize(sz, landscape) );   
    }
    return presentation;
  }
View Full Code Here

Examples of ru.yandex.strictweb.ajaxtools.presentation.Presentation

    protected Presentation getPresentation(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException {
    request.setCharacterEncoding("UTF-8");
    String view = request.getParameter("view");
   
    Presentation p = null;
    if(view != null) {
      if(view.equals("xml")) {
        response.setContentType("application/xml");
        p = new XmlPresentation();
      }else if(view.equals("jsonparanoid")) {
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.