本文整理汇总了Java中org.eclipse.jface.preference.PreferenceManager.getElements方法的典型用法代码示例。如果您正苦于以下问题:Java PreferenceManager.getElements方法的具体用法?Java PreferenceManager.getElements怎么用?Java PreferenceManager.getElements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.preference.PreferenceManager
的用法示例。
在下文中一共展示了PreferenceManager.getElements方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: findNode
import org.eclipse.jface.preference.PreferenceManager; //导入方法依赖的package包/类
private IPreferenceNode findNode(PreferenceManager pm, String categoryId)
{
for (Object o : pm.getElements(PreferenceManager.POST_ORDER))
{
if (o instanceof IPreferenceNode && ((IPreferenceNode) o).getId().equals(categoryId))
{
return (IPreferenceNode) o;
}
}
return null;
}
开发者ID:cplutte,项目名称:bts,代码行数:12,代码来源:E4PreferenceRegistry.java示例2: findNode
import org.eclipse.jface.preference.PreferenceManager; //导入方法依赖的package包/类
private IPreferenceNode findNode(PreferenceManager pm, String categoryId) {
for (Object o : pm.getElements(PreferenceManager.POST_ORDER)) {
if (o instanceof IPreferenceNode
&& ((IPreferenceNode) o).getId().equals(categoryId)) {
return (IPreferenceNode) o;
}
}
return null;
}
开发者ID:cplutte,项目名称:bts,代码行数:10,代码来源:ShowPreferenceDialogHandler.java示例3: printPreferencePages
import org.eclipse.jface.preference.PreferenceManager; //导入方法依赖的package包/类
public static void printPreferencePages(){
System.out.println("=== PreferencePages ===");
PreferenceManager preferenceManager = PlatformUI.getWorkbench().getPreferenceManager();
@SuppressWarnings("unchecked")
List<IPreferenceNode> preferenceNodes = preferenceManager.getElements(PreferenceManager.PRE_ORDER);
for (Iterator<IPreferenceNode> it = preferenceNodes.iterator(); it.hasNext();) {
IPreferenceNode preferenceNode = (IPreferenceNode)it.next();
System.out.println(preferenceNode.getId());
}
}
开发者ID:scouter-project,项目名称:scouter,代码行数:11,代码来源:RCPUtil.java示例4: postWindowOpen
import org.eclipse.jface.preference.PreferenceManager; //导入方法依赖的package包/类
public void postWindowOpen() {
final PreferenceManager preferenceManager = PlatformUI.getWorkbench().getPreferenceManager();
final IPreferenceNode[] rootSubNodes = preferenceManager.getRootSubNodes();
// @see Bug #191 in general/bugzilla/index.html
final List<String> filters = new ArrayList<String>();
filters.add("org.eclipse.compare");
// The following three preferences are shown because the Toolbox uses
// the local history feature provided by o.e.team.ui
filters.add("org.eclipse.team.ui");
filters.add("org.eclipse.ui.trace");
filters.add("org.eclipse.jsch.ui");
// Filter out Pdf4Eclipse preference page.
filters.add("de.vonloesch.pdf4Eclipse");
// Filter out GraphViz
filters.add("com.abstratt.graphviz.ui");
// Clean the preferences
final List<IPreferenceNode> elements = preferenceManager.getElements(PreferenceManager.POST_ORDER);
for (Iterator<IPreferenceNode> iterator = elements.iterator(); iterator.hasNext();) {
final IPreferenceNode elem = iterator.next();
if (elem instanceof IPluginContribution) {
final IPluginContribution aPluginContribution = (IPluginContribution) elem;
if (filters.contains(aPluginContribution.getPluginId())) {
final IPreferenceNode node = (IPreferenceNode) elem;
// remove from root node
preferenceManager.remove(node);
// remove from all subnodes
for (int i = 0; i < rootSubNodes.length; i++) {
final IPreferenceNode subNode = rootSubNodes[i];
subNode.remove(node);
}
}
}
}
super.postWindowOpen();
// At this point in time we can be certain that the UI is fully
// instantiated (views, editors, menus...). Thus, register
// listeners that connect the UI to the workspace resources.
ToolboxLifecycleParticipantManger.postWorkbenchWindowOpen();
}
开发者ID:tlaplus,项目名称:tlaplus,代码行数:47,代码来源:ApplicationWorkbenchWindowAdvisor.java本文标签属性:
示例:示例英语
代码:代码转换器
java:javascript18岁
PreferenceManager:PreferenceManager
getElements:hide