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; } }
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; } }
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; } }
@Override @NotNull // ugly name to preserve compatibility @OptionTag("myName") public String getName() { return myName; }
@Override @Nonnull // ugly name to preserve compatibility @OptionTag("myName") public String getName() { return myName; }
@Override @OptionTag("DEBUG_PORT") public String getDebugPort() { //noinspection deprecation return DEBUG_PORT; }
@OptionTag("lambda-ordinal") public Integer getLambdaOrdinal() { return myLambdaOrdinal; }
@OptionTag("count-filter-enabled") public boolean isCOUNT_FILTER_ENABLED() { return COUNT_FILTER_ENABLED; }
@OptionTag("count-filter") public int getCOUNT_FILTER() { return COUNT_FILTER; }
@OptionTag("class-filters-enabled") public boolean isCLASS_FILTERS_ENABLED() { return CLASS_FILTERS_ENABLED; }
@OptionTag("instance-filters-enabled") public boolean isINSTANCE_FILTERS_ENABLED() { return INSTANCE_FILTERS_ENABLED; }
@Override @OptionTag("PROJECT_PROFILE") public synchronized String getProjectProfile() { return myProjectProfile; }
@OptionTag("autoSyncFiles") public boolean isSyncOnFrameActivation() { return mySyncOnFrameActivation; }
@OptionTag("autoSaveFiles") public boolean isSaveOnFrameDeactivation() { return mySaveOnFrameDeactivation; }
@OptionTag(value = "SHOW_ADD_IMPORT_HINTS") public boolean isImportHintEnabled() { return myShowAddImportHints; }
@OptionTag(value = "SUPPRESS_WARNINGS") public boolean isSuppressWarnings() { return mySuppressWarnings; }
@SuppressWarnings("unused") @OptionTag("myDocStringFormat") @NotNull public String getFormatName() { return myDocStringFormat.getName(); }
@Deprecated // Must be used by XML Serializer only!!! @OptionTag("profiles") public Collection<String> getEnabledProfilesForXmlSerializer() { return myEnabledProfilesForXmlSerializer; }
@OptionTag("profilesMap") @MapAnnotation(sortBeforeSave = false) public Map<String, Boolean> getProfilesMap() { return myProfilesMap; }
@OptionTag("DEPLOY_TOMCAT_APPS") public boolean isDeployTomcatApps() { return myDeployTomcatApps; }
@OptionTag("BASE_DIRECTORY_NAME") public String getBaseDirectoryName() { return myBaseDirectoryName; }
@OptionTag("HTTP_PORT") public int getHttpPort() { return myHttpPort; }
@OptionTag("HTTPS_PORT") public int getHttpsPort() { return myHttpsPort; }
@OptionTag("PRESERVE_SESSIONS") public boolean isPreserveSessions() { return myPreserveSessions; }
@OptionTag("JNDI_PORT") public int getJndiPort() { return myJndiPort; }
@OptionTag("AJP_PORT") public int getAjpPort() { return myAjpPort; }
@Nullable @OptionTag("executable-children-at-line-index") public Integer getExecutableChildrenAtLineIndex() { return myExecutableChildrenAtLineIndex; }
/** * @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; }
/** * @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; }