Examples of JavaEventListener


Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

  ////////////////////////////////////////////////////////////////////////////
  /**
   * Adds support for size coping.
   */
  private void addClipboardSupport() {
    m_object.addBroadcastListener(new JavaEventListener() {
      @Override
      public void clipboardCopy(JavaInfo javaInfo, List<ClipboardCommand> commands)
          throws Exception {
        if (javaInfo == m_object) {
          final SizeInfo sizeInfo = getSizeInfo();
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

  //
  // Events
  //
  ////////////////////////////////////////////////////////////////////////////
  private void ignoreSpecialParameterDuringCopy() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void clipboardCopy_Argument(JavaInfo javaInfo,
          ParameterDescription parameter,
          Expression argument,
          String[] source) throws Exception {
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

      }
    });
  }

  private void addSubMenuOnItemAdding() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void addAfter(JavaInfo parent, JavaInfo child) throws Exception {
        if (child == m_this && JavaInfoUtils.hasTrueParameter(m_this, "MenuItem.withSubMenu")) {
          if (getCreationSupport() instanceof ConstructorCreationSupport) {
            addNewSubMenu();
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

      }
    });
  }

  private void scaleSize_whenChangeUnit() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void setPropertyExpression(GenericPropertyImpl property,
          String[] source,
          Object[] value,
          boolean[] shouldSet) throws Exception {
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

    processRoot(root);
    processComponents(root, components);
  }

  private void processRoot(final JavaInfo root) {
    root.addBroadcastListener(new JavaEventListener() {
      @Override
      public void clipboardCopy_Argument(JavaInfo javaInfo,
          ParameterDescription parameter,
          Expression argument,
          String[] source) throws Exception {
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

  //
  // Clipboard
  //
  ////////////////////////////////////////////////////////////////////////////
  private void addClipboardSupport() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void clipboardCopy(JavaInfo javaInfo, List<ClipboardCommand> commands)
          throws Exception {
        if (javaInfo == PanelInfo.this) {
          clipboardCopy_addPanelCommands(commands);
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

  /**
   * Adds broadcast listener that keeps <code>FlexTableHelper.fixRowSpan()</code> as last statement
   * for this {@link FlexTableInfo}.
   */
  private void keepLast_FlexTableHelper() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void target_isTerminalStatement(JavaInfo parent,
          JavaInfo child,
          Statement statement,
          boolean[] terminal) {
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

        if (child instanceof WidgetInfo && parent == HTMLTableInfo.this) {
          cleanUpWidget(child);
        }
      }
    });
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void moveBefore(JavaInfo child, ObjectInfo oldParent, JavaInfo newParent)
          throws Exception {
        if (child instanceof WidgetInfo
            && oldParent == HTMLTableInfo.this
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

  //
  // Events
  //
  ////////////////////////////////////////////////////////////////////////////
  private void setRowColumnCount_afterMorphing() {
    addBroadcastListener(new JavaEventListener() {
      private int m_rowCount;
      private int m_columnCount;

      @Override
      public void replaceChildBefore(JavaInfo parent, JavaInfo oldChild, JavaInfo newChild)
View Full Code Here

Examples of org.eclipse.wb.core.model.broadcast.JavaEventListener

   * <code>AccordionLayout</code> handles only <code>Panel</code> and only with set "title"
   * property. We generate code with "title" for <code>Panel</code> itself, but for example not for
   * <code>TreePanel</code>. So, here we ensure title required by <code>AccordionLayout</code>.
   */
  private void ensureTitleForChildPanels() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void addAfter(JavaInfo parent, JavaInfo child) throws Exception {
        if (isActiveOnContainer(parent)) {
          Property titleProperty = child.getPropertyByTitle("title");
          if (titleProperty != null && !titleProperty.isModified()) {
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.