mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
platform: deprecated APIs dropped
This commit is contained in:
@@ -66,9 +66,6 @@ public class AnalysisScope {
|
||||
public static final int VIRTUAL_FILES = 9;
|
||||
public static final int UNCOMMITTED_FILES = 10;
|
||||
|
||||
/** @deprecated use {@linkplain #UNCOMMITTED_FILES} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration") public static final int UNCOMMITED_FILES = UNCOMMITTED_FILES;
|
||||
|
||||
@MagicConstant(intValues = {PROJECT, DIRECTORY, FILE, MODULE, INVALID, MODULES, CUSTOM, VIRTUAL_FILES, UNCOMMITTED_FILES})
|
||||
public @interface Type { }
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,42 +17,10 @@ package com.intellij.lang;
|
||||
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.psi.tree.TokenSet;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class PsiBuilderUtil {
|
||||
private PsiBuilderUtil() { }
|
||||
|
||||
/**
|
||||
* @deprecated use {@linkplain PsiBuilder#lookAhead(int)} (to remove in IDEA 13)
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Nullable
|
||||
public static IElementType nextTokenType(final PsiBuilder builder) {
|
||||
return builder.lookAhead(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@linkplain PsiBuilder#lookAhead(int)} (to remove in IDEA 13)
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public static boolean lookAhead(final PsiBuilder builder, final IElementType... tokenTypes) {
|
||||
if (tokenTypes.length == 0) return true;
|
||||
|
||||
if (!tokenTypes[0].equals(builder.getTokenType())) return false;
|
||||
|
||||
if (tokenTypes.length == 1) return true;
|
||||
|
||||
final PsiBuilder.Marker rb = builder.mark();
|
||||
builder.advanceLexer();
|
||||
int i = 1;
|
||||
while (!builder.eof() && i < tokenTypes.length && tokenTypes[i].equals(builder.getTokenType())) {
|
||||
builder.advanceLexer();
|
||||
i++;
|
||||
}
|
||||
rb.rollbackTo();
|
||||
return i == tokenTypes.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Advances lexer by given number of tokens (but not beyond the end of token stream).
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -107,11 +107,6 @@ public interface Project extends ComponentManager, AreaInstance {
|
||||
@NonNls
|
||||
String getLocationHash();
|
||||
|
||||
/** @deprecated please use {@linkplain #getPresentableUrl()} or {@linkplain #getBasePath()} (to remove in IDEA 13) */
|
||||
@Nullable
|
||||
@NonNls
|
||||
String getLocation();
|
||||
|
||||
/**
|
||||
* Should be invoked under WriteAction.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -70,12 +70,6 @@ public abstract class VirtualFileManager implements ModificationTracker {
|
||||
*/
|
||||
public abstract long asyncRefresh(@Nullable Runnable postAction);
|
||||
|
||||
/** @deprecated use {@linkplain #syncRefresh()} or {@linkplain #asyncRefresh(Runnable)} (to remove in IDEA 13) */
|
||||
public abstract void refresh(boolean asynchronous);
|
||||
|
||||
/** @deprecated use {@linkplain #syncRefresh()} or {@linkplain #asyncRefresh(Runnable)} (to remove in IDEA 13) */
|
||||
public abstract void refresh(boolean asynchronous, @Nullable Runnable postAction);
|
||||
|
||||
public abstract void refreshWithoutFileWatcher(boolean asynchronous);
|
||||
|
||||
/**
|
||||
|
||||
@@ -99,10 +99,4 @@ public interface CommonClassNames {
|
||||
@NonNls String JAVA_LANG_INVOKE_MH_POLYMORPHIC = "java.lang.invoke.MethodHandle.PolymorphicSignature";
|
||||
|
||||
@NonNls String CLASS_FILE_EXTENSION = ".class";
|
||||
|
||||
/** @deprecated not that common (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration") @NonNls String JAVA_SQL_DATE = "java.sql.Date";
|
||||
|
||||
/** @deprecated use {@link #JAVA_LANG_ANNOTATION_TARGET} (to remove in IDEA 14) */
|
||||
@SuppressWarnings("UnusedDeclaration") @NonNls String TARGET_ANNOTATION_FQ_NAME = JAVA_LANG_ANNOTATION_TARGET;
|
||||
}
|
||||
|
||||
@@ -17,9 +17,7 @@ package com.intellij.psi;
|
||||
|
||||
import com.intellij.lang.ASTNode;
|
||||
import com.intellij.psi.stubs.StubElement;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author max
|
||||
@@ -27,8 +25,5 @@ import org.jetbrains.annotations.Nullable;
|
||||
public interface StubBuilder {
|
||||
StubElement buildStubTree(@NotNull PsiFile file);
|
||||
|
||||
/**
|
||||
* @deprecated use/implement {@linkplain com.intellij.psi.stubs.DefaultStubBuilder#skipChildProcessingWhenBuildingStubs(ASTNode, ASTNode)}
|
||||
* (to remove in IDEA 13) */
|
||||
boolean skipChildProcessingWhenBuildingStubs(@Nullable ASTNode parent, IElementType childType);
|
||||
boolean skipChildProcessingWhenBuildingStubs(@NotNull ASTNode parent, @NotNull ASTNode node);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -51,10 +51,6 @@ public abstract class SuggestedNameInfo {
|
||||
*/
|
||||
public void nameChosen(String name) { }
|
||||
|
||||
/** @deprecated override {@linkplain #nameChosen(String)} instead (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public void nameChoosen(String name) { nameChosen(name); }
|
||||
|
||||
public static class Delegate extends SuggestedNameInfo {
|
||||
SuggestedNameInfo myDelegate;
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ import com.intellij.psi.StubBuilder;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.util.containers.Stack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author max
|
||||
@@ -123,14 +122,9 @@ public class DefaultStubBuilder implements StubBuilder {
|
||||
|
||||
/**
|
||||
* Note to implementers: always keep in sync with {@linkplain #skipChildProcessingWhenBuildingStubs(PsiElement, PsiElement)}.
|
||||
* todo[r.sh] move to interface (IDEA 13)
|
||||
*/
|
||||
public boolean skipChildProcessingWhenBuildingStubs(@NotNull ASTNode parent, @NotNull ASTNode node) {
|
||||
return skipChildProcessingWhenBuildingStubs(parent, node.getElementType());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean skipChildProcessingWhenBuildingStubs(@Nullable ASTNode parent, IElementType childType) {
|
||||
public boolean skipChildProcessingWhenBuildingStubs(@NotNull ASTNode parent, @NotNull ASTNode node) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,35 +159,19 @@ public class LightStubBuilder implements StubBuilder {
|
||||
|
||||
/**
|
||||
* Note to implementers: always keep in sync with {@linkplain #skipChildProcessingWhenBuildingStubs(LighterAST, LighterASTNode, LighterASTNode)}.
|
||||
* todo[r.sh] move to interface (IDEA 13)
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public boolean skipChildProcessingWhenBuildingStubs(@NotNull ASTNode parent, @NotNull ASTNode node) {
|
||||
return skipChildProcessingWhenBuildingStubs(parent, node.getElementType());
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Note to implementers: always keep in sync with {@linkplain #skipChildProcessingWhenBuildingStubs(ASTNode, ASTNode)}.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
protected boolean skipChildProcessingWhenBuildingStubs(@NotNull LighterAST tree, @NotNull LighterASTNode parent, @NotNull LighterASTNode node) {
|
||||
return skipChildProcessingWhenBuildingStubs(parent.getTokenType(), node.getTokenType());
|
||||
}
|
||||
|
||||
/** @deprecated override {@linkplain #skipChildProcessingWhenBuildingStubs(ASTNode, ASTNode)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public final boolean skipChildProcessingWhenBuildingStubs(@Nullable ASTNode parent, IElementType childType) {
|
||||
return skipChildProcessingWhenBuildingStubs(parent != null ? parent.getElementType() : null, childType);
|
||||
}
|
||||
|
||||
/** @deprecated override {@linkplain #skipChildProcessingWhenBuildingStubs(LighterAST, LighterASTNode, LighterASTNode)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("unused")
|
||||
public boolean skipChildProcessingWhenBuildingStubs(final IElementType parent, final IElementType childType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
private static class FCTSBackedLighterAST extends LighterAST {
|
||||
private final FlyweightCapableTreeStructure<LighterASTNode> myTreeStructure;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,14 +34,12 @@ public class TokenSet {
|
||||
|
||||
private final short myShift;
|
||||
private final short myMax;
|
||||
private final short myTop;
|
||||
private final long[] myWords;
|
||||
private volatile IElementType[] myTypes;
|
||||
|
||||
private TokenSet(short shift, short max) {
|
||||
myShift = shift;
|
||||
myMax = max;
|
||||
myTop = IElementType.getAllocatedTypesCount();
|
||||
final int size = (max >> 6) + 1 - shift;
|
||||
myWords = size > 0 ? new long[size] : ArrayUtil.EMPTY_LONG_ARRAY;
|
||||
}
|
||||
@@ -193,24 +191,4 @@ public class TokenSet {
|
||||
}
|
||||
return newSet;
|
||||
}
|
||||
|
||||
/** @deprecated please use {@linkplain #andNot(TokenSet, TokenSet)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@NotNull
|
||||
public TokenSet minus(@NotNull TokenSet t) {
|
||||
return andNot(this, t);
|
||||
}
|
||||
|
||||
/** @deprecated please use {@linkplain IElementType#enumerate(com.intellij.psi.tree.IElementType.Predicate)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@NotNull
|
||||
public static TokenSet not(@NotNull TokenSet set) {
|
||||
final TokenSet newSet = new TokenSet((short)0, set.myTop);
|
||||
for (int i = 0; i < newSet.myWords.length; i++) {
|
||||
int wordIndex = i - set.myShift;
|
||||
long word = wordIndex >= 0 && wordIndex < set.myWords.length ? set.myWords[wordIndex] : 0;
|
||||
newSet.myWords[i] = ~word;
|
||||
}
|
||||
return newSet;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -99,13 +99,6 @@ public class MockProject extends MockComponentManager implements Project {
|
||||
return "mock";
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
@NonNls
|
||||
public String getLocation() {
|
||||
throw new UnsupportedOperationException("Method getLocation not implemented in " + getClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getProjectFilePath() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -93,16 +93,6 @@ public class VirtualFileManagerImpl extends VirtualFileManagerEx {
|
||||
return doRefresh(true, postAction);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refresh(boolean asynchronous) {
|
||||
doRefresh(asynchronous, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refresh(boolean asynchronous, @Nullable final Runnable postAction) {
|
||||
doRefresh(asynchronous, postAction);
|
||||
}
|
||||
|
||||
protected long doRefresh(boolean asynchronous, @Nullable Runnable postAction) {
|
||||
if (!asynchronous) {
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
|
||||
@@ -274,28 +274,28 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
@Override
|
||||
protected void visitNode(TreeElement node) {
|
||||
CompositeElement parent = node.getTreeParent();
|
||||
if (parent != null && TreeUtil.skipNode(builder, parent, node)) {
|
||||
if (parent != null && builder.skipChildProcessingWhenBuildingStubs(parent, node)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
IElementType type = node.getElementType();
|
||||
if (type instanceof IStubElementType && ((IStubElementType)type).shouldCreateStub(node)) {
|
||||
if (!stubs.hasNext()) {
|
||||
reportStubAstMismatch("Stub list is less than AST, last AST element: " + node.getElementType() + " " + node, stubTree, cachedDocument);
|
||||
}
|
||||
|
||||
|
||||
final StubElement stub = stubs.next();
|
||||
if (stub.getStubType() != node.getElementType()) {
|
||||
reportStubAstMismatch("Stub and PSI element type mismatch in " + getName() + ": stub " + stub + ", AST " +
|
||||
node.getElementType() + "; " + node, stubTree, cachedDocument);
|
||||
}
|
||||
|
||||
|
||||
PsiElement psi = stub.getPsi();
|
||||
assert psi != null : "Stub " + stub + " (" + stub.getClass() + ") has returned null PSI";
|
||||
result.add(Pair.create((StubBasedPsiElementBase)psi, (CompositeElement)node));
|
||||
}
|
||||
|
||||
|
||||
super.visitNode(node);
|
||||
}
|
||||
});
|
||||
@@ -319,7 +319,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
msg += ", modStamp=" + getModificationStamp();
|
||||
msg += "\n stub debugInfo=" + stubTree.getDebugInfo();
|
||||
msg += "\n document before=" + cachedDocument;
|
||||
|
||||
|
||||
ObjectStubTree latestIndexedStub = StubTreeLoader.getInstance().readFromVFile(getProject(), getVirtualFile());
|
||||
msg += "\nlatestIndexedStub=" + latestIndexedStub;
|
||||
if (latestIndexedStub != null) {
|
||||
@@ -330,7 +330,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
FileViewProvider viewProvider = getViewProvider();
|
||||
msg += "\n viewProvider=" + viewProvider;
|
||||
msg += "\n viewProvider stamp: " + viewProvider.getModificationStamp();
|
||||
|
||||
|
||||
VirtualFile file = viewProvider.getVirtualFile();
|
||||
msg += "; file stamp: " + file.getModificationStamp();
|
||||
msg += "; file modCount: " + file.getModificationCount();
|
||||
@@ -698,7 +698,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
if (getTreeElement() != null) return null;
|
||||
|
||||
if (!(getContentElementType() instanceof IStubFileElementType)) return null;
|
||||
|
||||
|
||||
final VirtualFile vFile = getVirtualFile();
|
||||
if (!(vFile instanceof VirtualFileWithId)) return null;
|
||||
|
||||
|
||||
@@ -400,7 +400,7 @@ public class TreeUtil {
|
||||
@Override
|
||||
protected void visitNode(TreeElement node) {
|
||||
CompositeElement parent = node.getTreeParent();
|
||||
if (parent != null && skipNode(builder, parent, node)) {
|
||||
if (parent != null && builder.skipChildProcessingWhenBuildingStubs(parent, node)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -419,17 +419,4 @@ public class TreeUtil {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public static boolean skipNode(@NotNull StubBuilder builder, @NotNull ASTNode parent, @NotNull ASTNode node) {
|
||||
if (builder instanceof DefaultStubBuilder) {
|
||||
return ((DefaultStubBuilder)builder).skipChildProcessingWhenBuildingStubs(parent, node);
|
||||
}
|
||||
else if (builder instanceof LightStubBuilder) {
|
||||
return ((LightStubBuilder)builder).skipChildProcessingWhenBuildingStubs(parent, node);
|
||||
}
|
||||
else {
|
||||
return builder.skipChildProcessingWhenBuildingStubs(parent, node.getElementType());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.util;
|
||||
|
||||
import com.intellij.reference.SoftReference;
|
||||
|
||||
import java.lang.ref.ReferenceQueue;
|
||||
|
||||
/** @deprecated use {@link SoftReference} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public class PatchedSoftReference<T> extends SoftReference<T> {
|
||||
public PatchedSoftReference(final T referent) {
|
||||
super(referent);
|
||||
}
|
||||
|
||||
public PatchedSoftReference(final T referent, final ReferenceQueue<? super T> q) {
|
||||
super(referent, q);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -80,11 +80,6 @@ public class MockProject implements Project {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocation() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
@@ -161,20 +161,8 @@ public abstract class ActionManager implements ApplicationComponent {
|
||||
|
||||
public abstract void addTransparentTimerListener(int delay, TimerListener listener);
|
||||
|
||||
/** @deprecated use {@linkplain #addTransparentTimerListener(int, TimerListener)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public void addTransparrentTimerListener(int delay, TimerListener listener) {
|
||||
addTransparentTimerListener(delay, listener);
|
||||
}
|
||||
|
||||
public abstract void removeTransparentTimerListener(TimerListener listener);
|
||||
|
||||
/** @deprecated use {@linkplain #removeTransparentTimerListener(TimerListener)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public void removeTransparrentTimerListener(TimerListener listener) {
|
||||
removeTransparentTimerListener(listener);
|
||||
}
|
||||
|
||||
public abstract ActionCallback tryToExecute(@NotNull AnAction action, @NotNull InputEvent inputEvent, @Nullable Component contextComponent,
|
||||
@Nullable String place, boolean now);
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ import com.intellij.openapi.roots.ProjectRootManager;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.vfs.VirtualFilePathWrapper;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -35,9 +34,6 @@ import javax.swing.*;
|
||||
* @author max
|
||||
*/
|
||||
public class ProjectUtil {
|
||||
/** @deprecated use {@linkplain Project#DIRECTORY_STORE_FOLDER} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration") @NonNls public static final String DIRECTORY_BASED_PROJECT_DIR = Project.DIRECTORY_STORE_FOLDER;
|
||||
|
||||
private ProjectUtil() { }
|
||||
|
||||
@Nullable
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package com.intellij.execution;
|
||||
|
||||
import com.intellij.execution.configurations.GeneralCommandLine;
|
||||
import com.intellij.execution.executors.DefaultRunExecutor;
|
||||
import com.intellij.execution.process.OSProcessHandler;
|
||||
import com.intellij.execution.process.ProcessHandler;
|
||||
import com.intellij.execution.process.ProcessOutput;
|
||||
import com.intellij.execution.ui.RunContentDescriptor;
|
||||
@@ -257,23 +256,6 @@ public class ExecutionHelper {
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated use lookup by user data (to remove in IDEA 13) */
|
||||
public static Collection<RunContentDescriptor> findRunningConsoleByCmdLine(final Project project,
|
||||
@NotNull final NotNullFunction<String, Boolean> cmdLineMatcher) {
|
||||
return findRunningConsole(project, new NotNullFunction<RunContentDescriptor, Boolean>() {
|
||||
@NotNull
|
||||
@Override
|
||||
public Boolean fun(RunContentDescriptor selectedContent) {
|
||||
final ProcessHandler processHandler = selectedContent.getProcessHandler();
|
||||
if (processHandler instanceof OSProcessHandler && !processHandler.isProcessTerminated()) {
|
||||
final String commandLine = ((OSProcessHandler)processHandler).getCommandLine();
|
||||
return cmdLineMatcher.fun(commandLine);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public static Collection<RunContentDescriptor> findRunningConsoleByTitle(final Project project,
|
||||
@NotNull final NotNullFunction<String, Boolean> titleMatcher) {
|
||||
return findRunningConsole(project, new NotNullFunction<RunContentDescriptor, Boolean>() {
|
||||
|
||||
+1
-20
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,7 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.intellij.openapi.projectRoots.impl;
|
||||
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
@@ -42,24 +41,6 @@ public class SdkListCellRenderer extends ColoredListCellRendererWrapper<Sdk> {
|
||||
myShowHomePath = showHomePath;
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #SdkListCellRenderer(String)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public SdkListCellRenderer(final ListCellRenderer listCellRenderer) {
|
||||
this("");
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #SdkListCellRenderer(String)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public SdkListCellRenderer(final String nullText, final ListCellRenderer listCellRenderer) {
|
||||
this(nullText);
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #SdkListCellRenderer(String, boolean)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public SdkListCellRenderer(final String nullText, final boolean showHomePath, final ListCellRenderer listCellRenderer) {
|
||||
this(nullText, showHomePath);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doCustomize(final JList list, final Sdk sdk, final int index, final boolean selected, final boolean hasFocus) {
|
||||
if (sdk != null) {
|
||||
|
||||
@@ -233,19 +233,6 @@ public class FileChooserDescriptor implements Cloneable {
|
||||
myRoots.addAll(roots);
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #setRoots(com.intellij.openapi.vfs.VirtualFile...)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public final void setRoot(VirtualFile root) {
|
||||
myRoots.clear();
|
||||
myRoots.add(root);
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #setRoots(com.intellij.openapi.vfs.VirtualFile...)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public final void addRoot(VirtualFile root) {
|
||||
myRoots.add(root);
|
||||
}
|
||||
|
||||
public boolean isTreeRootVisible() {
|
||||
return myIsTreeRootVisible;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,26 +29,6 @@ public abstract class FileChooserFactory {
|
||||
return ServiceManager.getService(FileChooserFactory.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@linkplain #createFileChooser(FileChooserDescriptor, com.intellij.openapi.project.Project, java.awt.Component)}
|
||||
* (to remove in IDEA 13)
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@NotNull
|
||||
public FileChooserDialog createFileChooser(@NotNull FileChooserDescriptor descriptor, @Nullable Project project) {
|
||||
return createFileChooser(descriptor, project, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@linkplain #createFileChooser(FileChooserDescriptor, com.intellij.openapi.project.Project, java.awt.Component)}
|
||||
* (to remove in IDEA 13)
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@NotNull
|
||||
public FileChooserDialog createFileChooser(@NotNull FileChooserDescriptor descriptor, @NotNull Component parent) {
|
||||
return createFileChooser(descriptor, null, parent);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public abstract FileChooserDialog createFileChooser(@NotNull FileChooserDescriptor descriptor,
|
||||
@Nullable Project project,
|
||||
@@ -93,4 +73,4 @@ public abstract class FileChooserFactory {
|
||||
@NotNull FileChooserDescriptor descriptor,
|
||||
boolean showHidden,
|
||||
@Nullable Disposable parent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,12 +93,6 @@ public class DialogBuilder implements Disposable {
|
||||
myTitle = title;
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #setPreferredFocusComponent(JComponent)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings({"UnusedDeclaration", "SpellCheckingInspection"})
|
||||
public void setPreferedFocusComponent(JComponent component) {
|
||||
setPreferredFocusComponent(component);
|
||||
}
|
||||
|
||||
public void setPreferredFocusComponent(JComponent component) {
|
||||
myPreferedFocusComponent = component;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
package com.intellij.openapi.ui;
|
||||
|
||||
import com.intellij.openapi.util.ActionCallback;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -23,7 +24,6 @@ import java.awt.*;
|
||||
import java.awt.event.KeyListener;
|
||||
import java.awt.event.MouseListener;
|
||||
import java.awt.event.MouseMotionListener;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class DialogWrapperPeer {
|
||||
public static Object HAVE_INITIAL_SELECTION = new Object();
|
||||
@@ -151,15 +151,11 @@ public abstract class DialogWrapperPeer {
|
||||
public abstract void repaint();
|
||||
public abstract void pack();
|
||||
|
||||
/** @deprecated use {@linkplain Window#setIconImages(List)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public abstract void setIconImages(List<Image> image);
|
||||
|
||||
public abstract void setAppIcons();
|
||||
|
||||
public abstract boolean isHeadless();
|
||||
|
||||
public Object[] getCurrentModalEntities() {
|
||||
return new Object[0];
|
||||
return ArrayUtil.EMPTY_OBJECT_ARRAY;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -266,12 +266,6 @@ public abstract class MasterDetailsComponent implements Configurable, DetailsCom
|
||||
myListeners.add(l);
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #getPanelPreferredSize()} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
protected Dimension getPanelPrefferedSize() {
|
||||
return getPanelPreferredSize();
|
||||
}
|
||||
|
||||
protected Dimension getPanelPreferredSize() {
|
||||
return new Dimension(800, 600);
|
||||
}
|
||||
@@ -584,13 +578,6 @@ public abstract class MasterDetailsComponent implements Configurable, DetailsCom
|
||||
return null;
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #getSelectedConfigurable()} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Nullable
|
||||
public NamedConfigurable getSelectedConfugurable() {
|
||||
return getSelectedConfigurable();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public NamedConfigurable getSelectedConfigurable() {
|
||||
final TreePath selectionPath = myTree.getSelectionPath();
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.openapi.util;
|
||||
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
/** @deprecated use {@linkplain com.intellij.openapi.ui.Messages#showPasswordDialog(String, String)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public class PasswordPromptDialog extends DialogWrapper {
|
||||
private JPasswordField myPasswordField;
|
||||
private final String myPrompt;
|
||||
private final String myDefaultValue;
|
||||
|
||||
public PasswordPromptDialog(String prompt, final String title, @Nullable final String defaultValue) {
|
||||
super(true);
|
||||
myDefaultValue = defaultValue;
|
||||
setTitle(title);
|
||||
myPrompt = prompt;
|
||||
init();
|
||||
}
|
||||
|
||||
protected JComponent createNorthPanel() {
|
||||
return new JLabel(myPrompt);
|
||||
}
|
||||
|
||||
protected JComponent createCenterPanel() {
|
||||
myPasswordField = new JPasswordField();
|
||||
|
||||
if (myDefaultValue != null) {
|
||||
myPasswordField.setText(myDefaultValue);
|
||||
}
|
||||
|
||||
return myPasswordField;
|
||||
}
|
||||
|
||||
public JComponent getPreferredFocusedComponent() {
|
||||
return myPasswordField;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return new String(myPasswordField.getPassword());
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -15,9 +15,6 @@
|
||||
*/
|
||||
package com.intellij.openapi.util;
|
||||
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class PasswordUtil {
|
||||
private PasswordUtil() { }
|
||||
|
||||
@@ -44,11 +41,4 @@ public class PasswordUtil {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain Messages#showPasswordDialog(String, String)} (to remove in IDEA 13) */
|
||||
@Nullable
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public static String requestPassword(String prompt, String title, final String defaultValue) {
|
||||
return Messages.showPasswordDialog(prompt, title);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -66,10 +66,6 @@ public abstract class RefreshQueue {
|
||||
session.launch();
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #refresh(boolean, boolean, Runnable, ModalityState, VirtualFile...)} with {@linkplain ManagingFS#getLocalRoots()} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public abstract void refreshLocalRoots(boolean async, @Nullable Runnable postAction, @NotNull ModalityState modalityState);
|
||||
|
||||
public abstract void processSingleEvent(@NotNull VFileEvent event);
|
||||
|
||||
public abstract void cancelSession(long id);
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.openapi.vfs.watcher;
|
||||
|
||||
/** @deprecated not an API (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public enum ChangeKind {
|
||||
CREATE,
|
||||
DELETE,
|
||||
STATS,
|
||||
CHANGE,
|
||||
DIRTY,
|
||||
RECDIRTY,
|
||||
RESET
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.openapi.vfs.watcher;
|
||||
|
||||
/** @deprecated not an API (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public class NotAvailableException extends RuntimeException {
|
||||
}
|
||||
@@ -114,9 +114,6 @@ public abstract class WindowManager {
|
||||
@NotNull
|
||||
public abstract IdeFrame[] getAllProjectFrames();
|
||||
|
||||
/** @deprecated Use {@linkplain #getAllProjectFrames()} instead (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration") public IdeFrame[] getAllFrames() { return getAllProjectFrames(); }
|
||||
|
||||
public abstract JFrame findVisibleFrame();
|
||||
|
||||
public abstract void addListener(WindowManagerListener listener);
|
||||
|
||||
@@ -388,10 +388,4 @@ public class GuiUtils {
|
||||
invokeAndWait(runnable);
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated call {@link Application#invokeAndWait(Runnable, ModalityState)} directly (to remove in IDEA 13). */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public static void invokeAndWaitIfNeeded(@NotNull Runnable runnable, @NotNull ModalityState modalityState) {
|
||||
ApplicationManager.getApplication().invokeAndWait(runnable, modalityState);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -40,17 +40,12 @@ public abstract class ListCellRendererWrapper<T> implements ListCellRenderer {
|
||||
private Color myBackground;
|
||||
private Font myFont;
|
||||
|
||||
@SuppressWarnings("UndesirableClassUsage")
|
||||
public ListCellRendererWrapper() {
|
||||
myDefaultRenderer = new JComboBox().getRenderer();
|
||||
assert myDefaultRenderer != null : "LaF: " + UIManager.getLookAndFeel();
|
||||
}
|
||||
|
||||
/** @deprecated please use {@linkplain #ListCellRendererWrapper()} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration") public ListCellRendererWrapper(final JComboBox comboBox) { this(); }
|
||||
|
||||
/** @deprecated please use {@linkplain #ListCellRendererWrapper()} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration") public ListCellRendererWrapper(final ListCellRenderer listCellRenderer) { this(); }
|
||||
|
||||
public final Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
|
||||
mySeparator = false;
|
||||
myIcon = null;
|
||||
@@ -75,7 +70,7 @@ public abstract class ListCellRendererWrapper<T> implements ListCellRenderer {
|
||||
return separator;
|
||||
}
|
||||
|
||||
final Component component = myDefaultRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
||||
@SuppressWarnings("unchecked") final Component component = myDefaultRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
|
||||
if (component instanceof JLabel) {
|
||||
final JLabel label = (JLabel)component;
|
||||
label.setIcon(myIcon);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -109,16 +109,6 @@ public class RunnerMediator {
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated use {@link SystemInfo#isUnix} (to remove in IDEA 13) */
|
||||
public static boolean isUnix() {
|
||||
return SystemInfo.isUnix;
|
||||
}
|
||||
|
||||
/** @deprecated use {@link SystemInfo#isWindows} (to remove in IDEA 13) */
|
||||
public static boolean isWindows() {
|
||||
return SystemInfo.isWindows;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroys process tree: in case of windows via imitating ctrl+break, in case of unix via sending sig_kill to every process in tree.
|
||||
* @param process to kill with all sub-processes.
|
||||
|
||||
@@ -253,11 +253,6 @@ public class ShowFilePathAction extends AnAction {
|
||||
return fileManagerName.getValue();
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #openFile(java.io.File)} (to remove in IDEA 13) */
|
||||
public static void open(@NotNull final File ioFile, @Nullable final File toSelect) {
|
||||
openFile(toSelect != null && toSelect.exists() ? toSelect : ioFile);
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows system file manager with given file's parent directory open and the file highlighted in it<br/>
|
||||
* (note that not all platforms support highlighting).
|
||||
|
||||
@@ -274,14 +274,6 @@ public class ProjectUtil {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@linkplain com.intellij.openapi.project.ProjectUtil#isProjectOrWorkspaceFile(com.intellij.openapi.vfs.VirtualFile)} (to remove in IDEA 13)
|
||||
*/
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public static boolean isProjectOrWorkspaceFile(final VirtualFile file) {
|
||||
return com.intellij.openapi.project.ProjectUtil.isProjectOrWorkspaceFile(file);
|
||||
}
|
||||
|
||||
public static String getBaseDir() {
|
||||
final String lastProjectLocation = GeneralSettings.getInstance().getLastProjectCreationLocation();
|
||||
if (lastProjectLocation != null) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -71,13 +71,6 @@ public class DummyProject extends UserDataHolderBase implements Project {
|
||||
return "dummy";
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
@NonNls
|
||||
public String getLocation() {
|
||||
throw new UnsupportedOperationException("Method getLocation not implemented in " + getClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getProjectFilePath() {
|
||||
|
||||
+1
-6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -197,11 +197,6 @@ public class DefaultProjectStoreImpl extends ProjectStoreImpl {
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocation() {
|
||||
throw new UnsupportedOperationException("Method getLocation not implemented in " + getClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void load() throws IOException, StateStorageException {
|
||||
if (myElement == null) return;
|
||||
|
||||
+2
-9
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -44,10 +44,6 @@ public interface IProjectStore extends IComponentStore {
|
||||
@Nullable
|
||||
String getProjectBasePath();
|
||||
|
||||
/** @deprecated please use {@linkplain #getPresentableUrl()} or {@linkplain #getProjectBaseDir()} (to remove in IDEA 13) */
|
||||
@Nullable
|
||||
String getLocation();
|
||||
|
||||
@NotNull
|
||||
String getProjectName();
|
||||
|
||||
@@ -62,6 +58,7 @@ public interface IProjectStore extends IComponentStore {
|
||||
boolean reload(@NotNull Set<Pair<VirtualFile,StateStorage>> changedFiles) throws StateStorageException, IOException;
|
||||
|
||||
//------ This methods should be got rid of
|
||||
/** @deprecated to remove in IDEA 14 */
|
||||
void loadProject() throws IOException, JDOMException, InvalidDataException, StateStorageException;
|
||||
|
||||
@Nullable
|
||||
@@ -72,10 +69,6 @@ public interface IProjectStore extends IComponentStore {
|
||||
|
||||
void loadProjectFromTemplate(@NotNull ProjectImpl project);
|
||||
|
||||
/** @deprecated please use {@linkplain #getProjectFile()} (to remove in IDEA 13) */
|
||||
@NotNull
|
||||
String getProjectFileName();
|
||||
|
||||
@NotNull
|
||||
String getProjectFilePath();
|
||||
}
|
||||
|
||||
+7
-23
@@ -272,21 +272,6 @@ class ProjectStoreImpl extends BaseFileConfigurableStoreImpl implements IProject
|
||||
return myScheme == StorageScheme.DEFAULT ? file.getParent() : file.getParentFile().getParent();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocation() {
|
||||
if (myCachedLocation == null) {
|
||||
if (myScheme == StorageScheme.DEFAULT) {
|
||||
myCachedLocation = getProjectFilePath();
|
||||
}
|
||||
else {
|
||||
final VirtualFile baseDir = getProjectBaseDir();
|
||||
myCachedLocation = baseDir == null ? null : baseDir.getPath();
|
||||
}
|
||||
}
|
||||
|
||||
return myCachedLocation;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getProjectName() {
|
||||
@@ -330,6 +315,13 @@ class ProjectStoreImpl extends BaseFileConfigurableStoreImpl implements IProject
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private String getProjectFileName() {
|
||||
final FileBasedStorage storage = (FileBasedStorage)getStateStorageManager().getFileStateStorage(StoragePathMacros.PROJECT_FILE);
|
||||
assert storage != null;
|
||||
return storage.getFileName();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public StorageScheme getStorageScheme() {
|
||||
@@ -388,14 +380,6 @@ class ProjectStoreImpl extends BaseFileConfigurableStoreImpl implements IProject
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getProjectFileName() {
|
||||
final FileBasedStorage storage = (FileBasedStorage)getStateStorageManager().getFileStateStorage(StoragePathMacros.PROJECT_FILE);
|
||||
assert storage != null;
|
||||
return storage.getFileName();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getProjectFilePath() {
|
||||
|
||||
@@ -280,15 +280,6 @@ public class ProjectImpl extends ComponentManagerImpl implements ProjectEx {
|
||||
return prefix + Integer.toHexString(str.hashCode());
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Nullable
|
||||
@NonNls
|
||||
@Override
|
||||
public String getLocation() {
|
||||
if (myName == null) return null; // was called before initialized
|
||||
return isDisposed() ? null : getStateStore().getLocation();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VirtualFile getWorkspaceFile() {
|
||||
|
||||
@@ -356,12 +356,6 @@ public class DialogWrapperPeerImpl extends DialogWrapperPeer implements FocusTra
|
||||
myDialog.pack();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public void setIconImages(final List<Image> images) {
|
||||
myDialog.getWindow().setIconImages(images);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAppIcons() {
|
||||
AppUIUtil.updateWindowIcon(getWindow());
|
||||
|
||||
+2
-8
@@ -51,7 +51,6 @@ import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author spleaner
|
||||
@@ -104,7 +103,7 @@ public class GlassPaneDialogWrapperPeer extends DialogWrapperPeer implements Foc
|
||||
}
|
||||
|
||||
public GlassPaneDialogWrapperPeer(DialogWrapper wrapper, boolean canBeParent) throws GlasspanePeerUnavailableException {
|
||||
this(wrapper, (Project) null, canBeParent);
|
||||
this(wrapper, (Project)null, canBeParent);
|
||||
}
|
||||
|
||||
public GlassPaneDialogWrapperPeer(DialogWrapper wrapper, @NotNull Component parent, boolean canBeParent)
|
||||
@@ -145,8 +144,7 @@ public class GlassPaneDialogWrapperPeer extends DialogWrapperPeer implements Foc
|
||||
if (myDialog != null) {
|
||||
return myDialog.getFocusTrackback();
|
||||
}
|
||||
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setUndecorated(final boolean undecorated) {
|
||||
@@ -318,10 +316,6 @@ public class GlassPaneDialogWrapperPeer extends DialogWrapperPeer implements Foc
|
||||
public void pack() {
|
||||
}
|
||||
|
||||
public void setIconImages(final List<Image> image) {
|
||||
throw new UnsupportedOperationException("Not implemented in " + getClass().getCanonicalName());
|
||||
}
|
||||
|
||||
public void setAppIcons() {
|
||||
throw new UnsupportedOperationException("Not implemented in " + getClass().getCanonicalName());
|
||||
}
|
||||
|
||||
@@ -135,11 +135,6 @@ public class RefreshQueueImpl extends RefreshQueue {
|
||||
return new RefreshSessionImpl(async, recursively, finishRunnable, state);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refreshLocalRoots(boolean async, @Nullable Runnable postAction, @NotNull ModalityState modalityState) {
|
||||
RefreshQueue.getInstance().refresh(async, true, postAction, modalityState, ManagingFS.getInstance().getLocalRoots());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processSingleEvent(@NotNull VFileEvent event) {
|
||||
new RefreshSessionImpl(Collections.singletonList(event)).launch();
|
||||
|
||||
@@ -33,7 +33,6 @@ import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@@ -51,18 +50,6 @@ public class AppUIUtil {
|
||||
window.setIconImages(getAppIconImages());
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #updateWindowIcon(Window)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public static void updateFrameIcon(final Frame frame) {
|
||||
updateWindowIcon(frame);
|
||||
}
|
||||
|
||||
/** @deprecated use {@linkplain #updateWindowIcon(Window)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
public static void updateDialogIcon(final JDialog dialog) {
|
||||
updateWindowIcon(dialog);
|
||||
}
|
||||
|
||||
@SuppressWarnings({"UnnecessaryFullyQualifiedName", "deprecation"})
|
||||
private static List<Image> getAppIconImages() {
|
||||
ApplicationInfoEx appInfo = ApplicationInfoImpl.getShadowInstance();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -93,24 +93,13 @@ public class TokenSetTest {
|
||||
check(TokenSet.andSet(S12, S34));
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Test
|
||||
public void andNot() throws Exception {
|
||||
final TokenSet S123 = TokenSet.orSet(S12, S3);
|
||||
check(S123.minus(S12), T3);
|
||||
check(S123.minus(S5), T1, T2, T3);
|
||||
check(TokenSet.andNot(S123, S12), T3);
|
||||
check(TokenSet.andNot(S123, S5), T1, T2, T3);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Test
|
||||
public void not() throws Exception {
|
||||
checkNot(TokenSet.not(S12), T1, T2);
|
||||
checkNot(TokenSet.not(S34), T3, T4);
|
||||
checkNot(TokenSet.not(S5), T5);
|
||||
}
|
||||
|
||||
private static void fakeElements(int from, int to) {
|
||||
for (int i = from; i <= to; i++) {
|
||||
new IElementType("Test element #" + i, Language.ANY);
|
||||
@@ -129,18 +118,6 @@ public class TokenSetTest {
|
||||
}
|
||||
}
|
||||
|
||||
private static void checkNot(@NotNull TokenSet set, @NotNull IElementType... elements) {
|
||||
final Set<IElementType> expected = ContainerUtil.newHashSet(elements);
|
||||
for (IElementType t : Arrays.asList(T1, T2, T3, T4, T5, T6)) {
|
||||
if (!expected.contains(t)) {
|
||||
assertTrue("missed: " + t, set.contains(t));
|
||||
}
|
||||
else {
|
||||
assertFalse("unexpected: " + t, set.contains(t));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void performance() throws Exception {
|
||||
|
||||
+1
-18
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,16 +22,11 @@ import com.intellij.openapi.roots.DependencyScope;
|
||||
import com.intellij.openapi.roots.LibraryOrSdkOrderEntry;
|
||||
import com.intellij.openapi.roots.OrderRootType;
|
||||
import com.intellij.openapi.roots.RootProvider;
|
||||
import com.intellij.openapi.vfs.VfsUtilCore;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import com.intellij.util.NullableFunction;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author dsl
|
||||
*/
|
||||
@@ -69,18 +64,6 @@ abstract class LibraryOrderEntryBaseImpl extends OrderEntryBaseImpl implements L
|
||||
return rootProvider != null ? rootProvider.getFiles(type) : VirtualFile.EMPTY_ARRAY;
|
||||
}
|
||||
|
||||
/** @deprecated has no sense (to remove in IDEA 13) */
|
||||
@SuppressWarnings({"MethodMayBeStatic", "UnusedDeclaration"})
|
||||
protected VirtualFile[] filterDirectories(@NotNull VirtualFile[] files) {
|
||||
List<VirtualFile> filtered = ContainerUtil.mapNotNull(files, new NullableFunction<VirtualFile, VirtualFile>() {
|
||||
@Override
|
||||
public VirtualFile fun(@NotNull VirtualFile file) {
|
||||
return file.isDirectory() ? file : null;
|
||||
}
|
||||
});
|
||||
return VfsUtilCore.toVirtualFileArray(filtered);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected abstract RootProvider getRootProvider();
|
||||
|
||||
|
||||
+1
-13
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,21 +31,9 @@ public abstract class PersistentLibraryKind<P extends LibraryProperties> extends
|
||||
super(kindId);
|
||||
}
|
||||
|
||||
/** @deprecated 'fileBased' has no sense, use {@linkplain #PersistentLibraryKind(String)} (to remove in IDEA 13) */
|
||||
@SuppressWarnings("UnusedParameters")
|
||||
public PersistentLibraryKind(@NotNull @NonNls String kindId, boolean fileBased) {
|
||||
super(kindId);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public abstract P createDefaultProperties();
|
||||
|
||||
/** @deprecated has no sense (to remove in IDEA 13) */
|
||||
@SuppressWarnings({"UnusedDeclaration", "MethodMayBeStatic"})
|
||||
public boolean isFileBased() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public OrderRootType[] getAdditionalRootTypes() {
|
||||
return new OrderRootType[0];
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -53,5 +53,4 @@ public class MockProjectEx extends MockProject implements ProjectEx {
|
||||
public void setOptimiseTestLoadSpeed(final boolean optimiseTestLoadSpeed) {
|
||||
throw new UnsupportedOperationException("Method setOptimiseTestLoadSpeed not implemented in " + getClass());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -70,11 +70,6 @@ public class MockProjectStore implements IProjectStore {
|
||||
throw new UnsupportedOperationException("Method getProjectBasePath is not yet implemented in " + getClass().getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocation() {
|
||||
throw new UnsupportedOperationException("Method getLocation not implemented in " + getClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getProjectName() {
|
||||
@@ -109,12 +104,6 @@ public class MockProjectStore implements IProjectStore {
|
||||
throw new UnsupportedOperationException("Method loadProjectFromTemplate is not yet implemented in " + getClass().getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getProjectFileName() {
|
||||
throw new UnsupportedOperationException("Method getProjectFileName is not yet implemented in " + getClass().getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getProjectFilePath() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,8 +18,6 @@ package com.intellij.openapi.vcs.impl;
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.openapi.vcs.AbstractVcs;
|
||||
import com.intellij.openapi.vcs.checkin.BaseCheckinHandlerFactory;
|
||||
import com.intellij.openapi.vcs.checkin.VcsCheckinHandlerFactory;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -35,31 +33,4 @@ public abstract class CheckinHandlersManager {
|
||||
* @return the list of registered factories
|
||||
*/
|
||||
public abstract List<BaseCheckinHandlerFactory> getRegisteredCheckinHandlerFactories(AbstractVcs<?>[] allActiveVcss);
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
/**
|
||||
* @deprecated to remove in IDEA 13
|
||||
*/
|
||||
public abstract List<VcsCheckinHandlerFactory> getMatchingVcsFactories(@NotNull final List<AbstractVcs> keys);
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
/**
|
||||
* @deprecated to remove in IDEA 13, use EP {@link com.intellij.openapi.vcs.checkin.CheckinHandlerFactory#EP_NAME}
|
||||
* Registers a factory which provides callbacks to run before and after VCS checkin operations.
|
||||
*
|
||||
* @param factory the factory to register.
|
||||
*/
|
||||
public abstract void registerCheckinHandlerFactory(BaseCheckinHandlerFactory factory);
|
||||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
@Deprecated
|
||||
/**
|
||||
* @deprecated to remove in IDEA 13, use EP {@link com.intellij.openapi.vcs.checkin.CheckinHandlerFactory#EP_NAME}
|
||||
* Unregister a factory which provides callbacks to run before and after VCS checkin operations.
|
||||
*
|
||||
* @param factory the factory to unregister.
|
||||
*/
|
||||
public abstract void unregisterCheckinHandlerFactory(BaseCheckinHandlerFactory factory);
|
||||
}
|
||||
|
||||
+2
-27
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,10 +20,8 @@ import com.intellij.openapi.vcs.VcsKey;
|
||||
import com.intellij.openapi.vcs.checkin.BaseCheckinHandlerFactory;
|
||||
import com.intellij.openapi.vcs.checkin.CheckinHandlerFactory;
|
||||
import com.intellij.openapi.vcs.checkin.VcsCheckinHandlerFactory;
|
||||
import com.intellij.util.SmartList;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.containers.MultiMap;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
@@ -44,8 +42,7 @@ public class CheckinHandlersManagerImpl extends CheckinHandlersManager {
|
||||
|
||||
@Override
|
||||
public List<BaseCheckinHandlerFactory> getRegisteredCheckinHandlerFactories(AbstractVcs<?>[] allActiveVcss) {
|
||||
final List<BaseCheckinHandlerFactory> list =
|
||||
new ArrayList<BaseCheckinHandlerFactory>(myRegisteredBeforeCheckinHandlers.size() + allActiveVcss.length);
|
||||
final List<BaseCheckinHandlerFactory> list = new ArrayList<BaseCheckinHandlerFactory>(myRegisteredBeforeCheckinHandlers.size() + allActiveVcss.length);
|
||||
list.addAll(myRegisteredBeforeCheckinHandlers);
|
||||
for (AbstractVcs vcs : allActiveVcss) {
|
||||
final Collection<VcsCheckinHandlerFactory> factories = myVcsMap.get(vcs.getKeyInstanceMethod());
|
||||
@@ -55,26 +52,4 @@ public class CheckinHandlersManagerImpl extends CheckinHandlersManager {
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<VcsCheckinHandlerFactory> getMatchingVcsFactories(@NotNull List<AbstractVcs> vcsList) {
|
||||
final List<VcsCheckinHandlerFactory> result = new SmartList<VcsCheckinHandlerFactory>();
|
||||
for (AbstractVcs vcs : vcsList) {
|
||||
final Collection<VcsCheckinHandlerFactory> factories = myVcsMap.get(vcs.getKeyInstanceMethod());
|
||||
if (!factories.isEmpty()) {
|
||||
result.addAll(factories);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerCheckinHandlerFactory(BaseCheckinHandlerFactory factory) {
|
||||
myRegisteredBeforeCheckinHandlers.add(factory);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unregisterCheckinHandlerFactory(BaseCheckinHandlerFactory handler) {
|
||||
myRegisteredBeforeCheckinHandlers.remove(handler);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -306,7 +306,7 @@ public class GitPullDialog extends DialogWrapper {
|
||||
* @return a list cell renderer for virtual files (it renders presentable URL
|
||||
*/
|
||||
public ListCellRendererWrapper<GitRemote> getGitRemoteListCellRenderer(final String defaultRemote) {
|
||||
return new ListCellRendererWrapper<GitRemote>(myRemote) {
|
||||
return new ListCellRendererWrapper<GitRemote>() {
|
||||
@Override
|
||||
public void customize(final JList list, final GitRemote remote, final int index, final boolean selected, final boolean hasFocus) {
|
||||
final String text;
|
||||
|
||||
Reference in New Issue
Block a user