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


Java IToolBarManager2类代码示例

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


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

示例1: close

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
public boolean close() {
	if (operationInProgress) {
		return false;
	}

	if (super.close()) {
		if (menuBarManager != null) {
			menuBarManager.dispose();
			menuBarManager = null;
		}
		if (toolBarManager != null) {
			if (toolBarManager instanceof IToolBarManager2) {
				((IToolBarManager2) toolBarManager).dispose();
			} else if (toolBarManager instanceof ToolBarManager) {
				((ToolBarManager) toolBarManager).dispose();
			}
			toolBarManager = null;
		}
		if (statusLineManager != null) {
			statusLineManager.dispose();
			statusLineManager = null;
		}
		if (coolBarManager != null) {
			if (coolBarManager instanceof ICoolBarManager2) {
				((ICoolBarManager2) coolBarManager).dispose();
			} else if (coolBarManager instanceof CoolBarManager) {
				((CoolBarManager) coolBarManager).dispose();
			}
			coolBarManager = null;
		}
		return true;
	}
	return false;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:35,代码来源:ApplicationWindow.java

示例2: createToolBarControl

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
/**
 * Creates the control for the tool bar manager.
 * <p>
 * Subclasses may override this method to customize the tool bar manager.
 * </p>
 * 
 * @param parent
 *            the parent used for the control
 * @return a Control
 */
protected Control createToolBarControl(Composite parent) {
	if (toolBarManager != null) {
		if (toolBarManager instanceof IToolBarManager2) {
			return ((IToolBarManager2) toolBarManager)
					.createControl2(parent);
		}
		if (toolBarManager instanceof ToolBarManager) {
			return ((ToolBarManager) toolBarManager).createControl(parent);
		}
	}
	return null;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:23,代码来源:ApplicationWindow.java

示例3: getToolBarControl

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
/**
 * Returns the control for the window's toolbar.
 * <p>
 * Subclasses may override this method to customize the tool bar manager.
 * </p>
 * 
 * @return a Control
 */
protected Control getToolBarControl() {
	if (toolBarManager != null) {
		if (toolBarManager instanceof IToolBarManager2) {
			return ((IToolBarManager2) toolBarManager).getControl2();
		}
		if (toolBarManager instanceof ToolBarManager) {
			return ((ToolBarManager) toolBarManager).getControl();
		}
	}
	return null;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:20,代码来源:ApplicationWindow.java

示例4: close

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
@Override
public boolean close() {
    if (operationInProgress) {
  return false;
}

    if (super.close()) {
        if (menuBarManager != null) {
            menuBarManager.dispose();
            menuBarManager = null;
        }
        if (toolBarManager != null) {
          if (toolBarManager instanceof IToolBarManager2) {
      ((IToolBarManager2) toolBarManager).dispose();
    } else if (toolBarManager instanceof ToolBarManager) {
      ((ToolBarManager) toolBarManager).dispose();
    }
            toolBarManager = null;
        }
        if (statusLineManager != null) {
            statusLineManager.dispose();
            statusLineManager = null;
        }
        if (coolBarManager != null) {
          if (coolBarManager instanceof ICoolBarManager2) {
      ((ICoolBarManager2) coolBarManager).dispose();
    } else if (coolBarManager instanceof CoolBarManager) {
      ((CoolBarManager) coolBarManager).dispose();
    }
            coolBarManager = null;
        }
        return true;
    }
    return false;
}
 
开发者ID:Haixing-Hu,项目名称:swt-widgets,代码行数:36,代码来源:ApplicationWindowEx.java

示例5: createToolBarControl

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
/**
 * Creates the control for the tool bar manager.
 * <p>
 * Subclasses may override this method to customize the tool bar manager.
 * </p>
 * @param parent the parent used for the control
 * @return a Control
 */
protected Control createToolBarControl(Composite parent) {
    if (toolBarManager != null) {
      if (toolBarManager instanceof IToolBarManager2) {
    return ((IToolBarManager2) toolBarManager).createControl2(parent);
  }
      if (toolBarManager instanceof ToolBarManager) {
    return ((ToolBarManager) toolBarManager).createControl(parent);
  }
    }
    return null;
}
 
开发者ID:Haixing-Hu,项目名称:swt-widgets,代码行数:20,代码来源:ApplicationWindowEx.java

示例6: getToolBarControl

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
/**
 * Returns the control for the window's toolbar.
 * <p>
 * Subclasses may override this method to customize the tool bar manager.
 * </p>
 * @return a Control
 */
protected Control getToolBarControl() {
    if (toolBarManager != null) {
      if (toolBarManager instanceof IToolBarManager2) {
    return ((IToolBarManager2) toolBarManager).getControl2();
  }
      if (toolBarManager instanceof ToolBarManager) {
    return ((ToolBarManager) toolBarManager).getControl();
  }
    }
    return null;
}
 
开发者ID:Haixing-Hu,项目名称:swt-widgets,代码行数:19,代码来源:ApplicationWindowEx.java

示例7: createToolBarManager

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
@Override
public IToolBarManager2 createToolBarManager() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:jaloncad,项目名称:redmine.rap,代码行数:6,代码来源:DefaultPresentationFactory.java

示例8: createViewToolBarManager

import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
@Override
public IToolBarManager2 createViewToolBarManager() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:jaloncad,项目名称:redmine.rap,代码行数:6,代码来源:DefaultPresentationFactory.java


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