本文整理汇总了Java中org.eclipse.swt.SWT.Selection方法的典型用法代码示例。如果您正苦于以下问题:Java SWT.Selection方法的具体用法?Java SWT.Selection怎么用?Java SWT.Selection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swt.SWT
的用法示例。
在下文中一共展示了SWT.Selection方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getListener
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public Listener getListener(final PropertyDialogButtonBar propertyDialogButtonBar,
ListenerHelper helpers, final Widget... widgets) {
final Button button = ((Button)widgets[0]);
button.getShell();
if(helpers != null){
txtDecorator = (ControlDecoration) helpers.get(HelperType.CONTROL_DECORATION);
file_extension=(String)helpers.get(HelperType.FILE_EXTENSION);
}
Listener listener=new Listener() {
@Override
public void handleEvent(Event event) {
if(event.type==SWT.Selection){
FilterOperationClassUtility.INSTANCE.browseFile(file_extension,((Text) widgets[0]));
propertyDialogButtonBar.enableApplyButton(true);
txtDecorator.hide();
}
}
};
return listener;
}
示例2: selectAsciispec
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
private void selectAsciispec(Event e) {
switch (e.type) {
case SWT.Selection:
DirectoryDialog dialog = new DirectoryDialog(Display.getCurrent().getActiveShell(), SWT.OPEN | SWT.MULTI);
dialog.setText("Select the Asciispec binary directory");
String result = dialog.open();
if (result != null && !result.isEmpty()) {
txtAsciispecBinaryDir.setText(result);
saveAsciispecBinDir(result);
}
break;
}
}
示例3: fireEvent
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
private void fireEvent () {
if (listener != null) {
Event changeEvent = new Event();
changeEvent.type = SWT.Selection;
listener.handleEvent(changeEvent);
}
}
示例4: handleEvent
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
public void handleEvent(Event e) {
if (!notification)
return;
switch (e.type) {
case SWT.Selection:
EdgeGW4EEditPartProperties properties = (EdgeGW4EEditPartProperties) node
.getAdapter(IPropertySource.class);
properties.setPropertyValue(ModelProperties.PROPERTY_BLOCKED, btnCheckBlocked.getSelection());
break;
}
}
示例5: handleEvent
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
public void handleEvent(Event e) {
if (!notification)
return;
switch (e.type) {
case SWT.Selection:
GW4EVertexEditPartProperties properties = (GW4EVertexEditPartProperties) sectionProvider
.getAdapter(IPropertySource.class);
properties.setPropertyValue(ModelProperties.PROPERTY_VERTEX_SHARED, btnCheckShrd.getSelection());
break;
}
}
示例6: removeListener
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public void removeListener( int eventType, Listener listener ) {
boolean wasListening = isListening( SWT.Selection );
super.removeListener( eventType, listener );
if( eventType == SWT.Selection && wasListening ) {
if( !isListening( SWT.Selection ) ) {
remoteObject.listen( "Selection", false );
}
}
}
示例7: fireSelectionEvent
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
void fireSelectionEvent() {
final Event event = new Event();
event.widget = this.parentBreadcrumb;
event.display = getDisplay();
event.item = this;
event.type = SWT.Selection;
for (final SelectionListener selectionListener : this.selectionListeners) {
selectionListener.widgetSelected(new SelectionEvent(event));
}
}
示例8: getListener
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public Listener getListener(PropertyDialogButtonBar propertyDialogButtonBar, final ListenerHelper helpers, Widget... widgets) {
Listener listener = new Listener() {
public void handleEvent(Event event) {
if (event.type == SWT.Selection) {
if(helpers.object instanceof ELTRuntimePropertiesWidget)
((ELTRuntimePropertiesWidget)helpers.object).newWindowLauncher();
else if(helpers.object instanceof SecondaryColumnKeysWidget)
((SecondaryColumnKeysWidget)helpers.object).newWindowLauncher();
else if(helpers.object instanceof LoadTypeConfigurationWidget)
((LoadTypeConfigurationWidget)helpers.object).newWindowLauncher();
else if(helpers.object instanceof InputAdditionalParametersWidget)
((InputAdditionalParametersWidget)helpers.object).newWindowLauncher();
else if(helpers.object instanceof OutputAdditionalParametersWidget)
((OutputAdditionalParametersWidget)helpers.object).newWindowLauncher();
else if(helpers.object instanceof AuthenticationWidget)
((AuthenticationWidget)helpers.object).newWindowLauncher();
else if(helpers.object instanceof OperationConfigWidget)
((OperationConfigWidget)helpers.object).newWindowLauncher();
else if(helpers.object instanceof ExcelFormattingWidget)
((ExcelFormattingWidget)helpers.object).newWindowLauncher();
}
}
};
return listener;
}
示例9: getListener
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public Listener getListener(final PropertyDialogButtonBar propertyDialogButtonBar, ListenerHelper helpers,
final Widget... widgets) {
final Button button = ((Button) widgets[0]);
button.getShell();
if (helpers != null) {
txtDecorator = (ControlDecoration) helpers.get(HelperType.CONTROL_DECORATION);
}
Listener listener = new Listener() {
@Override
public void handleEvent(Event event) {
LOGGER.debug("Launching Directory Dialog for selecting directory path");
if (event.type == SWT.Selection) {
String path = null;
DirectoryDialog filedialog = new DirectoryDialog(button.getShell(), SWT.None);
filedialog.setFilterPath(((Text) widgets[1]).getText());
path=filedialog.open();
if (StringUtils.isNotEmpty(path)) {
((Text) widgets[1]).setText(path);
propertyDialogButtonBar.enableApplyButton(true);
txtDecorator.hide();
}
}
}
};
return listener;
}
示例10: getListenerType
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
return SWT.Selection;
}
示例11: getListenerType
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
return SWT.Selection;
}
示例12: getListenerType
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
return SWT.Selection;
}
示例13: getListenerType
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
return SWT.Selection;
}
示例14: getListenerType
import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
return SWT.Selection;
}