本文整理汇总了Java中org.eclipse.xtext.xbase.lib.Procedures.Procedure0类的典型用法代码示例。如果您正苦于以下问题:Java Procedure0类的具体用法?Java Procedure0怎么用?Java Procedure0使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Procedure0类属于org.eclipse.xtext.xbase.lib.Procedures包,在下文中一共展示了Procedure0类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
}