mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FacetEditorTab#createComponent annotated as @NotNull
This commit is contained in:
@@ -31,6 +31,9 @@ import javax.swing.*;
|
||||
* @author nik
|
||||
*/
|
||||
public abstract class FacetEditorTab implements Configurable {
|
||||
@NotNull
|
||||
@Override
|
||||
public abstract JComponent createComponent();
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
|
||||
@@ -20,6 +20,7 @@ import com.intellij.facet.ui.FacetEditorTab;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.openapi.ui.ex.MultiLineLabel;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@@ -51,6 +52,7 @@ public class InvalidFacetEditor extends FacetEditorTab {
|
||||
return myIgnoreCheckBox;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public JComponent createComponent() {
|
||||
myIconLabel.setIcon(AllIcons.RunConfigurations.ConfigurationWarning);
|
||||
|
||||
+1
@@ -105,6 +105,7 @@ public class AppEngineFacetEditor extends FacetEditorTab {
|
||||
return "Google App Engine";
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public JComponent createComponent() {
|
||||
mySdkEditorPanel.add(BorderLayout.CENTER, mySdkEditor.getMainComponent());
|
||||
return myMainPanel;
|
||||
|
||||
@@ -23,6 +23,7 @@ import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.util.messages.MessageBusConnection;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@@ -63,6 +64,7 @@ public class PythonSdkEditorTab extends FacetEditorTab {
|
||||
return "Python SDK";
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public JComponent createComponent() {
|
||||
return myMainPanel;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ import com.intellij.openapi.util.JDOMExternalizerUtil;
|
||||
import com.intellij.openapi.util.WriteExternalException;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -102,6 +103,7 @@ public class BuildoutFacetConfiguration implements FacetConfiguration {
|
||||
return "Buildout";
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public JComponent createComponent() {
|
||||
return myPanel;
|
||||
|
||||
Reference in New Issue
Block a user