Java 类com.intellij.util.xmlb.annotations.OptionTag 实例源码

项目:intellij-ce-playground    文件:OptionTagBinding.java   
public OptionTagBinding(@NotNull MutableAccessor accessor, @Nullable OptionTag optionTag) {
  super(accessor, optionTag == null ? null : optionTag.value(), optionTag == null ? null : optionTag.converter());

  if (optionTag == null) {
    myTagName = Constants.OPTION;
    myNameAttribute = Constants.NAME;
    myValueAttribute = Constants.VALUE;
  }
  else {
    myNameAttribute = optionTag.nameAttribute();
    myValueAttribute = optionTag.valueAttribute();

    String tagName = optionTag.tag();
    if (StringUtil.isEmpty(myNameAttribute) && Constants.OPTION.equals(tagName)) {
      tagName = myAccessor.getName();
    }
    myTagName = tagName;
  }
}
项目:tools-idea    文件:OptionTagBinding.java   
public OptionTagBinding(Accessor accessor, @Nullable OptionTag optionTag) {
  this.accessor = accessor;
  myBinding = XmlSerializerImpl.getBinding(accessor);
  if (optionTag != null) {
    String name = optionTag.value();
    myName = name.isEmpty() ? accessor.getName() : name;
    myTagName = optionTag.tag();
    myNameAttribute = optionTag.nameAttribute();
    myValueAttribute = optionTag.valueAttribute();
  }
  else {
    myName = accessor.getName();
    myTagName = Constants.OPTION;
    myNameAttribute = Constants.NAME;
    myValueAttribute = Constants.VALUE;
  }
}
项目:consulo    文件:OptionTagBinding.java   
public OptionTagBinding(@Nonnull MutableAccessor accessor, @Nullable OptionTag optionTag) {
  super(accessor, optionTag == null ? null : optionTag.value(), optionTag == null ? null : optionTag.converter());

  if (optionTag == null) {
    myTagName = Constants.OPTION;
    myNameAttribute = Constants.NAME;
    myValueAttribute = Constants.VALUE;
  }
  else {
    myNameAttribute = optionTag.nameAttribute();
    myValueAttribute = optionTag.valueAttribute();

    String tagName = optionTag.tag();
    if (StringUtil.isEmpty(myNameAttribute) && Constants.OPTION.equals(tagName)) {
      tagName = myAccessor.getName();
    }
    myTagName = tagName;
  }
}
项目:intellij-ce-playground    文件:ProfileEx.java   
@Override
@NotNull
// ugly name to preserve compatibility
@OptionTag("myName")
public String getName() {
  return myName;
}
项目:consulo    文件:ProfileEx.java   
@Override
@Nonnull
// ugly name to preserve compatibility
@OptionTag("myName")
public String getName() {
  return myName;
}
项目:consulo-java    文件:GenericDebuggerRunnerSettings.java   
@Override
@OptionTag("DEBUG_PORT")
public String getDebugPort()
{
    //noinspection deprecation
    return DEBUG_PORT;
}
项目:intellij-ce-playground    文件:JavaLineBreakpointProperties.java   
@OptionTag("lambda-ordinal")
public Integer getLambdaOrdinal() {
  return myLambdaOrdinal;
}
项目:intellij-ce-playground    文件:JavaBreakpointProperties.java   
@OptionTag("count-filter-enabled")
public boolean isCOUNT_FILTER_ENABLED() {
  return COUNT_FILTER_ENABLED;
}
项目:intellij-ce-playground    文件:JavaBreakpointProperties.java   
@OptionTag("count-filter")
public int getCOUNT_FILTER() {
  return COUNT_FILTER;
}
项目:intellij-ce-playground    文件:JavaBreakpointProperties.java   
@OptionTag("class-filters-enabled")
public boolean isCLASS_FILTERS_ENABLED() {
  return CLASS_FILTERS_ENABLED;
}
项目:intellij-ce-playground    文件:JavaBreakpointProperties.java   
@OptionTag("instance-filters-enabled")
public boolean isINSTANCE_FILTERS_ENABLED() {
  return INSTANCE_FILTERS_ENABLED;
}
项目:intellij-ce-playground    文件:GenericDebuggerRunnerSettings.java   
@Override
@OptionTag("DEBUG_PORT")
public String getDebugPort() {
  //noinspection deprecation
  return DEBUG_PORT;
}
项目:intellij-ce-playground    文件:DefaultProjectProfileManager.java   
@Override
@OptionTag("PROJECT_PROFILE")
public synchronized String getProjectProfile() {
  return myProjectProfile;
}
项目:intellij-ce-playground    文件:GeneralSettings.java   
@OptionTag("autoSyncFiles")
public boolean isSyncOnFrameActivation() {
  return mySyncOnFrameActivation;
}
项目:intellij-ce-playground    文件:GeneralSettings.java   
@OptionTag("autoSaveFiles")
public boolean isSaveOnFrameDeactivation() {
  return mySaveOnFrameDeactivation;
}
项目:intellij-ce-playground    文件:DaemonCodeAnalyzerSettings.java   
@OptionTag(value = "SHOW_ADD_IMPORT_HINTS")
public boolean isImportHintEnabled() {
  return myShowAddImportHints;
}
项目:intellij-ce-playground    文件:DaemonCodeAnalyzerSettings.java   
@OptionTag(value = "SUPPRESS_WARNINGS")
public boolean isSuppressWarnings() {
  return mySuppressWarnings;
}
项目:intellij-ce-playground    文件:PyDocumentationSettings.java   
@SuppressWarnings("unused")
@OptionTag("myDocStringFormat")
@NotNull
public String getFormatName() {
  return myDocStringFormat.getName();
}
项目:intellij-ce-playground    文件:MavenRunnerParameters.java   
@Deprecated // Must be used by XML Serializer only!!!
@OptionTag("profiles")
public Collection<String> getEnabledProfilesForXmlSerializer() {
  return myEnabledProfilesForXmlSerializer;
}
项目:intellij-ce-playground    文件:MavenRunnerParameters.java   
@OptionTag("profilesMap")
@MapAnnotation(sortBeforeSave = false)
public Map<String, Boolean> getProfilesMap() {
  return myProfilesMap;
}
项目:tools-idea    文件:MavenRunnerParameters.java   
@Deprecated // Must be used by XML Serializer only!!!
@OptionTag("profiles")
public Collection<String> getEnabledProfilesForXmlSerializer() {
  return myEnabledProfilesForXmlSerializer;
}
项目:tools-idea    文件:MavenRunnerParameters.java   
@OptionTag("profilesMap")
@MapAnnotation(sortBeforeSave = false)
public Map<String, Boolean> getProfilesMap() {
  return myProfilesMap;
}
项目:consulo-javaee    文件:TomcatLocalModel.java   
@OptionTag("DEPLOY_TOMCAT_APPS")
public boolean isDeployTomcatApps()
{
    return myDeployTomcatApps;
}
项目:consulo-javaee    文件:TomcatLocalModel.java   
@OptionTag("BASE_DIRECTORY_NAME")
public String getBaseDirectoryName()
{
    return myBaseDirectoryName;
}
项目:consulo-javaee    文件:TomcatLocalModel.java   
@OptionTag("HTTP_PORT")
public int getHttpPort()
{
    return myHttpPort;
}
项目:consulo-javaee    文件:TomcatLocalModel.java   
@OptionTag("HTTPS_PORT")
public int getHttpsPort()
{
    return myHttpsPort;
}
项目:consulo-javaee    文件:TomcatLocalModel.java   
@OptionTag("PRESERVE_SESSIONS")
public boolean isPreserveSessions()
{
    return myPreserveSessions;
}
项目:consulo-javaee    文件:TomcatLocalModel.java   
@OptionTag("JNDI_PORT")
public int getJndiPort()
{
    return myJndiPort;
}
项目:consulo-javaee    文件:TomcatLocalModel.java   
@OptionTag("AJP_PORT")
public int getAjpPort()
{
    return myAjpPort;
}
项目:consulo-dotnet    文件:DotNetLineBreakpointProperties.java   
@Nullable
@OptionTag("executable-children-at-line-index")
public Integer getExecutableChildrenAtLineIndex()
{
    return myExecutableChildrenAtLineIndex;
}
项目:consulo    文件:DefaultProjectProfileManager.java   
@Override
@OptionTag("PROJECT_PROFILE")
public synchronized String getProjectProfile() {
  return myProjectProfile;
}
项目:consulo-java    文件:JavaLineBreakpointProperties.java   
@OptionTag("lambda-ordinal")
public Integer getLambdaOrdinal() {
    return myLambdaOrdinal;
}
项目:consulo-java    文件:JavaBreakpointProperties.java   
@OptionTag("count-filter-enabled")
public boolean isCOUNT_FILTER_ENABLED()
{
    return COUNT_FILTER_ENABLED;
}
项目:consulo-java    文件:JavaBreakpointProperties.java   
@OptionTag("count-filter")
public int getCOUNT_FILTER()
{
    return COUNT_FILTER;
}
项目:consulo-java    文件:JavaBreakpointProperties.java   
@OptionTag("class-filters-enabled")
public boolean isCLASS_FILTERS_ENABLED()
{
    return CLASS_FILTERS_ENABLED;
}
项目:consulo-java    文件:JavaBreakpointProperties.java   
@OptionTag("instance-filters-enabled")
public boolean isINSTANCE_FILTERS_ENABLED()
{
    return INSTANCE_FILTERS_ENABLED;
}
项目:intellij-ce-playground    文件:GeneralSettings.java   
/**
 * @return
 * <ul>
 * <li>{@link GeneralSettings#OPEN_PROJECT_NEW_WINDOW} if new project should be opened in new window
 * <li>{@link GeneralSettings#OPEN_PROJECT_SAME_WINDOW} if new project should be opened in same window
 * <li>{@link GeneralSettings#OPEN_PROJECT_ASK} if a confirmation dialog should be shown
 * </ul>
 */
@OpenNewProjectOption
@OptionTag("confirmOpenNewProject2")
public int getConfirmOpenNewProject() {
  return myConfirmOpenNewProject;
}
项目:consulo    文件:GeneralSettings.java   
/**
 * @return <ul>
 * <li>{@link GeneralSettings#OPEN_PROJECT_NEW_WINDOW} if new project should be opened in new window
 * <li>{@link GeneralSettings#OPEN_PROJECT_SAME_WINDOW} if new project should be opened in same window
 * <li>{@link GeneralSettings#OPEN_PROJECT_ASK} if a confirmation dialog should be shown
 * </ul>
 */
@OpenNewProjectOption
@OptionTag("confirmOpenNewProject2")
public int getConfirmOpenNewProject() {
  return myConfirmOpenNewProject;
}