当前位置: 首页>>代码示例>>Java>>正文


Java SWT.Selection方法代码示例

本文整理汇总了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;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:23,代码来源:ELTSchemaDialogSelectionListener.java

示例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;
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:14,代码来源:SpecConfigOutputPage.java

示例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);
	}		
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:8,代码来源:FolderSelectionGroup.java

示例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;
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:12,代码来源:EdgeDefaultSection.java

示例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;
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:12,代码来源:VertexDefaultSection.java

示例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 );
		}
	}
}
 
开发者ID:weadmindev,项目名称:network-device-panel,代码行数:11,代码来源:DevicePanelSvg.java

示例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));
	}
}
 
开发者ID:sergueik,项目名称:SWET,代码行数:11,代码来源:BreadcrumbItem.java

示例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;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:29,代码来源:ELTRuntimeButtonClickListener.java

示例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;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:29,代码来源:DirectoryDialogSelectionListener.java

示例10: getListenerType

import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
	
	return SWT.Selection;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:6,代码来源:ELTCreateNewClassListener.java

示例11: getListenerType

import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {

	return SWT.Selection;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:6,代码来源:ELTSelectionTaskListener.java

示例12: getListenerType

import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
     return SWT.Selection;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:5,代码来源:ELTGridDeleteSelectionListener.java

示例13: getListenerType

import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
	 
	return SWT.Selection;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:6,代码来源:ELTEnableButtonListener.java

示例14: getListenerType

import org.eclipse.swt.SWT; //导入方法依赖的package包/类
@Override
public int getListenerType() {
	return SWT.Selection;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:5,代码来源:ELTFileDialogSelectionListener.java


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