How to add a text Box in on TeamFormLayout
Refering to the section: ContributingAttributePresentations, I want to add a text box on my editor to perform some operation .There is an example given of StarAttributePart.java
A button is added on the form layout.I want to add a text box bbelow the button but I only see the content of the text and not the textbox.I added the box in the similar way as the button was added but could not get the textbox displayed. Private Text txtimp; public void setVisible(boolean visible) { List<Control> changedControls= new ArrayList<Control>(); if(txtImpact !=null && !txtImp.isDisposed()) { TeamFormUtil.setVisible(txtImp, visible); changedControls.add(txtImpact); } Util.updateFormLayout(changedControls.toArray(new Control)); }; public void createContent(ITeamFormLayout formLayout) { public final WorkItemEditorToolkit toolkit= (WorkItemEditorToolkit) getSite().getToolkit(); Composite parent= formLayout.getContainer(); txtImp=toolkit.createText(parent,"abc",SWT.SINGLE); formLayout.add(txtImpact,ITeamFormConfiguration.CONTENT_GUIDE); } Rest of the thing were same and I don't think to make a text box visible on formlayout, we require anything else. Let me know what has been missed out. I recived no error while launcing,but I could only see the the textbox content which is "abc". |
One answer
This was resolved by putting a border around the text box control.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.