Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-7862

ImageView/InstanceView: need to resize combo to proper size if cloud gets renamed

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Out of Date
    • Affects Version/s: 3.2.0.CR1, 3.2.1.M1, 3.3.0.M1
    • Fix Version/s: 3.3.x
    • Component/s: deltacloud
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1) make sure you have at least 2 clouds available. You need a cloud with a long label and one with a short label (ex. "aaaaaaaaaaaaaaaaaaaaaaa" and "b")
      2) go to cloud view, select the cloud with the short label and choose "Edit Connection" from the context menu
      3) in the wizard: change the name of the cloud to a name that's much longer than name of the other cloud
      4) hit finish
      5) The combo in the image view was resized to the space that is needed to display the full label
      6) now rename it back to a very short name (that is shorter than the other, very long cloud name)
      7) check the size of the combo in the image view

      Result:
      The combo did not shrink again, it still uses the full space that was used to display the long label

      Expected result:
      The combo resized to the space needed to show the whole name

      Show
      1) make sure you have at least 2 clouds available. You need a cloud with a long label and one with a short label (ex. "aaaaaaaaaaaaaaaaaaaaaaa" and "b") 2) go to cloud view, select the cloud with the short label and choose "Edit Connection" from the context menu 3) in the wizard: change the name of the cloud to a name that's much longer than name of the other cloud 4) hit finish 5) The combo in the image view was resized to the space that is needed to display the full label 6) now rename it back to a very short name (that is shorter than the other, very long cloud name) 7) check the size of the combo in the image view Result: The combo did not shrink again, it still uses the full space that was used to display the long label Expected result: The combo resized to the space needed to show the whole name

      Gliffy Diagrams

        Issue Links

          Activity

          Hide
          adietish Andre Dietisheim added a comment -

          Assuming that you have 2 entries:

          • a
          • aaaaaaaa

          the combo will use the space needed to display the largest entry which is aaaaaaaa in the current case. It does not matter which one of both is currently selected, it will always resize to the size needed to display it's largest entry. IMHO it makes no sense to resize the combo to the size of the current entry. This is currently not supported by SWT and I would have to hack around it by temporarly removing all but the selected entry.

          Show
          adietish Andre Dietisheim added a comment - Assuming that you have 2 entries: a aaaaaaaa the combo will use the space needed to display the largest entry which is aaaaaaaa in the current case. It does not matter which one of both is currently selected, it will always resize to the size needed to display it's largest entry. IMHO it makes no sense to resize the combo to the size of the current entry. This is currently not supported by SWT and I would have to hack around it by temporarly removing all but the selected entry.
          Hide
          adietish Andre Dietisheim added a comment -

          moving this issue to 3.2.x and 3.3.x since this is not a critical fix.

          Show
          adietish Andre Dietisheim added a comment - moving this issue to 3.2.x and 3.3.x since this is not a critical fix.
          Hide
          lzoubek Libor Zoubek added a comment -

          I think shrinking the combo is not crucial and I'm fine with it (to stay as wide as largest connection name), I was only following steps above.

          Show
          lzoubek Libor Zoubek added a comment - I think shrinking the combo is not crucial and I'm fine with it (to stay as wide as largest connection name), I was only following steps above.
          Hide
          adietish Andre Dietisheim added a comment -

          you are right in the sense that the issue unfortunately is still present

          Show
          adietish Andre Dietisheim added a comment - you are right in the sense that the issue unfortunately is still present
          Hide
          adietish Andre Dietisheim added a comment -

          we're not developing Deltacloud any longer. See JBIDE-12458

          Show
          adietish Andre Dietisheim added a comment - we're not developing Deltacloud any longer. See JBIDE-12458

            People

            • Assignee:
              adietish Andre Dietisheim
              Reporter:
              adietish Andre Dietisheim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development