Examples of LayoutHint


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

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

 
  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

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

  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

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

  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

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

          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

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

        }
        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

Examples of org.terasology.rendering.nui.LayoutHint

                        ReflectionUtil.getTypeParameter(elementMetadata.getType().getGenericSuperclass(), 0);
                if (jsonObject.has(CONTENTS_FIELD)) {
                    for (JsonElement child : jsonObject.getAsJsonArray(CONTENTS_FIELD)) {
                        UIWidget childElement = context.deserialize(child, UIWidget.class);
                        if (childElement != null) {
                            LayoutHint hint = null;
                            if (child.isJsonObject()) {
                                JsonObject childObject = child.getAsJsonObject();
                                if (layoutHintType != null && !layoutHintType.isInterface() && !Modifier.isAbstract(layoutHintType.getModifiers())
                                        && childObject.has(LAYOUT_INFO_FIELD)) {
                                    hint = context.deserialize(childObject.get(LAYOUT_INFO_FIELD), layoutHintType);
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.