当前位置: 首页>>代码示例>>Java>>正文


Java SvnBundle.message方法代码示例

本文整理汇总了Java中org.jetbrains.idea.svn.SvnBundle.message方法的典型用法代码示例。如果您正苦于以下问题:Java SvnBundle.message方法的具体用法?Java SvnBundle.message怎么用?Java SvnBundle.message使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jetbrains.idea.svn.SvnBundle的用法示例。


在下文中一共展示了SvnBundle.message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createConfigurable

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
public Configurable createConfigurable(final Collection<FilePath> collection) {
  if (collection.isEmpty()) return null;
  return new SvnUpdateConfigurable(myVcs.getProject()){
    protected AbstractSvnUpdatePanel createPanel() {
      return new SvnIntegratePanel(myVcs, collection);
    }

    public String getDisplayName() {
      return SvnBundle.message("integrate.display.name");
    }

    public String getHelpTopic() {
      return "reference.dialogs.versionControl.integrate.project.subversion";
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:SvnIntegrateEnvironment.java

示例2: handleWorkingCopyRoot

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
public void handleWorkingCopyRoot(File root, ProgressIndicator progress) {
  if (progress != null) {
    showProgressMessage(progress, root);
  }

  myHandler.startUpdate();
  try {
    long rev = doUpdate(root);

    if (rev < 0 && !isMerge()) {
      throw new SvnBindException(SvnBundle.message("exception.text.root.was.not.properly.updated", root));
    }
  }
  catch (VcsException e) {
    LOG.info(e);
    myExceptions.add(e);
  }
  finally {
    myHandler.finishUpdate();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:AbstractUpdateIntegrateCrawler.java

示例3: createCenterPanel

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
@Override
protected JComponent createCenterPanel() {
  JPanel panel = new JPanel(new BorderLayout(5,5));
  final JPanel wrapper = new JPanel();
  final BoxLayout boxLayout = new BoxLayout(wrapper, BoxLayout.Y_AXIS);
  wrapper.setLayout(boxLayout);
  final JLabel label = new JLabel(SvnBundle.message("label.ssh.server.provided.fingerprints", myHost));
  wrapper.add(label);
  final JLabel label2 = new JLabel(SvnBundle.message("label.ssh.server.provided.fingerprints2", myAlgorithm));
  wrapper.add(label2);
  final JTextField textField = new JTextField(myFingerprints);
  textField.setEditable(false);
  textField.setBorder(BorderFactory.createEmptyBorder(10, 0, 10, 0));
  wrapper.add(textField);
  final JLabel label3 = new JLabel(SvnBundle.message("label.ssh.server.provided.fingerprints3"));
  label3.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
  wrapper.add(label3);
  panel.add(wrapper, BorderLayout.CENTER);
  myJCheckBox = new JCheckBox(SvnBundle.message("checkbox.svn.ssh.cache.fingerprint"));
  myJCheckBox.setSelected(myStore);
  myJCheckBox.setEnabled(myStore);
  panel.add(myJCheckBox, BorderLayout.SOUTH);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:25,代码来源:ServerSSHDialog.java

示例4: doCopy

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
private void doCopy(final SVNURL src, final SVNURL dst, final boolean move, final String comment) {
  final Ref<Exception> exception = new Ref<Exception>();
  Runnable command = new Runnable() {
    public void run() {
      ProgressIndicator progress = ProgressManager.getInstance().getProgressIndicator();
      if (progress != null) {
        progress.setText((move ? SvnBundle.message("progress.text.browser.moving", src) : SvnBundle.message("progress.text.browser.copying", src)));
        progress.setText2(SvnBundle.message("progress.text.browser.remote.destination", dst));
      }
      SvnVcs vcs = SvnVcs.getInstance(myProject);
      try {
        vcs.getFactoryFromSettings().createCopyMoveClient().copy(SvnTarget.fromURL(src), SvnTarget.fromURL(dst), SVNRevision.HEAD, true,
                                                                 move, comment, null);
      }
      catch (VcsException e) {
        exception.set(e);
      }
    }
  };
  String progressTitle = move ? SvnBundle.message("progress.title.browser.move") : SvnBundle.message("progress.title.browser.copy");
  ProgressManager.getInstance().runProcessWithProgressSynchronously(command, progressTitle, false, myProject);
  if (!exception.isNull()) {
    Messages.showErrorDialog(exception.get().getMessage(), SvnBundle.message("message.text.error"));
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:RepositoryBrowserDialog.java

示例5: getBottomAuxiliaryPanel

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
@Nullable
@Override
protected JPanel getBottomAuxiliaryPanel() {
  if (! myWcRootIsAbove) {
    return null;
  }
  final JPanel result = new JPanel(new GridBagLayout());

  GridBagConstraints gb = new GridBagConstraints();

  gb.insets = new Insets(2, 2, 2, 2);
  gb.weightx = 1;
  gb.weighty = 0;
  gb.gridwidth = 2;
  gb.gridheight = 1;
  gb.gridx = 0;
  gb.gridy = 0;
  gb.anchor = GridBagConstraints.WEST;
  gb.fill = GridBagConstraints.HORIZONTAL;

  final JLabel iconLabel = new JLabel(Messages.getWarningIcon());
  result.add(iconLabel, gb);
  ++ gb.gridx;

  JLabel warningLabel = new JLabel(SvnBundle.message("label.working.copy.root.outside.text"));
  warningLabel.setFont(warningLabel.getFont().deriveFont(Font.BOLD));
  warningLabel.setUI(new MultiLineLabelUI());
  result.add(warningLabel);

  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:32,代码来源:ChangeFormatDialog.java

示例6: getColumns

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
@NotNull
public ChangeListColumn[] getColumns() {
  return new ChangeListColumn[] {
    new ChangeListColumn.ChangeListNumberColumn(SvnBundle.message("revision.title")),
    ChangeListColumn.NAME, ChangeListColumn.DATE, ChangeListColumn.DESCRIPTION
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:SvnCommittedChangesProvider.java

示例7: createCenterPanel

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
@Nullable
protected JComponent createCenterPanel() {
  JPanel panel = new JPanel(new GridBagLayout());

  GridBagConstraints gc = new GridBagConstraints();
  gc.insets = new Insets(2, 2, 2, 2);
  gc.gridwidth = 1;
  gc.gridheight = 1;
  gc.gridx = 0;
  gc.gridy = 0;
  gc.anchor = GridBagConstraints.WEST;
  gc.fill = GridBagConstraints.NONE;
  gc.weightx = 0;
  gc.weighty = 0;

  panel.add(new JLabel("Export:"), gc);
  gc.gridx += 1;
  gc.gridwidth = 2;
  gc.weightx = 1;
  gc.fill = GridBagConstraints.HORIZONTAL;
  JLabel urlLabel = new JLabel(myURL.toString());
  urlLabel.setFont(urlLabel.getFont().deriveFont(Font.BOLD));
  panel.add(urlLabel, gc);

  gc.gridy += 1;
  gc.gridwidth = 1;
  gc.gridx = 0;
  gc.weightx = 0;
  gc.fill = GridBagConstraints.NONE;
  panel.add(new JLabel("Destination:"), gc);
  gc.gridx += 1;
  gc.gridwidth = 2;
  gc.weightx = 1;
  gc.fill = GridBagConstraints.HORIZONTAL;

  myPathField = new TextFieldWithBrowseButton(this);
  myPathField.setText(myFile.getAbsolutePath());
  myPathField.setEditable(false);
  panel.add(myPathField, gc);

  gc.gridy += 1;
  gc.gridx = 0;
  gc.weightx = 0;
  gc.gridwidth = 3;
  gc.fill = GridBagConstraints.NONE;

  // other options.
  final JLabel depthLabel = new JLabel(SvnBundle.message("label.depth.text"));
  depthLabel.setToolTipText(SvnBundle.message("label.depth.description"));
  panel.add(depthLabel, gc);
  ++ gc.gridx;
  myDepth = new DepthCombo(false);
  panel.add(myDepth, gc);
  depthLabel.setLabelFor(myDepth);

  gc.gridx = 0;
  gc.gridy += 1;
  myForceCheckbox = new JCheckBox("Replace existing files");
  myForceCheckbox.setSelected(true);
  panel.add(myForceCheckbox, gc);
  gc.gridy += 1;
  myExternalsCheckbox = new JCheckBox("Include externals locations");
  myExternalsCheckbox.setSelected(true);
  panel.add(myExternalsCheckbox, gc);
  gc.gridy += 1;
  gc.gridwidth = 2;
  panel.add(new JLabel("Override 'native' EOLs with:"), gc);
  gc.gridx += 2;
  gc.gridwidth = 1;
  myEOLStyleBox = new JComboBox(new Object[] {"None", "LF", "CRLF", "CR"});
  panel.add(myEOLStyleBox, gc);
  gc.gridy += 1;
  gc.gridwidth = 3;
  gc.gridx = 0;
  gc.weightx = 1;
  gc.weighty = 1;
  gc.anchor = GridBagConstraints.SOUTH;
  gc.fill = GridBagConstraints.HORIZONTAL;
  panel.add(new JSeparator(), gc);
  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:82,代码来源:ExportOptionsDialog.java

示例8: message

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
@NotNull
private String message(@NotNull String key) {
  return SvnBundle.message(String.format(key, myMarkAsMerged ? "merged" : "not.merged"));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RootsAndBranches.java

示例9: getActionName

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
protected String getActionName(AbstractVcs vcs) {
  return SvnBundle.message("action.name.resolve.conflict");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ResolveAction.java

示例10: EditLocationAction

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
public EditLocationAction(@NotNull RepositoryBrowserComponent browserComponent) {
  super(SvnBundle.message("repository.browser.edit.location.menu.item"));
  myBrowserComponent = browserComponent;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RepositoryBrowserDialog.java

示例11: getActionName

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
protected String getActionName(AbstractVcs vcs) {
  return SvnBundle.message("action.name.mark.resolved");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:MarkResolvedAction.java

示例12: MyRefresh

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
private MyRefresh() {
  super(SvnBundle.message("committed.changes.action.merge.highlighting.refresh.text"),
        SvnBundle.message("committed.changes.action.merge.highlighting.refresh.description"), AllIcons.Actions.Refresh);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:RootsAndBranches.java

示例13: getChangeNumberTitle

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
@Override
protected String getChangeNumberTitle() {
  return SvnBundle.message("revision.title");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:SvnVersionFilterComponent.java

示例14: ShowPropertiesDiffWithLocalAction

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
public ShowPropertiesDiffWithLocalAction() {
  super(SvnBundle.message("action.Subversion.properties.diff.with.local.name"));
  myIcon = SvnIcons.PropertiesDiffWithLocal;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ShowPropertiesDiffWithLocalAction.java

示例15: getActionName

import org.jetbrains.idea.svn.SvnBundle; //导入方法依赖的package包/类
protected String getActionName(final AbstractVcs vcs) {
  return SvnBundle.message("action.name.ignore.files");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:AddToIgnoreListAction.java


注:本文中的org.jetbrains.idea.svn.SvnBundle.message方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。