Package org.activiti.designer.util.extension

Examples of org.activiti.designer.util.extension.FormToolTip


          if (help != null) {
            final Button propertyHelp = factory.createButton(workParent, "", SWT.BUTTON1);
            propertyHelp.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_LCL_LINKTO_HELP));

            // create a tooltip
            final ToolTip tooltip = new FormToolTip(propertyHelp, String.format("Help for field %s",
                    property.displayName().equals("") ? fieldInfo.getFieldName() : property.displayName()), help.displayHelpShort(), help.displayHelpLong());
            tooltip.setHideOnMouseDown(false);

            data = new FormData();
            data.top = new FormAttachment(createdControl, 0, SWT.TOP);
            data.left = new FormAttachment(createdControl, 0);
            propertyHelp.setLayoutData(data);
            propertyHelp.addMouseListener(new MouseListener() {

              @Override
              public void mouseUp(MouseEvent e) {
              }

              @Override
              public void mouseDown(MouseEvent e) {
                tooltip.show(new Point(0, 0));
              }

              @Override
              public void mouseDoubleClick(MouseEvent e) {
              }
View Full Code Here

TOP

Related Classes of org.activiti.designer.util.extension.FormToolTip

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.