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

Java AccessibleEditPart类代码示例

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

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



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

示例1: getAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
	if (accPart == null)
		accPart = new AccessibleGraphicalEditPart() {
			public void getDescription(AccessibleEvent e) {
				if (getRulerProvider() != null)
					getRulerProvider().getAccGuideDescription(e, getModel());
			}

			public void getName(AccessibleEvent e) {
				if (getRulerProvider() != null)
					getRulerProvider().getAccGuideName(e, getModel());
			}

			public void getValue(AccessibleControlEvent e) {
				if (getRulerProvider() != null)
					getRulerProvider().getAccGuideValue(e, getModel());
			}
		};
	return accPart;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:21,代码来源:JDGuideEditPart.java


示例2: reveal

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
/**
 * Reveals the specified editpart by using {@link ExposeHelper}s. A
 * bottom-up scan through the parent-chain is performed, looking for expose
 * helpers along the way, and asking them to expose the given editpart.
 * 
 * @see org.eclipse.gef.EditPartViewer#reveal(EditPart)
 */
public void reveal(EditPart part) {
	if (part == null)
		return;
	EditPart current = part.getParent();
	while (current != null) {
		ExposeHelper helper = (ExposeHelper) current
				.getAdapter(ExposeHelper.class);
		if (helper != null)
			helper.exposeDescendant(part);
		current = current.getParent();
	}
	AccessibleEditPart acc = (AccessibleEditPart) part
			.getAdapter(AccessibleEditPart.class);
	if (acc != null)
		getControl().getAccessible().setFocus(acc.getAccessibleID());
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:24,代码来源:GraphicalViewerImpl.java


示例3: getAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
	if (accPart == null)
		accPart = new AccessibleGraphicalEditPart() {
			public void getDescription(AccessibleEvent e) {
				if (getRulerProvider() != null)
					getRulerProvider()
							.getAccGuideDescription(e, getModel());
			}

			public void getName(AccessibleEvent e) {
				if (getRulerProvider() != null)
					getRulerProvider().getAccGuideName(e, getModel());
			}

			public void getValue(AccessibleControlEvent e) {
				if (getRulerProvider() != null)
					getRulerProvider().getAccGuideValue(e, getModel());
			}
		};
	return accPart;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:22,代码来源:GuideEditPart.java


示例4: getAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
/**
 * @generated
 */
protected AccessibleEditPart getAccessibleEditPart() {
	if (accessibleEP == null) {
		accessibleEP = new AccessibleGraphicalEditPart() {

			public void getName(AccessibleEvent e) {
				e.result = getLabelTextHelper(getFigure());
			}
		};
	}
	return accessibleEP;
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:15,代码来源:StateNameEditPart.java


示例5: getAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
	if (accPart == null)
		accPart = new AccessibleGraphicalEditPart() {
			public void getName(AccessibleEvent e) {
				e.result = isHorizontal() ? "Horizontal" : "Vertical"; //$NON-NLS-1$ //$NON-NLS-2$
			}

			public void getDescription(AccessibleEvent e) {
				e.result = "Ruler"; //$NON-NLS-1$
			}
		};
	return accPart;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:14,代码来源:JDRulerEditPart.java


示例6: getChildren

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
/**
 * @see AccessibleEditPart#getChildren(AccessibleControlEvent)
 */
public void getChildren(AccessibleControlEvent e) {
	List list = AbstractGraphicalEditPart.this.getChildren();
	Object children[] = new Object[list.size()];
	for (int i = 0; i < list.size(); i++) {
		EditPart part = (EditPart) list.get(i);
		AccessibleEditPart access = (AccessibleEditPart) part
				.getAdapter(AccessibleEditPart.class);
		if (access == null)
			return; // fail if any children aren't accessible.
		children[i] = new Integer(access.getAccessibleID());
	}
	e.children = children;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:17,代码来源:AbstractGraphicalEditPart.java


示例7: registerAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
/**
 * Registers the accessible editpart with the event dispatcher.
 * 
 * @param acc
 *            the accessible
 */
public void registerAccessibleEditPart(AccessibleEditPart acc) {
	Assert.isNotNull(acc);
	DomainEventDispatcher domainEventDispatcher = getEventDispatcher();
	if (domainEventDispatcher != null) {
		domainEventDispatcher.putAccessible(acc);
	}
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:14,代码来源:GraphicalViewerImpl.java


示例8: unregisterAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
/**
 * @see EditPartViewer#unregisterAccessibleEditPart(org.eclipse.gef.AccessibleEditPart)
 */
public void unregisterAccessibleEditPart(AccessibleEditPart acc) {
	Assert.isNotNull(acc);
	DomainEventDispatcher domainEventDispatcher = getEventDispatcher();
	if (domainEventDispatcher != null) {
		domainEventDispatcher.removeAccessible(acc);
	}
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:11,代码来源:GraphicalViewerImpl.java


示例9: get

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
private AccessibleEditPart get(int childID) {
	if (childID == ACC.CHILDID_SELF || childID == ACC.CHILDID_NONE)
		if (getViewer().getContents() != null)
			return (AccessibleEditPart) getViewer().getContents()
					.getAdapter(AccessibleEditPart.class);
		else
			return null;
	return (AccessibleEditPart) accessibles.get(new Integer(childID));
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:10,代码来源:DomainEventDispatcher.java


示例10: getChildAtPoint

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
/**
 * @see AccessibleControlListener#getChildAtPoint(AccessibleControlEvent)
 */
public void getChildAtPoint(AccessibleControlEvent e) {
	org.eclipse.swt.graphics.Point p = new org.eclipse.swt.graphics.Point(
			e.x, e.y);
	p = getViewer().getControl().toControl(p);
	EditPart part = getViewer().findObjectAt(new Point(p.x, p.y));
	if (part == null)
		return;
	AccessibleEditPart acc = (AccessibleEditPart) part
			.getAdapter(AccessibleEditPart.class);
	if (acc != null)
		e.childID = acc.getAccessibleID();
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:16,代码来源:DomainEventDispatcher.java


示例11: getFocus

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
/**
 * @see AccessibleControlListener#getFocus(AccessibleControlEvent)
 */
public void getFocus(AccessibleControlEvent e) {
	AccessibleEditPart acc = (AccessibleEditPart) getViewer()
			.getFocusEditPart().getAdapter(AccessibleEditPart.class);
	if (acc != null)
		e.childID = acc.getAccessibleID();
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:10,代码来源:DomainEventDispatcher.java


示例12: getAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
	if (accPart == null)
		accPart = new AccessibleGraphicalEditPart() {
			public void getName(AccessibleEvent e) {
				e.result = isHorizontal() ? GEFMessages.Ruler_Horizontal_Label
						: GEFMessages.Ruler_Vertical_Label;
			}

			public void getDescription(AccessibleEvent e) {
				e.result = GEFMessages.Ruler_Desc;
			}
		};
	return accPart;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:15,代码来源:RulerEditPart.java


示例13: getAccessibleEditPart

import org.eclipse.gef.AccessibleEditPart; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart( )
{
	if ( accPart == null )
		accPart = new AccessibleGraphicalEditPart( )
		{

			public void getDescription( AccessibleEvent e )
			{
				if ( getRulerProvider( ) != null )
					getRulerProvider( ).getAccGuideDescription( e,
							getModel( ) );
			}

			public void getName( AccessibleEvent e )
			{
				if ( getRulerProvider( ) != null )
					getRulerProvider( ).getAccGuideName( e, getModel( ) );
			}

			public void getValue( AccessibleControlEvent e )
			{
				if ( getRulerProvider( ) != null )
					getRulerProvider( ).getAccGuideValue( e, getModel( ) );
			}
		};
	return accPart;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:28,代码来源:EditorGuideEditPart.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java WorkbenchImages类代码示例发布时间:2022-05-22
下一篇:
Java Cookie类代码示例发布时间: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