com.intellij.util.xmlb.annotations.OptionTag Java Examples
The following examples show how to use
com.intellij.util.xmlb.annotations.OptionTag.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OptionTagBinding.java From consulo with Apache License 2.0 | 6 votes |
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; } }
Example #2
Source File: ProfileEx.java From consulo with Apache License 2.0 | 5 votes |
@Override @Nonnull // ugly name to preserve compatibility @OptionTag("myName") public String getName() { return myName; }
Example #3
Source File: DefaultProjectProfileManager.java From consulo with Apache License 2.0 | 4 votes |
@Override @OptionTag("PROJECT_PROFILE") public synchronized String getProjectProfile() { return myProjectProfile; }
Example #4
Source File: ExcludedFiles.java From consulo with Apache License 2.0 | 4 votes |
@OptionTag("DO_NOT_FORMAT") public List<FileSetDescriptor.State> getDescriptors() { return myDescriptors.stream().map(descriptor -> descriptor.getState()).collect(Collectors.toList()); }
Example #5
Source File: CopyrightProfile.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @OptionTag("myName") public String getName() { return myName; }
Example #6
Source File: GeneralSettings.java From consulo with Apache License 2.0 | 2 votes |
/** * @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; }