本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: createToolBarManager
import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
@Override
public IToolBarManager2 createToolBarManager() {
// TODO Auto-generated method stub
return null;
}
示例8: createViewToolBarManager
import org.eclipse.jface.internal.provisional.action.IToolBarManager2; //导入依赖的package包/类
@Override
public IToolBarManager2 createViewToolBarManager() {
// TODO Auto-generated method stub
return null;
}