• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Procedure0类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.xtext.xbase.lib.Procedures.Procedure0的典型用法代码示例。如果您正苦于以下问题:Java Procedure0类的具体用法?Java Procedure0怎么用?Java Procedure0使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Procedure0类属于org.eclipse.xtext.xbase.lib.Procedures包,在下文中一共展示了Procedure0类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getLocalArgumentsVariable

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LocalArgumentsVariable getLocalArgumentsVariable() {
	LocalArgumentsVariable __lok = this.get_lok();
	boolean _tripleEquals = (__lok == null);
	if (_tripleEquals) {
		final LocalArgumentsVariable newLok = N4JSFactory.eINSTANCE.createLocalArgumentsVariable();
		newLok.setName("arguments");
		final Procedure0 _function = new Procedure0() {
			public void apply() {
				FunctionOrFieldAccessorImpl.this.set_lok(newLok);
			}
		};
		EcoreUtilN4.doWithDeliver(false, _function, this);
	}
	return this.get_lok();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:21,代码来源:FunctionOrFieldAccessorImpl.java


示例2: getLocalArgumentsVariable

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LocalArgumentsVariable getLocalArgumentsVariable() {
	LocalArgumentsVariable __lok = this.get_lok();
	boolean _tripleEquals = (__lok == null);
	if (_tripleEquals) {
		final LocalArgumentsVariable newLok = N4JSFactory.eINSTANCE.createLocalArgumentsVariable();
		newLok.setName("arguments");
		final Procedure0 _function = new Procedure0() {
			public void apply() {
				N4MethodDeclarationImpl.this.set_lok(newLok);
			}
		};
		EcoreUtilN4.doWithDeliver(false, _function, this);
	}
	return this.get_lok();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:21,代码来源:N4MethodDeclarationImpl.java


示例3: getLocalArgumentsVariable

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LocalArgumentsVariable getLocalArgumentsVariable() {
	LocalArgumentsVariable __lok = this.get_lok();
	boolean _tripleEquals = (__lok == null);
	if (_tripleEquals) {
		final LocalArgumentsVariable newLok = N4JSFactory.eINSTANCE.createLocalArgumentsVariable();
		newLok.setName("arguments");
		final Procedure0 _function = new Procedure0() {
			public void apply() {
				N4FieldAccessorImpl.this.set_lok(newLok);
			}
		};
		EcoreUtilN4.doWithDeliver(false, _function, this);
	}
	return this.get_lok();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:21,代码来源:N4FieldAccessorImpl.java


示例4: getLocalArgumentsVariable

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LocalArgumentsVariable getLocalArgumentsVariable() {
	LocalArgumentsVariable __lok = this.get_lok();
	boolean _tripleEquals = (__lok == null);
	if (_tripleEquals) {
		final LocalArgumentsVariable newLok = N4JSFactory.eINSTANCE.createLocalArgumentsVariable();
		newLok.setName("arguments");
		final Procedure0 _function = new Procedure0() {
			public void apply() {
				FunctionDeclarationImpl.this.set_lok(newLok);
			}
		};
		EcoreUtilN4.doWithDeliver(false, _function, this);
	}
	return this.get_lok();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:21,代码来源:FunctionDeclarationImpl.java


示例5: getLocalArgumentsVariable

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LocalArgumentsVariable getLocalArgumentsVariable() {
	LocalArgumentsVariable __lok = this.get_lok();
	boolean _tripleEquals = (__lok == null);
	if (_tripleEquals) {
		final LocalArgumentsVariable newLok = N4JSFactory.eINSTANCE.createLocalArgumentsVariable();
		newLok.setName("arguments");
		final Procedure0 _function = new Procedure0() {
			public void apply() {
				PropertyMethodDeclarationImpl.this.set_lok(newLok);
			}
		};
		EcoreUtilN4.doWithDeliver(false, _function, this);
	}
	return this.get_lok();
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:21,代码来源:PropertyMethodDeclarationImpl.java


示例6: addButton

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
public MyTextButton addButton(final Layout position, final Icons icon, final Procedure0 changeProcedure) {
  MyTextButton _xblockexpression = null;
  {
    final Procedure0 _function = new Procedure0() {
      @Override
      public void apply() {
        if ((!Widgets.this.hidden)) {
          changeProcedure.apply();
        }
      }
    };
    final MyTextButton button = this.createButton(icon, _function);
    button.setPosition(position.x, position.y);
    final Procedure1<Boolean> _function_1 = new Procedure1<Boolean>() {
      @Override
      public void apply(final Boolean it) {
        Widgets.this.changeText(it, icon, Widgets.this.helpLabel, Widgets.this.defaultHelpText);
      }
    };
    button.addHoverListener(_function_1);
    this.stage.addActor(button);
    this.buttons.add(button);
    _xblockexpression = button;
  }
  return _xblockexpression;
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:27,代码来源:Widgets.java


示例7: create

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
@Override
public void create() {
  Widgets _widgets = this.getWidgets();
  final Procedure0 _function = new Procedure0() {
    @Override
    public void apply() {
      ScreenSwitcher _switcher = CloudScreen.this.getSwitcher();
      _switcher.switchToScreen(Screens.Main);
    }
  };
  _widgets.addButton(Layout.Back, Icons.Back, _function);
  MultiplayerScreen _multiplayerScr = this.getMultiplayerScr();
  Widgets _widgets_1 = this.getWidgets();
  MyStage _stage = this.getStage();
  _multiplayerScr.create(_widgets_1, _stage, this);
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:17,代码来源:CloudScreen.java


示例8: create

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
@Override
public void create() {
  Widgets _widgets = this.getWidgets();
  MyStage _stage = this.getStage();
  OptionTable _optionTable = new OptionTable(_widgets, _stage);
  this.table = _optionTable;
  this.table.create();
  this.fillTable();
  Widgets _widgets_1 = this.getWidgets();
  final Procedure0 _function = new Procedure0() {
    @Override
    public void apply() {
      OptionsScreen.this.finish();
    }
  };
  _widgets_1.addButton(Layout.Back, Icons.Back, _function);
  Widgets _widgets_2 = this.getWidgets();
  final Procedure0 _function_1 = new Procedure0() {
    @Override
    public void apply() {
      OptionsScreen.this.reset();
    }
  };
  MyTextButton _addButton = _widgets_2.addButton(Layout.Options, Icons.Reset, _function_1);
  this.resetButton = _addButton;
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:27,代码来源:OptionsScreen.java


示例9: create

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
public MyTextButton create(final Icons icon) {
  MyTextButton _xblockexpression = null;
  {
    Widgets _widgets = this.getWidgets();
    _widgets.addImage(50, 50, icon);
    Widgets _widgets_1 = this.getWidgets();
    final Procedure0 _function = new Procedure0() {
      @Override
      public void apply() {
        ScreenSwitcher _switcher = WinLooseScreen.this.getSwitcher();
        _switcher.switchToScreen(Screens.Main);
      }
    };
    _xblockexpression = _widgets_1.addButton(Layout.Back, Icons.Back, _function);
  }
  return _xblockexpression;
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:18,代码来源:WinLooseScreen.java


示例10: create

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
@Override
public void create() {
  Widgets _widgets = this.getWidgets();
  Label _addLabel = _widgets.addLabel(Layout.IMPR_TEXT.x, Layout.IMPR_TEXT.y, "...");
  this.label = _addLabel;
  Widgets _widgets_1 = this.getWidgets();
  Label _addLabel_1 = _widgets_1.addLabel(Layout.IMPR_TEXT.x, Layout.IMPR_TEXT.y, "...");
  this.label = _addLabel_1;
  Widgets _widgets_2 = this.getWidgets();
  final Procedure0 _function = new Procedure0() {
    @Override
    public void apply() {
      ScreenSwitcher _switcher = ErrorScreen.this.getSwitcher();
      _switcher.switchToScreen(Screens.Main);
    }
  };
  _widgets_2.addButton(Layout.Back, Icons.Back, _function);
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:19,代码来源:ErrorScreen.java


示例11: addCheckBox

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
public boolean addCheckBox(final String label, final boolean checked, final Procedure1<Boolean> update) {
  boolean _xblockexpression = false;
  {
    Label _createLabel = this.widgets.createLabel(label);
    Cell<Label> _add = this.table.<Label>add(_createLabel);
    this.defaultCellOptions(_add);
    final CheckBox box = this.widgets.createCheckBox();
    box.setChecked(checked);
    Cell<CheckBox> _add_1 = this.table.<CheckBox>add(box);
    this.defaultCellOptions(_add_1);
    this.table.row();
    final Procedure0 _function = new Procedure0() {
      @Override
      public void apply() {
        boolean _isChecked = box.isChecked();
        update.apply(Boolean.valueOf(_isChecked));
      }
    };
    _xblockexpression = this.updateProcedures.add(_function);
  }
  return _xblockexpression;
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:23,代码来源:OptionTable.java


示例12: create

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
@Override
public void create(final Widgets widgets, final Stage stage, final BasicScreen screen) {
  final Procedure0 _function = new Procedure0() {
    @Override
    public void apply() {
      MultiplayerScreenImpl.this.quickStart();
    }
  };
  widgets.addButton(Layout.MULTI_QUICK, Icons.Quick, _function);
  final Procedure0 _function_1 = new Procedure0() {
    @Override
    public void apply() {
      MultiplayerScreenImpl.this.joinInvites();
    }
  };
  widgets.addButton(Layout.MULTI_INVITE, Icons.Invites, _function_1);
  GameParameterPartScreen _gameParameterPartScreen = new GameParameterPartScreen(widgets, true, screen);
  this.parameterScreen = _gameParameterPartScreen;
  final Procedure0 _function_2 = new Procedure0() {
    @Override
    public void apply() {
      MultiplayerScreenImpl.this.newGame();
    }
  };
  this.parameterScreen.create(_function_2, stage);
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:27,代码来源:MultiplayerScreenImpl.java


示例13: installStubs

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
public void installStubs() {
  final Procedure0 _function = () -> {
    this.derivedStateComputer.installStubs(this);
    this.initialized = true;
  };
  this.initializing(_function);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:8,代码来源:JavaResource.java


示例14: installFull

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
public void installFull() {
  final Procedure0 _function = () -> {
    this.derivedStateComputer.installFull(this);
    this.initialized = true;
  };
  this.initializing(_function);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:8,代码来源:JavaResource.java


示例15: initializing

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
private void initializing(final Procedure0 init) {
  try {
    this.initializing = true;
    init.apply();
  } finally {
    this.initializing = false;
  }
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:9,代码来源:JavaResource.java


示例16: discardDerivedState

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
public void discardDerivedState() {
  final Procedure0 _function = () -> {
    this.derivedStateComputer.discardDerivedState(this);
    this.initialized = false;
  };
  this.initializing(_function);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:8,代码来源:JavaResource.java


示例17: curry

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
/**
 * Curries a procedure that takes one argument.
 * 
 * @param procedure
 *            the original procedure. May not be <code>null</code>.
 * @param argument
 *            the fixed argument.
 * @return a procedure that takes no arguments. Never <code>null</code>.
 */
@Pure
public static <P1> Procedure0 curry(final Procedure1<? super P1> procedure, final P1 argument) {
	if (procedure == null)
		throw new NullPointerException("procedure");
	return new Procedure0() {
		@Override
		public void apply() {
			procedure.apply(argument);
		}
	};
}
 
开发者ID:eclipse,项目名称:xtext-lib,代码行数:21,代码来源:ProcedureExtensions.java


示例18: create

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
@Override
public void create() {
  Table _table = new Table();
  this.table = _table;
  Widgets _widgets = this.getWidgets();
  String _get = I18N.get("wait_name");
  Label _createLabel = _widgets.createLabel(_get);
  this.table.<Label>add(_createLabel);
  this.table.row();
  final ScrollPane scrollpane = new ScrollPane(this.table);
  scrollpane.setSize(Layout.LOCAL_SIZE.x, Layout.LOCAL_SIZE.y);
  scrollpane.setPosition(Layout.LOCAL_SCROLL.x, Layout.LOCAL_SCROLL.y);
  MyStage _stage = this.getStage();
  _stage.addActor(scrollpane);
  Widgets _widgets_1 = this.getWidgets();
  final Procedure0 _function = new Procedure0() {
    @Override
    public void apply() {
      WaitingScreen.this.leaveGame();
    }
  };
  _widgets_1.addButton(Layout.Back, Icons.Back, _function);
  Widgets _widgets_2 = this.getWidgets();
  String _get_1 = I18N.get("wait_msg");
  Label _addLabel = _widgets_2.addLabel(Layout.WAIT_START.x, Layout.WAIT_START.y, _get_1);
  this.waitLabel = _addLabel;
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:28,代码来源:WaitingScreen.java


示例19: addButton

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
private MyTextButton addButton(final Layout position, final Icons icon, final Screens screen, final Screens back) {
  Widgets _widgets = this.getWidgets();
  final Procedure0 _function = new Procedure0() {
    @Override
    public void apply() {
      ScreenSwitcher _switcher = MenuScreen.this.getSwitcher();
      _switcher.switchToScreen(screen, back);
    }
  };
  return _widgets.addButton(position, icon, _function);
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:12,代码来源:MenuScreen.java


示例20: create

import org.eclipse.xtext.xbase.lib.Procedures.Procedure0; //导入依赖的package包/类
@Override
public void create() {
  Widgets _widgets = this.getWidgets();
  GameParameterPartScreen _gameParameterPartScreen = new GameParameterPartScreen(_widgets, false, this);
  this.parameterScreen = _gameParameterPartScreen;
  final Procedure0 _function = new Procedure0() {
    @Override
    public void apply() {
      SingleScreen.this.startGame();
    }
  };
  MyStage _stage = this.getStage();
  this.parameterScreen.create(_function, _stage);
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:15,代码来源:SingleScreen.java



注:本文中的org.eclipse.xtext.xbase.lib.Procedures.Procedure0类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java OWLReasonerConfiguration类代码示例发布时间:2022-05-22
下一篇:
Java RectangularSelectDecorator类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap