Examples of editElement()


Examples of org.eclipse.jface.viewers.TableViewer.editElement()

                if (event.keyCode == SWT.F2 && event.stateMask == 0) {
                    ISelection selection = tableViewer.getSelection();
                    if (!(selection instanceof IStructuredSelection))
                        return;
                    IStructuredSelection structuredSelection = (IStructuredSelection) selection;
                    tableViewer.editElement(structuredSelection.getFirstElement(), 0);
                }
            }
        });
        GridData gd = (GridData) fSuperInterfacesDialogField.getListControl(null).getLayoutData();
        if (fTypeKind == CLASS_TYPE) {
View Full Code Here

Examples of org.eclipse.jface.viewers.TableViewer.editElement()

                if (event.keyCode == SWT.F2 && event.stateMask == 0) {
                    ISelection selection = tableViewer.getSelection();
                    if (!(selection instanceof IStructuredSelection))
                        return;
                    IStructuredSelection structuredSelection = (IStructuredSelection) selection;
                    tableViewer.editElement(structuredSelection.getFirstElement(), 0);
                }
            }
        });
        GridData gd = (GridData) fSuperInterfacesDialogField.getListControl(null).getLayoutData();
        if (fTypeKind == CLASS_TYPE) {
View Full Code Here

Examples of org.eclipse.jface.viewers.TableViewer.editElement()

            logger.trace("source: " + event.getSource());

            ViewerCell vc = (ViewerCell)viewer.getData("selectedCell");
            logger.trace("selectedCell: " + vc);

            viewer.editElement(item, vc.getColumnIndex());
        }
    }

    private class EncounterTrackerEditingSupport
            extends EditingSupport {
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.editElement()

    @Ignore
    @Test
    public void testCellModifierGetValue() throws Exception {
        TreeViewer testingGetViewer = editor.testingGetViewer();
        testingGetViewer.editElement(featureType.getDescriptor(0), 0);
        testingGetViewer.cancelEditing();
        testingGetViewer.editElement(featureType.getDescriptor(0), 1);
        testingGetViewer.cancelEditing();

        List<LegalAttributeTypes> types = FeatureTypeEditor.testingGetTYPES();
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.editElement()

    @Test
    public void testCellModifierGetValue() throws Exception {
        TreeViewer testingGetViewer = editor.testingGetViewer();
        testingGetViewer.editElement(featureType.getDescriptor(0), 0);
        testingGetViewer.cancelEditing();
        testingGetViewer.editElement(featureType.getDescriptor(0), 1);
        testingGetViewer.cancelEditing();

        List<LegalAttributeTypes> types = FeatureTypeEditor.testingGetTYPES();
        int geomindex = 0;
        int stringindex = 0;
View Full Code Here

Examples of org.eclipse.jface.viewers.TreeViewer.editElement()

    viewer.setSelection(selection , true);
  }

  void doEditHeader() {
    TreeViewer viewer = getTreeViewer();
    viewer.editElement(selectedHeaders.get(0), 0);
  }

  protected void doCollapseAll() {
    TreeViewer viewer = getTreeViewer();
    if (viewer == null) return;
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.editors.SpringConfigInputAccessor.editElement()

    AbstractNamespaceDetailsPart detailsPart = (AbstractNamespaceDetailsPart) details;
    SpringConfigInputAccessor accessor = new SpringConfigInputAccessor(cEditor, detailsPart.getInput());

    assertEquals("A sample configuration file.", accessor.getElementValue());

    accessor.editElement("foo");
    assertEquals("foo", accessor.getElementValue());

    accessor.editElement("");
    assertEquals("", accessor.getElementValue());
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.editors.SpringConfigInputAccessor.editElement()

    assertEquals("A sample configuration file.", accessor.getElementValue());

    accessor.editElement("foo");
    assertEquals("foo", accessor.getElementValue());

    accessor.editElement("");
    assertEquals("", accessor.getElementValue());

    accessor.editElement("A sample configuration file.");
    assertEquals("A sample configuration file.", accessor.getElementValue());
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.editors.SpringConfigInputAccessor.editElement()

    assertEquals("foo", accessor.getElementValue());

    accessor.editElement("");
    assertEquals("", accessor.getElementValue());

    accessor.editElement("A sample configuration file.");
    assertEquals("A sample configuration file.", accessor.getElementValue());
  }

}
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.