當前位置: 首頁>>代碼示例>>Java>>正文


Java EnvVariablesTable類代碼示例

本文整理匯總了Java中com.intellij.execution.util.EnvVariablesTable的典型用法代碼示例。如果您正苦於以下問題:Java EnvVariablesTable類的具體用法?Java EnvVariablesTable怎麽用?Java EnvVariablesTable使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EnvVariablesTable類屬於com.intellij.execution.util包,在下文中一共展示了EnvVariablesTable類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: MyEnvironmentVariablesDialog

import com.intellij.execution.util.EnvVariablesTable; //導入依賴的package包/類
protected MyEnvironmentVariablesDialog() {
  super(EnvironmentVariablesTextFieldWithBrowseButton.this, true);
  myEnvVariablesTable = new EnvVariablesTable();
  myEnvVariablesTable.setValues(convertToVariables(myData.getEnvs(), false));

  myUseDefaultCb.setSelected(isPassParentEnvs());
  myWholePanel.add(myEnvVariablesTable.getComponent(), BorderLayout.CENTER);
  JPanel useDefaultPanel = new JPanel(new BorderLayout());
  useDefaultPanel.add(myUseDefaultCb, BorderLayout.CENTER);
  HyperlinkLabel showLink = new HyperlinkLabel(ExecutionBundle.message("env.vars.show.system"));
  useDefaultPanel.add(showLink, BorderLayout.EAST);
  showLink.addHyperlinkListener(new HyperlinkListener() {
    @Override
    public void hyperlinkUpdate(HyperlinkEvent e) {
      if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
        showParentEnvironmentDialog(MyEnvironmentVariablesDialog.this.getWindow());
      }
    }
  });

  myWholePanel.add(useDefaultPanel, BorderLayout.SOUTH);
  setTitle(ExecutionBundle.message("environment.variables.dialog.title"));
  init();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:25,代碼來源:EnvironmentVariablesTextFieldWithBrowseButton.java

示例2: showParentEnvironmentDialog

import com.intellij.execution.util.EnvVariablesTable; //導入依賴的package包/類
public static void showParentEnvironmentDialog(@NotNull Component parent) {
  EnvVariablesTable table = new EnvVariablesTable();
  table.setValues(convertToVariables(new TreeMap<String, String>(new GeneralCommandLine().getParentEnvironment()), true));
  table.getActionsPanel().setVisible(false);
  DialogBuilder builder = new DialogBuilder(parent);
  builder.setTitle(ExecutionBundle.message("environment.variables.system.dialog.title"));
  builder.centerPanel(table.getComponent());
  builder.addCloseButton();
  builder.show();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:11,代碼來源:EnvironmentVariablesTextFieldWithBrowseButton.java

示例3: MyEnvironmentVariablesDialog

import com.intellij.execution.util.EnvVariablesTable; //導入依賴的package包/類
protected MyEnvironmentVariablesDialog() {
  super(EnvironmentVariablesComponent.this, true);
  myEnvVariablesTable = new EnvVariablesTable();
  final List<EnvironmentVariable> envVariables = new ArrayList<EnvironmentVariable>();
  for (String envVariable : myEnvs.keySet()) {
    envVariables.add(new EnvironmentVariable(envVariable, myEnvs.get(envVariable), false));
  }
  myEnvVariablesTable.setValues(envVariables);
  myUseDefaultCb.setSelected(isPassParentEnvs());
  myWholePanel.add(myEnvVariablesTable.getComponent(), BorderLayout.CENTER);
  myWholePanel.add(myUseDefaultCb, BorderLayout.SOUTH);
  setTitle(ExecutionBundle.message("environment.variables.dialog.title"));
  init();
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:15,代碼來源:EnvironmentVariablesComponent.java

示例4: showParentEnvironmentDialog

import com.intellij.execution.util.EnvVariablesTable; //導入依賴的package包/類
public static void showParentEnvironmentDialog(@Nonnull Component parent) {
  EnvVariablesTable table = new EnvVariablesTable();
  table.setValues(convertToVariables(new TreeMap<>(new GeneralCommandLine().getParentEnvironment()), true));
  table.getActionsPanel().setVisible(false);
  DialogBuilder builder = new DialogBuilder(parent);
  builder.setTitle(ExecutionBundle.message("environment.variables.system.dialog.title"));
  builder.centerPanel(table.getComponent());
  builder.addCloseButton();
  builder.show();
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:11,代碼來源:EnvironmentVariablesTextFieldWithBrowseButton.java


注:本文中的com.intellij.execution.util.EnvVariablesTable類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。