本文整理汇总了Java中com.intellij.ui.GuiUtils.enableChildren方法的典型用法代码示例。如果您正苦于以下问题:Java GuiUtils.enableChildren方法的具体用法?Java GuiUtils.enableChildren怎么用?Java GuiUtils.enableChildren使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ui.GuiUtils
的用法示例。
在下文中一共展示了GuiUtils.enableChildren方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: contextItemSourceChanged
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void contextItemSourceChanged() {
final boolean editorAsSource = isContextItemFromEditorEnabled();
if (isContextItemEnabled()) {
GuiUtils.enableChildren(contextItemEditorContent, editorAsSource);
GuiUtils.enableChildren(contextItemPathField, ! editorAsSource);
}
contextItemEditorContent.invalidate();
contextItemPathField.invalidate();
}
示例2: enableChildren
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
protected final void enableChildren(JComponent container, boolean enabled) {
final Set<JComponent> excluded = new HashSet<JComponent>();
GuiUtils.iterateChildren(container, new Consumer<Component>() {
public void consume(Component component) {
if ((component instanceof JComponent) && (((JComponent) component).getClientProperty(ROOT) != null)) {
excluded.add((JComponent) component);
}
}
});
excluded.remove(container);
GuiUtils.enableChildren(container, enabled, excluded.toArray(new JComponent[excluded.size()]));
}
示例3: enabledChanged
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enabledChanged() {
final boolean pathEnabled = isPathEnabled();
GuiUtils.enableChildren(myPathField, pathEnabled);
myFieldWithHistory.invalidate(); //need to revalidate inner component
}
示例4: useUnscramblerChanged
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void useUnscramblerChanged() {
boolean selected = myUseUnscrambler.isSelected();
GuiUtils.enableChildren(myUnscramblePanel, selected, myUseUnscrambler);
}
示例5: updateAfterBreakpointHitPanel
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void updateAfterBreakpointHitPanel() {
boolean enable = myMasterBreakpointChooser.getSelectedBreakpoint() != null;
GuiUtils.enableChildren(enable, myAfterBreakpointHitPanel);
}
示例6: enableCachePanel
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enableCachePanel() {
GuiUtils.enableChildren(myCacheSettings, myUpdateCheckBox.isSelected());
}
示例7: enableTimeTrackingPanel
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enableTimeTrackingPanel() {
GuiUtils.enableChildren(myTimeTrackingSettings, myEnableTimeTrackingCheckBox.isSelected());
}
示例8: contextItemEnabledChanged
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void contextItemEnabledChanged() {
final boolean pathEnabled = isContextItemEnabled();
GuiUtils.enableChildren(contextItemOptionsPanel, pathEnabled);
contextItemSourceChanged();
}
示例9: enabledChanged
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void enabledChanged() {
final boolean pathEnabled = isPathEnabled();
GuiUtils.enableChildren(myPathField, pathEnabled);
myFieldWithHistory.invalidate(); //need to revalidate inner component
}
示例10: useUnscramblerChanged
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
private void useUnscramblerChanged()
{
boolean selected = myUseUnscrambler.isSelected();
GuiUtils.enableChildren(myUnscramblePanel, selected, myUseUnscrambler);
}