本文整理汇总了Java中com.intellij.ui.GuiUtils.replaceJSplitPaneWithIDEASplitter方法的典型用法代码示例。如果您正苦于以下问题:Java GuiUtils.replaceJSplitPaneWithIDEASplitter方法的具体用法?Java GuiUtils.replaceJSplitPaneWithIDEASplitter怎么用?Java GuiUtils.replaceJSplitPaneWithIDEASplitter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ui.GuiUtils
的用法示例。
在下文中一共展示了GuiUtils.replaceJSplitPaneWithIDEASplitter方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createComponent
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
@NotNull
@Override
public JComponent createComponent() {
GuiUtils.replaceJSplitPaneWithIDEASplitter(myPanel);
if (null == myInnerPostfixDescriptionPanel) {
myInnerPostfixDescriptionPanel = new PostfixDescriptionPanel();
myDescriptionPanel.add(myInnerPostfixDescriptionPanel.getComponent());
}
if (null == myCheckboxTree) {
createTree();
myCheckboxTree.initTree(templateMultiMap);
}
return myPanel;
}
示例2: setupImpl
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
public synchronized void setupImpl(@NotNull ToolWindow toolWindow, final boolean loadPaneExtensions) {
ApplicationManager.getApplication().assertIsDispatchThread();
myActionGroup = new DefaultActionGroup();
myAutoScrollFromSourceHandler.install();
myContentManager = toolWindow.getContentManager();
if (!ApplicationManager.getApplication().isUnitTestMode()) {
toolWindow.setDefaultContentUiType(ToolWindowContentUiType.COMBO);
((ToolWindowEx)toolWindow).setAdditionalGearActions(myActionGroup);
toolWindow.getComponent().putClientProperty(ToolWindowContentUi.HIDE_ID_LABEL, "true");
}
GuiUtils.replaceJSplitPaneWithIDEASplitter(myPanel);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
splitterProportions.restoreSplitterProportions(myPanel);
}
});
if (loadPaneExtensions) {
ensurePanesLoaded();
}
isInitialized = true;
doAddUninitializedPanes();
myContentManager.addContentManagerListener(new ContentManagerAdapter() {
@Override
public void selectionChanged(ContentManagerEvent event) {
if (event.getOperation() == ContentManagerEvent.ContentOperation.add) {
viewSelectionChanged();
}
}
});
viewSelectionChanged();
}
示例3: setupImpl
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
public synchronized void setupImpl(final ToolWindow toolWindow, final boolean loadPaneExtensions) {
myActionGroup = new DefaultActionGroup();
myAutoScrollFromSourceHandler.install();
if (toolWindow != null) {
myContentManager = toolWindow.getContentManager();
if (!ApplicationManager.getApplication().isUnitTestMode()) {
toolWindow.setContentUiType(ToolWindowContentUiType.getInstance("combo"), null);
((ToolWindowEx)toolWindow).setAdditionalGearActions(myActionGroup);
toolWindow.getComponent().putClientProperty(ToolWindowContentUi.HIDE_ID_LABEL, "true");
}
} else {
final ContentFactory contentFactory = ServiceManager.getService(ContentFactory.class);
myContentManager = contentFactory.createContentManager(false, myProject);
}
GuiUtils.replaceJSplitPaneWithIDEASplitter(myPanel);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
splitterProportions.restoreSplitterProportions(myPanel);
}
});
if (loadPaneExtensions) {
ensurePanesLoaded();
}
isInitialized = true;
doAddUninitializedPanes();
myContentManager.addContentManagerListener(new ContentManagerAdapter() {
@Override
public void selectionChanged(ContentManagerEvent event) {
if (event.getOperation() == ContentManagerEvent.ContentOperation.add) {
viewSelectionChanged();
}
}
});
}
示例4: setupToolWindow
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
@RequiredUIAccess
@Override
public void setupToolWindow(@Nonnull ToolWindow toolWindow, final boolean loadPaneExtensions) {
ApplicationManager.getApplication().assertIsDispatchThread();
myActionGroup = new DefaultActionGroup();
myAutoScrollFromSourceHandler.install();
myContentManager = toolWindow.getContentManager();
if (!ApplicationManager.getApplication().isUnitTestMode()) {
toolWindow.setDefaultContentUiType(ToolWindowContentUiType.COMBO);
((ToolWindowEx)toolWindow).setAdditionalGearActions(myActionGroup);
toolWindow.getComponent().putClientProperty(ToolWindowContentUI.HIDE_ID_LABEL, "true");
}
GuiUtils.replaceJSplitPaneWithIDEASplitter(myPanel);
SwingUtilities.invokeLater(() -> splitterProportions.restoreSplitterProportions(myPanel));
if (loadPaneExtensions) {
ensurePanesLoaded();
}
isInitialized = true;
doAddUninitializedPanes();
getContentManager().addContentManagerListener(new ContentManagerAdapter() {
@Override
public void selectionChanged(ContentManagerEvent event) {
if (event.getOperation() == ContentManagerEvent.ContentOperation.add) {
viewSelectionChanged();
}
}
});
viewSelectionChanged();
}
示例5: VariableUI
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
public VariableUI() {
$$$setupUI$$$();
GuiUtils.replaceJSplitPaneWithIDEASplitter(splitPanel);
setVariables(settingManager.getVariables());
}
示例6: IntentionSettingsPanel
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
public IntentionSettingsPanel() {
myIntentionSettingsTree = new IntentionSettingsTree() {
@Override
protected void selectionChanged(Object selected) {
if (selected instanceof IntentionActionMetaData) {
final IntentionActionMetaData actionMetaData = (IntentionActionMetaData)selected;
final Runnable runnable = new Runnable() {
@Override
public void run() {
intentionSelected(actionMetaData);
if (myDetailsComponent != null) {
String[] text = new String[actionMetaData.myCategory.length + 1];
System.arraycopy(actionMetaData.myCategory, 0, text,0,actionMetaData.myCategory.length);
text[text.length - 1] = actionMetaData.getFamily();
myDetailsComponent.setText(text);
}
}
};
myResetAlarm.cancelAllRequests();
myResetAlarm.addRequest(runnable, 100);
}
else {
categorySelected((String)selected);
if (myDetailsComponent != null) {
myDetailsComponent.setText((String)selected);
}
}
}
@Override
protected List<IntentionActionMetaData> filterModel(String filter, final boolean force) {
final List<IntentionActionMetaData> list = IntentionManagerSettings.getInstance().getMetaData();
if (filter == null || filter.length() == 0) return list;
final HashSet<String> quoted = new HashSet<String>();
List<Set<String>> keySetList = SearchUtil.findKeys(filter, quoted);
List<IntentionActionMetaData> result = new ArrayList<IntentionActionMetaData>();
for (IntentionActionMetaData metaData : list) {
if (isIntentionAccepted(metaData, filter, force, keySetList, quoted)){
result.add(metaData);
}
}
final Set<String> filters = SearchableOptionsRegistrar.getInstance().getProcessedWords(filter);
if (force && result.isEmpty()){
if (filters.size() > 1){
result = filterModel(filter, false);
}
}
return result;
}
};
myTreePanel.setLayout(new BorderLayout());
myTreePanel.add(myIntentionSettingsTree.getComponent(), BorderLayout.CENTER);
GuiUtils.replaceJSplitPaneWithIDEASplitter(myPanel);
myDescriptionPanel.setLayout(new BorderLayout());
myDescriptionPanel.add(myIntentionDescriptionPanel.getComponent(), BorderLayout.CENTER);
}
示例7: ResourceBundleEditor
import com.intellij.ui.GuiUtils; //导入方法依赖的package包/类
public ResourceBundleEditor(Project project, ResourceBundle resourceBundle) {
myProject = project;
GuiUtils.replaceJSplitPaneWithIDEASplitter(myPanel);
myResourceBundle = resourceBundle;
myStructureViewComponent = new ResourceBundleStructureViewComponent(project, myResourceBundle, this);
myStructureViewPanel.setLayout(new BorderLayout());
myStructureViewPanel.add(myStructureViewComponent, BorderLayout.CENTER);
myStructureViewComponent.getTree().getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {
private String selectedPropertyName;
private PropertiesFile selectedPropertiesFile;
@Override
public void valueChanged(TreeSelectionEvent e) {
// filter out temp unselect/select events
if (getSelectedPropertyName() == null) return;
if (!Comparing.strEqual(selectedPropertyName, getSelectedPropertyName())
|| !Comparing.equal(selectedPropertiesFile, getSelectedPropertiesFile()))
{
selectedPropertyName = getSelectedPropertyName();
selectedPropertiesFile = getSelectedPropertiesFile();
selectionChanged();
}
}
});
installPropertiesChangeListeners();
myEditors = new THashMap<PropertiesFile, Editor>();
myTitledPanels = new THashMap<PropertiesFile, JPanel>();
recreateEditorsPanel();
TreeElement[] children = myStructureViewComponent.getTreeModel().getRoot().getChildren();
if (children.length != 0) {
TreeElement child = children[0];
String propName = ((ResourceBundlePropertyStructureViewElement)child).getValue();
setState(new ResourceBundleEditorState(propName));
}
myDataProviderPanel = new DataProviderPanel(myPanel);
getSplitter().setAndLoadSplitterProportionKey(getClass() + ".splitter");
project.getMessageBus().connect(project).subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, new FileEditorManagerAdapter() {
@Override
public void selectionChanged(@NotNull FileEditorManagerEvent event) {
onSelectionChanged(event);
}
});
}