Exemple #1
0
  /* (non-Javadoc)
   * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
   */
  public void createControl(Composite parent) {
    Font font = parent.getFont();
    GridData data = new GridData(GridData.FILL_BOTH);

    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout());
    composite.setLayoutData(data);
    composite.setFont(font);

    pageBook = new PageBook(composite, SWT.NONE);
    pageBook.setLayoutData(new GridData(GridData.FILL_BOTH));
    pageBook.setFont(font);

    input = createCompareInput();
    input.createPartControl(pageBook);
    compareView = input.getControl();
    compareView.setFont(font);
    compareView.setLayoutData(data);

    noneChangeMessage = new Label(pageBook, SWT.WRAP);
    noneChangeMessage.setText(Messages.getString("ProjectComparePage.1")); // $NON-NLS-1$
    noneChangeMessage.setLayoutData(data);
    noneChangeMessage.setFont(font);

    buildNotesButton = new Button(composite, SWT.CHECK);
    buildNotesButton.setText(Messages.getString("ProjectComparePage.2")); // $NON-NLS-1$
    buildNotesButton.setFont(font);
    buildNotesButton.addSelectionListener(
        new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            buildNotesButtonChecked = buildNotesButton.getSelection();
          }
        });

    initialize();
    setControl(composite);
  }
Exemple #2
0
 /** Return the list of projects that are out-of-sync */
 public IResource[] getOutOfSyncProjects(
     IProject[] projects, CVSTag[] tags, IProgressMonitor monitor) throws TeamException {
   CompareParticipant participant = (CompareParticipant) input.getParticipant();
   CVSCompareSubscriber subscriber = (CVSCompareSubscriber) participant.getSubscriber();
   subscriber.resetRoots(projects, tags);
   try {
     subscriber.primeRemoteTree();
   } catch (CVSException e) {
     // Log and ignore
     RelEngPlugin.log(e);
   }
   participant.refreshNow(projects, "", monitor);
   IResource[] r = participant.getSyncInfoSet().members(ResourcesPlugin.getWorkspace().getRoot());
   syncInfoSet = participant.getSyncInfoSet();
   return r;
 }
Exemple #3
0
 /* (non-Javadoc)
  * @see org.eclipse.jface.dialogs.IDialogPage#dispose()
  */
 public void dispose() {
   super.dispose();
   input.getParticipant().dispose();
   input.dispose();
 }