本文整理汇总了Java中consulo.annotations.DeprecationInfo类的典型用法代码示例。如果您正苦于以下问题:Java DeprecationInfo类的具体用法?Java DeprecationInfo怎么用?Java DeprecationInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeprecationInfo类属于consulo.annotations包,在下文中一共展示了DeprecationInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: qualifiedName
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@NotNull
@Deprecated
@DeprecationInfo(value = "Use #fullName()", until = "1.1")
public String qualifiedName()
{
TypeMirror parentType = parentType();
if(parentType != null)
{
return parentType.qualifiedName() + "/" + name();
}
String namespace = namespace();
if(namespace.isEmpty())
{
return name();
}
return namespace + "." + name();
}
开发者ID:consulo,项目名称:mono-soft-debugging,代码行数:19,代码来源:TypeMirror.java
示例2: updateUI
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("This is part of research 'consulo as web app'. Code was written in hacky style. Must be dropped, or replaced by Consulo UI API")
public static void updateUI(Widget widget) {
if (widget instanceof WidgetWithUpdateUI) {
((WidgetWithUpdateUI)widget).updateUI();
}
if (widget instanceof HasWidgets) {
for (Widget child : (HasWidgets)widget) {
updateUI(child);
}
}
if (widget instanceof Grid) {
Grid grid = (Grid)widget;
for (int c = 0; c < grid.getColumnCount(); c++) {
for (int r = 0; r < grid.getRowCount(); r++) {
Widget temp = grid.getWidget(r, c);
if (temp != null) {
updateUI(temp);
}
}
}
}
}
开发者ID:consulo,项目名称:consulo,代码行数:27,代码来源:GwtUIUtil.java
示例3: hacky
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("This is marker for future unify. In most case unified variant works good, but need more tests")
@SuppressWarnings("deprecation")
static void hacky(@Nonnull Runnable desktopVariant, @Nonnull Runnable unifiedVariant) {
if (ourUnifiedVariantAnyway) {
unifiedVariant.run();
return;
}
if (Platform.current().isDesktop()) {
desktopVariant.run();
}
else {
unifiedVariant.run();
}
}
开发者ID:consulo,项目名称:consulo,代码行数:17,代码来源:Platform.java
示例4: createFromTemplate
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("Use #createFromTemplate with Map parameter")
public static PsiElement createFromTemplate(@Nonnull final FileTemplate template,
@NonNls @Nullable String fileName,
@Nullable Properties props,
@Nonnull final PsiDirectory directory,
@Nullable ClassLoader classLoader) throws Exception {
Map<String, Object> map;
if (props != null) {
map = new HashMap<>();
putAll(map, props);
}
else {
map = null;
}
return createFromTemplate(template, fileName, map, directory, classLoader);
}
开发者ID:consulo,项目名称:consulo,代码行数:18,代码来源:FileTemplateUtil.java
示例5: getParameterExpressions
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Override
@NotNull
@Deprecated
@DeprecationInfo("Use #getCallArguments() due we can have named arguments")
public DotNetExpression[] getParameterExpressions()
{
CSharpCallArgumentList parameterList = getParameterList();
return parameterList == null ? DotNetExpression.EMPTY_ARRAY : parameterList.getExpressions();
}
开发者ID:consulo,项目名称:consulo-csharp,代码行数:10,代码来源:CSharpMethodCallExpressionImpl.java
示例6: getJunit3JarPath
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("Moved to junit plugin")
public static String getJunit3JarPath()
{
try
{
return PathUtil.getJarPathForClass(Class.forName("junit.runner.TestSuiteLoader")); //junit3 specific class
}
catch(ClassNotFoundException e)
{
throw new RuntimeException(e);
}
}
开发者ID:consulo,项目名称:consulo-java,代码行数:14,代码来源:JavaSdkUtil.java
示例7: getApplicationServer
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Nullable
@Deprecated
@DeprecationInfo("Use #getServerBundle()")
default Sdk getApplicationServer()
{
return getServerBundle();
}
开发者ID:consulo,项目名称:consulo-javaee,代码行数:8,代码来源:CommonModel.java
示例8: acquireWithNext
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@NotNull
@Deprecated
@DeprecationInfo("Use #acquire(path)")
public static Record acquireWithNext(@NotNull String path) throws IOException, MSILParseException
{
return acquire(path);
}
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:8,代码来源:DotNetLibraryOpenCache.java
示例9: loadingPanelDeprecated
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("This is part of research 'consulo as web app'. Code was written in hacky style. Must be dropped, or replaced by Consulo UI API")
public static Widget loadingPanelDeprecated() {
VerticalPanel verticalPanel = fillAndReturn(new VerticalPanel());
verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
verticalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
verticalPanel.add(new Label("Loading..."));
return verticalPanel;
}
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:GwtUIUtil.java
示例10: createEditor
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Nonnull
@Deprecated
@DeprecationInfo(value = "Implement interface via overriding 'createUIComponent()' method")
protected JComponent createEditor() {
Component uiComponent = createUIComponent();
if(uiComponent != null) {
return (JComponent)TargetAWT.to(uiComponent);
}
throw new AbstractMethodError("please implement 'createEditor()' or 'createUIComponent()'");
}
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:SettingsEditor.java
示例11: withPassParentEnvironment
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Nonnull
@Deprecated
@DeprecationInfo(value = "Use #withParentEnvironmentType(ParentEnvironmentType)", until = "3.0")
public GeneralCommandLine withPassParentEnvironment(boolean passParentEnvironment) {
withParentEnvironmentType(passParentEnvironment ? ParentEnvironmentType.CONSOLE : ParentEnvironmentType.NONE);
return this;
}
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:GeneralCommandLine.java
示例12: setButtonComparator
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("Use #setActionComparator(Comparator<AnAction>)")
public ToolbarDecorator setButtonComparator(Comparator<AnActionButton> buttonComparator) {
myButtonComparator = (o1, o2) -> {
if (o1 instanceof AnActionButton && o2 instanceof AnActionButton) {
return buttonComparator.compare((AnActionButton)o1, (AnActionButton)o2);
}
return 0;
};
return this;
}
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:ToolbarDecorator.java
示例13: onlyAtDesktop
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("This is marker for future unify. In most case unified variant works good, but need more tests")
@SuppressWarnings("deprecation")
static void onlyAtDesktop(@Nonnull Runnable runnable) {
if(current().isDesktop()) {
runnable.run();
}
}
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:Platform.java
示例14: getName
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
/**
* Returns the name of the file type. The name must be unique among all file types registered in the system.
*
* @return The file type name.
*/
@Override
@Nonnull
@NonNls
@Deprecated
@DeprecationInfo(value = "Use #getId(), and implement #getId()")
default String getName() {
return getId();
}
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:FileType.java
示例15: getPresentableClassName
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
/**
* {@link JavaExecutionUtil#getPresentableClassName(java.lang.String)}
*/
@DeprecationInfo("Use JavaExecutionUtil#getPresentableClassName(java.lang.String)")
@Deprecated
@Nullable
public static String getPresentableClassName(final String rtClassName, final JavaRunConfigurationModule configurationModule)
{
return getPresentableClassName(rtClassName);
}
开发者ID:consulo,项目名称:consulo-java,代码行数:11,代码来源:JavaExecutionUtil.java
示例16: getOptionValue
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
/**
* Gets the value of a custom option for this module.
*
* @param optionName the name of the custom option.
* @return the value of the custom option, or null if no value has been set.
*/
@Nullable
@Deprecated
@DeprecationInfo("Use ModuleExtension for store your variables")
default String getOptionValue(@Nonnull String optionName) {
throw new UnsupportedOperationException();
}
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:Module.java
示例17: createFileFromText
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("Use #createFileFromText() without Language parameter")
@Nullable
public abstract PsiFile createFileFromText(@Nonnull String name,
@Nonnull Language language,
@Nonnull LanguageVersion languageVersion,
@Nonnull CharSequence text,
boolean physical,
boolean markAsCopy,
boolean noSizeLimit);
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:PsiFileFactory.java
示例18: openOrImport
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Deprecated
@DeprecationInfo("ProjectUtil#open()")
@RequiredDispatchThread
@SuppressWarnings({"unused", "deprecation"})
public static Project openOrImport(@Nonnull final String path, final Project projectToClose, boolean forceOpenInNewFrame) {
return open(path, projectToClose, forceOpenInNewFrame);
}
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:ProjectUtil.java
示例19: open
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
/**
* @param path project file path
* @param projectToClose currently active project
* @param forceOpenInNewFrame forces opening in new frame
* @return project by path if the path was recognized as Consulo project file or one of the project formats supported by
* installed importers (regardless of opening/import result)
* null otherwise
*/
@Nullable
@Deprecated
@DeprecationInfo("Sync variant of #openAsync()")
public static Project open(@Nonnull final String path, final Project projectToClose, boolean forceOpenInNewFrame) {
final VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(path);
if (virtualFile == null) return null;
ProjectOpenProcessor provider = ProjectOpenProcessors.getInstance().findProcessor(VfsUtilCore.virtualToIoFile(virtualFile));
if (provider != null) {
final Project project = provider.doOpenProject(virtualFile, projectToClose, forceOpenInNewFrame);
if (project != null) {
ApplicationManager.getApplication().invokeLater(() -> {
if (!project.isDisposed()) {
final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(ToolWindowId.PROJECT_VIEW);
if (toolWindow != null) {
toolWindow.activate(null);
}
}
}, ModalityState.NON_MODAL);
}
return project;
}
return null;
}
开发者ID:consulo,项目名称:consulo,代码行数:36,代码来源:ProjectUtil.java
示例20: getIdeaRtJarPath
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@NotNull
@Deprecated
@DeprecationInfo("Use #getJavaRtJarPath()")
public static String getIdeaRtJarPath()
{
return getJavaRtJarPath();
}
开发者ID:consulo,项目名称:consulo-java,代码行数:8,代码来源:JavaSdkUtil.java
注:本文中的consulo.annotations.DeprecationInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论