本文整理汇总了Java中consulo.annotations.DeprecationInfo类的典型用法代码示例。如果您正苦于以下问题:Java DeprecationInfo类的具体用法?Java DeprecationInfo怎么用?Java DeprecationInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeprecationInfo类属于consulo.annotations包,在下文中一共展示了DeprecationInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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);
}
}
}
}
}
示例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();
}
}
示例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);
}
示例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();
}
示例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);
}
}
示例7: getApplicationServer
import consulo.annotations.DeprecationInfo; //导入依赖的package包/类
@Nullable
@Deprecated
@DeprecationInfo("Use #getServerBundle()")
default Sdk getApplicationServer()
{
return getServerBundle();
}
示例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);
}
示例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;
}
示例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()'");
}
示例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;
}
示例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;
}
示例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();
}
}
示例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();
}
示例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);
}