@Override public synchronized OptionsPanelController create() { if (panelController == null) { HintsManager manager = HintsProvider.HintsManager.getManagerForMimeType(FileUtils.PHP_MIME_TYPE); assert manager != null; panelController = manager.getOptionsController(); } return panelController; }
@Override public String getRhsHtml(HtmlFormatter formatter) { String retType = ""; if (returnType != null) { retType = returnType; } formatter.appendText(retType); return formatter.getText(); }
@Override public String getRhsHtml(HtmlFormatter formatter) { if (description != null) { //formatter.appendText(description); formatter.appendHtml(description); return formatter.getText(); } else { return null; } }
EditList getEditList() throws Exception { EditList edits = new EditList(doc); edits.setFormatAll(true); for (String methodScope : fixInfo.methodSkeletons) { edits.replace(fixInfo.newMethodsOffset, 0, methodScope, true, 0); } return edits; } }
public static boolean isMatchingBracketsEnabled(BaseDocument doc) { EditorOptions options = EditorOptions.get(GroovyTokenId.GROOVY_MIME_TYPE); if (options != null) { return options.getMatchBrackets(); } return true; } }
private void appendReturnType(HtmlFormatter formatter, String returnType) { if (returnType != null) { formatter.appendHtml(" : "); formatter.parameters(true); formatter.appendHtml(returnType); formatter.parameters(false); } }
@Override public Configuration getConfiguration() { return new Configuration(false, false, 0); } }
public void implement() throws Exception { skip(fqn); // Trigger rescan context.manager.refreshHints(context); }
@Override public int compare(OffsetRange o1, OffsetRange o2) { return o1.compareTo(o2); } });
@Override public String getHtml(HtmlFormatter formatter) { formatter.appendText(name); return formatter.getText(); }
public boolean isInsertMatchingEnabled(BaseDocument doc) { // The editor options code is calling methods on BaseOptions instead of looking in the settings map :( //Boolean b = ((Boolean)Settings.getValue(doc.getKitClass(), SettingsNames.PAIR_CHARACTERS_COMPLETION)); //return b == null || b.booleanValue(); EditorOptions options = EditorOptions.get(RubyInstallation.RUBY_MIME_TYPE); if (options != null) { return options.getMatchBrackets(); } return true; }
public synchronized OptionsPanelController create() { if ( panelController == null ) { HintsManager manager = HintsManager.getManagerForMimeType (JsTokenId.JAVASCRIPT_MIME_TYPE); //looks like ergonomics IDE can cause the manager or the language is not found if(manager == null) { return null; } panelController = manager.getOptionsController(); } return panelController; }
@Override public String getHtml(HtmlFormatter formatter) { formatter.appendText(simpleText); return formatter.getText(); }
public static boolean isInsertMatchingEnabled() { EditorOptions options = EditorOptions.get(FileUtils.PHP_MIME_TYPE); if (options != null) { return options.getMatchBrackets(); } return true; }
@Override public String getRhsHtml(HtmlFormatter formatter) { // TODO - include table name somewhere? formatter.appendText(type); return formatter.getText(); }