Package org.eclipse.php.formatter.ui.preferences.WhiteSpaceOptions

Examples of org.eclipse.php.formatter.ui.preferences.WhiteSpaceOptions.Node


      restoreSelections();
      refreshState();
    }

    private void restoreSelections() {
      Node node;
      final int innerIndex = getValidatedIndex(PREF_INNER_INDEX);
      node = (Node) fIndexedNodeList.get(innerIndex);
      if (node instanceof InnerNode) {
        fInnerViewer.expandToLevel(node, 0);
        fInnerViewer.setSelection(new StructuredSelection(
View Full Code Here


      if (selection.isEmpty()
          || !(selection.getFirstElement() instanceof Node))
        return;

      final Node selected = (Node) selection.getFirstElement();

      if (selected == null || selected == fLastSelected)
        return;

      if (event.getSource() == fInnerViewer
View Full Code Here

    public void selectionChanged(SelectionChangedEvent event) {
      final IStructuredSelection selection = (IStructuredSelection) event
          .getSelection();
      if (selection.isEmpty())
        return;
      final Node node = (Node) selection.getFirstElement();
      if (node == fLastSelected)
        return;
      fDialogSettings.put(PREF_NODE_KEY, node.index);
      fLastSelected = node;
      setPreviewText();
View Full Code Here

      setPreviewText();
      doUpdatePreview();
    }

    public void checkStateChanged(CheckStateChangedEvent event) {
      final Node node = (Node) event.getElement();
      node.setChecked(event.getChecked());
      doUpdatePreview();
      notifyValuesModified();
    }
View Full Code Here

        index = -1;
      }
      if (index < 0 || index > fIndexedNodeList.size() - 1) {
        index = 0;
      }
      final Node node = (Node) fIndexedNodeList.get(index);
      if (node != null) {
        fTreeViewer.expandToLevel(node, 0);
        fTreeViewer.setSelection(new StructuredSelection(
            new Node[] { node }));
        fLastSelected = node;
View Full Code Here

    }

    public void doubleClick(DoubleClickEvent event) {
      final ISelection selection = event.getSelection();
      if (selection instanceof IStructuredSelection) {
        final Node node = (Node) ((IStructuredSelection) selection)
            .getFirstElement();
        fTreeViewer.setExpandedState(node,
            !fTreeViewer.getExpandedState(node));
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.php.formatter.ui.preferences.WhiteSpaceOptions.Node

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.