本文整理汇总了Java中com.intellij.uiDesigner.GuiDesignerConfiguration.getInstance方法的典型用法代码示例。如果您正苦于以下问题:Java GuiDesignerConfiguration.getInstance方法的具体用法?Java GuiDesignerConfiguration.getInstance怎么用?Java GuiDesignerConfiguration.getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.uiDesigner.GuiDesignerConfiguration
的用法示例。
在下文中一共展示了GuiDesignerConfiguration.getInstance方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doOKAction
import com.intellij.uiDesigner.GuiDesignerConfiguration; //导入方法依赖的package包/类
protected void doOKAction() {
if (myCreateBoundClassCheckbox.isSelected()) {
myLastClassName = myClassNameTextField.getText();
}
else {
myLastClassName = null;
}
myLastLayoutManager = myBaseLayoutManagerCombo.getSelectedName();
GuiDesignerConfiguration.getInstance(myProject).DEFAULT_LAYOUT_MANAGER = myLastLayoutManager;
final String inputString = myFormNameTextField.getText().trim();
if (myValidator.checkInput(inputString) && myValidator.canClose(inputString)) {
close(OK_EXIT_CODE);
}
close(OK_EXIT_CODE);
}
示例2: createDefaultGridLayoutManager
import com.intellij.uiDesigner.GuiDesignerConfiguration; //导入方法依赖的package包/类
public static RadLayoutManager createDefaultGridLayoutManager(Project project) {
final String defaultLayoutManager = GuiDesignerConfiguration.getInstance(project).DEFAULT_LAYOUT_MANAGER;
if (defaultLayoutManager.equals(UIFormXmlConstants.LAYOUT_GRIDBAG)) {
return new RadGridBagLayoutManager();
}
else if (defaultLayoutManager.equals(UIFormXmlConstants.LAYOUT_FORM)) {
return new RadFormLayoutManager();
}
else {
return new RadGridLayoutManager();
}
}
示例3: canResizeCells
import com.intellij.uiDesigner.GuiDesignerConfiguration; //导入方法依赖的package包/类
private boolean canResizeCells() {
return GuiDesignerConfiguration.getInstance(myEditor.getProject()).RESIZE_HEADERS &&
mySelectedContainer != null &&
mySelectedContainer.getGridLayoutManager().canResizeCells();
}
示例4: canResizeCells
import com.intellij.uiDesigner.GuiDesignerConfiguration; //导入方法依赖的package包/类
private boolean canResizeCells()
{
return GuiDesignerConfiguration.getInstance(myEditor.getProject()).RESIZE_HEADERS &&
mySelectedContainer != null &&
mySelectedContainer.getGridLayoutManager().canResizeCells();
}
示例5: FormSourceCodeGenerator
import com.intellij.uiDesigner.GuiDesignerConfiguration; //导入方法依赖的package包/类
public FormSourceCodeGenerator(@NotNull final Project project)
{
myProject = project;
myErrors = new ArrayList<FormErrorInfo>();
myConfiguration = GuiDesignerConfiguration.getInstance(project);
}