mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
Code samples: Change the CONTINUATION_INDENT_SIZE from 8 to 4 and reformat code.
We use INDENT_SIZE = 2 and continuation size should be at most 4 in this case.
This commit is contained in:
parent
9519c2e9e3
commit
e87f195b80
@ -18,6 +18,7 @@ import java.awt.*;
|
|||||||
* Manages validation and modification of the {@link DemoFacet} state.
|
* Manages validation and modification of the {@link DemoFacet} state.
|
||||||
*/
|
*/
|
||||||
public class DemoFacetEditorTab extends FacetEditorTab {
|
public class DemoFacetEditorTab extends FacetEditorTab {
|
||||||
|
|
||||||
private static final String FACET_PANEL_PROMPT = "Path To SDK: ";
|
private static final String FACET_PANEL_PROMPT = "Path To SDK: ";
|
||||||
|
|
||||||
private final DemoFacetState mySettings;
|
private final DemoFacetState mySettings;
|
||||||
@ -84,7 +85,7 @@ public class DemoFacetEditorTab extends FacetEditorTab {
|
|||||||
try {
|
try {
|
||||||
String newTextContent = myPath.getText();
|
String newTextContent = myPath.getText();
|
||||||
mySettings.setDemoFacetState(newTextContent);
|
mySettings.setDemoFacetState(newTextContent);
|
||||||
} catch(Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ConfigurationException(e.toString());
|
throw new ConfigurationException(e.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
import javax.swing.Icon;
|
import javax.swing.Icon;
|
||||||
|
|
||||||
public class SimpleStructureAwareNavbar extends StructureAwareNavBarModelExtension {
|
public class SimpleStructureAwareNavbar extends StructureAwareNavBarModelExtension {
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
protected Language getLanguage() {
|
protected Language getLanguage() {
|
||||||
|
@ -39,4 +39,5 @@ public class SimpleStructureViewModel extends StructureViewModelBase implements
|
|||||||
protected Class<?> @NotNull [] getSuitableClasses() {
|
protected Class<?> @NotNull [] getSuitableClasses() {
|
||||||
return new Class[]{SimpleProperty.class};
|
return new Class[]{SimpleProperty.class};
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ public class SimpleUtil {
|
|||||||
}
|
}
|
||||||
element = element.getPrevSibling();
|
element = element.getPrevSibling();
|
||||||
}
|
}
|
||||||
return StringUtil.join(Lists.reverse(result),"\n ");
|
return StringUtil.join(Lists.reverse(result), "\n ");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -102,5 +102,7 @@ public class CalendarToolWindowFactory implements ToolWindowFactory, DumbAware {
|
|||||||
public JPanel getContentPanel() {
|
public JPanel getContentPanel() {
|
||||||
return contentPanel;
|
return contentPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user