@Override
 protected void addActionButtons(Composite buttonComposite) {
   FormToolkit toolkit = new FormToolkit(buttonComposite.getDisplay());
   submitButton = toolkit.createButton(buttonComposite, LABEL_SUMBIT, SWT.NONE);
   GridData submitButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
   submitButtonData.widthHint = 100;
   submitButton.setImage(CommonImages.getImage(TasksUiImages.REPOSITORY_SUBMIT));
   submitButton.setLayoutData(submitButtonData);
   submitButton.addListener(
       SWT.Selection,
       new Listener() {
         public void handleEvent(Event e) {
           submitToRepository();
         }
       });
   submitButton.setToolTipText("Submit to " + this.repository.getRepositoryUrl());
 }
  protected void createPlanningLayout(Composite comp) {
    Section section = createSection(comp, "Personal Planning");
    section.setLayout(new GridLayout());
    section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    section.setExpanded(true);

    Composite sectionClient = getManagedForm().getToolkit().createComposite(section);
    section.setClient(sectionClient);
    GridLayout layout = new GridLayout();
    layout.numColumns = 7;
    layout.makeColumnsEqualWidth = false;
    sectionClient.setLayout(layout);
    GridData clientDataLayout = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
    sectionClient.setLayoutData(clientDataLayout);

    // Scheduled date
    getManagedForm().getToolkit().createLabel(sectionClient, "Scheduled for:");
    // label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
    scheduledForDate = new ScheduleDatePicker(sectionClient, null, SWT.FLAT);
    scheduledForDate.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));
    scheduledForDate.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    //		Calendar newTaskSchedule = TaskActivityUtil.getCalendar();
    //		int scheduledEndHour = TasksUiPlugin.getDefault().getPreferenceStore().getInt(
    //				TasksUiPreferenceConstants.PLANNING_ENDHOUR);
    // If past scheduledEndHour set for following day
    //		if (newTaskSchedule.get(Calendar.HOUR_OF_DAY) >= scheduledEndHour) {
    //			TaskActivityUtil.snapForwardNumDays(newTaskSchedule, 1);
    //		} else {
    //			TaskActivityUtil.snapEndOfWorkDay(newTaskSchedule);
    //		}
    //		scheduledForDate.setDate(newTaskSchedule);
    //		Button removeReminder = getManagedForm().getToolkit().createButton(sectionClient, "Clear",
    //				SWT.PUSH | SWT.CENTER);
    //		removeReminder.addSelectionListener(new SelectionAdapter() {
    //			@Override
    //			public void widgetSelected(SelectionEvent e) {
    //				scheduledForDate.setDate(null);
    //			}
    //		});

    ImageHyperlink clearReminder =
        getManagedForm().getToolkit().createImageHyperlink(sectionClient, SWT.NONE);
    clearReminder.setImage(CommonImages.getImage(CommonImages.REMOVE));
    clearReminder.setToolTipText("Clear");
    clearReminder.addHyperlinkListener(
        new HyperlinkAdapter() {
          @Override
          public void linkActivated(HyperlinkEvent e) {
            scheduledForDate.setScheduledDate(null);
          }
        });

    // 1 Blank column after Reminder clear button
    Label dummy = getManagedForm().getToolkit().createLabel(sectionClient, "");
    GridData dummyLabelDataLayout = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);
    dummyLabelDataLayout.horizontalSpan = 1;
    dummyLabelDataLayout.widthHint = 30;
    dummy.setLayoutData(dummyLabelDataLayout);

    // Estimated time
    getManagedForm().getToolkit().createLabel(sectionClient, "Estimated hours:");
    // label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
    // estimatedTime = new Spinner(sectionClient, SWT.FLAT);
    estimatedTime = new Spinner(sectionClient, SWT.FLAT);
    estimatedTime.setDigits(0);
    estimatedTime.setMaximum(100);
    estimatedTime.setMinimum(0);
    estimatedTime.setIncrement(1);
    estimatedTime.setSelection(DEFAULT_ESTIMATED_TIME);
    estimatedTime.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    GridData estimatedDataLayout = new GridData();
    estimatedDataLayout.widthHint = 30;
    estimatedTime.setLayoutData(estimatedDataLayout);
    // getManagedForm().getToolkit().createLabel(sectionClient, "hours ");
    // label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));

    ImageHyperlink clearEstimated =
        getManagedForm().getToolkit().createImageHyperlink(sectionClient, SWT.NONE);
    clearEstimated.setImage(CommonImages.getImage(CommonImages.REMOVE));
    clearEstimated.setToolTipText("Clear");
    clearEstimated.addHyperlinkListener(
        new HyperlinkAdapter() {
          @Override
          public void linkActivated(HyperlinkEvent e) {
            estimatedTime.setSelection(0);
          }
        });

    getManagedForm().getToolkit().paintBordersFor(sectionClient);
  }
 @Override
 public Image getPageImage() {
   return CommonImages.getImage(TasksUiImages.REPOSITORY_SMALL);
 }