Package org.eclipse.mylyn.tasks.ui.editors

Examples of org.eclipse.mylyn.tasks.ui.editors.LayoutHint


 
  private final TaskDataModelListener modelListener;
 
  public DurationEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
    super(manager, taskAttribute);
    setLayoutHint(new LayoutHint(RowSpan.SINGLE, ColumnSpan.SINGLE));
   
    modelListener = new TaskDataModelListener() {
      @Override
      public void attributeChanged(TaskDataModelEvent event) {
        if(event.getTaskAttribute().getId().equals(getTaskAttribute().getId())) {
View Full Code Here


 
  private final TaskDataModelListener modelListener;
 
  public EstimatedEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
    super(manager, taskAttribute);
    setLayoutHint(new LayoutHint(RowSpan.SINGLE, ColumnSpan.SINGLE));
   
    modelListener = new TaskDataModelListener() {
      @Override
      public void attributeChanged(TaskDataModelEvent event) {
        if(event.getTaskAttribute().getId().equals(getTaskAttribute().getId())) {
View Full Code Here

  protected RedminePersonProposalProvider contentProposalProvider;
//  private final TaskDataModelListener modelListener;

  public RedminePersonEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
    super(manager, taskAttribute);
    setLayoutHint(new LayoutHint(RowSpan.SINGLE, ColumnSpan.SINGLE));

//    modelListener = new TaskDataModelListener() {
//      @Override
//      public void attributeChanged(TaskDataModelEvent event) {
//        if(event.getTaskAttribute().getId().equals(getTaskAttribute().getId())) {
View Full Code Here

  Color addMarkerColor;
  Color defaultColor;
 
  public RedmineWatchersEditor(Configuration configuration, TaskDataModel manager, TaskAttribute taskAttribute) {
    super(manager, taskAttribute);
    setLayoutHint(new LayoutHint(RowSpan.MULTIPLE, ColumnSpan.SINGLE));

    this.users = configuration.getUsers();
   
  }
View Full Code Here

          editor = new EstimatedEditor(getModel(), taskAttribute);
        } else if(IRedmineConstants.EDITOR_TYPE_DURATION.equals(type)) {
          editor = new DurationEditor(getModel(), taskAttribute);
        } else if(IRedmineConstants.EDITOR_TYPE_PARENTTASK.equals(type)) {
          editor = super.createEditor(TaskAttribute.TYPE_TASK_DEPENDENCY, taskAttribute);
          editor.setLayoutHint(new LayoutHint(RowSpan.SINGLE, ColumnSpan.SINGLE));
        } else if(IRedmineConstants.EDITOR_TYPE_WATCHERS.equals(type)) {
          editor = new RedmineWatchersEditor(cfg, getModel(), taskAttribute);
        } else if(IRedmineConstants.EDITOR_TYPE_PERSON.equals(type)) {
          editor = new RedminePersonEditor(getModel(), taskAttribute);
        } else {
View Full Code Here

        }
        currentColumn = 0;
      }
    }
   
    LayoutHint layoutHint = editor.getLayoutHint();
    boolean isMultiRowEditor = layoutHint!=null && layoutHint.rowSpan==RowSpan.MULTIPLE;
   
    Label label = editor.getLabelControl();
    GridData labelGridData = GridDataFactory.fillDefaults()
        .align(SWT.LEFT, isMultiRowEditor ? SWT.TOP : SWT.CENTER)
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.tasks.ui.editors.LayoutHint

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.