Package com.mountainminds.eclemma.core

Examples of com.mountainminds.eclemma.core.ISessionManager


*/
public class SelectActiveSessionsItems extends ContributionItem {

  @Override
  public void fill(final Menu menu, final int index) {
    final ISessionManager sm = CoverageTools.getSessionManager();
    final ICoverageSession activeSession = sm.getActiveSession();
    int idx = 0;
    for (ICoverageSession session : sm.getSessions()) {
      createItem(menu, session, session == activeSession, ++idx, sm);
    }
  }
View Full Code Here


    return sessionManager.getSessions().size() > 1;
  }

  public Object execute(ExecutionEvent event) throws ExecutionException {
    final Shell parentShell = HandlerUtil.getActiveShell(event);
    final ISessionManager sm = CoverageTools.getSessionManager();
    List<ICoverageSession> sessions = sm.getSessions();
    String descr = UIMessages.MergeSessionsDialogDescriptionDefault_value;
    descr = MessageFormat.format(descr, new Object[] { new Date() });
    final MergeSessionsDialog d = new MergeSessionsDialog(parentShell,
        sessions, descr);
    if (d.open() == IDialogConstants.OK_ID) {
View Full Code Here

    return true;
  }

  @Override
  public void fill(final Menu menu, int index) {
    final ISessionManager sm = CoverageTools.getSessionManager();
    final ICoverageSession activeSession = sm.getActiveSession();
    int position = 1;
    for (ICoverageSession session : sm.getSessions()) {
      createItem(menu, index++, session, session == activeSession, position++,
          sm);
    }
  }
View Full Code Here

    return sessionManager.getSessions().size() > 1;
  }

  public Object execute(ExecutionEvent event) throws ExecutionException {
    final Shell parentShell = HandlerUtil.getActiveShell(event);
    final ISessionManager sm = CoverageTools.getSessionManager();
    List<ICoverageSession> sessions = sm.getSessions();
    String descr = UIMessages.MergeSessionsDialogDescriptionDefault_value;
    descr = MessageFormat.format(descr, new Object[] { new Date() });
    final MergeSessionsDialog d = new MergeSessionsDialog(parentShell,
        sessions, descr);
    if (d.open() == IDialogConstants.OK_ID) {
View Full Code Here

    return true;
  }

  @Override
  public void fill(final Menu menu, int index) {
    final ISessionManager sm = CoverageTools.getSessionManager();
    final ICoverageSession activeSession = sm.getActiveSession();
    int position = 1;
    for (ICoverageSession session : sm.getSessions()) {
      createItem(menu, index++, session, session == activeSession, position++,
          sm);
    }
  }
View Full Code Here

TOP

Related Classes of com.mountainminds.eclemma.core.ISessionManager

Copyright © 2018 www.massapicom. 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.