Package altn8

Examples of altn8.AlternateFileGroup


    }

    @Test
    public void testMatches() throws Exception {
        // prepare test
        AlternateConfiguration configuration = new AlternateConfiguration();
        configuration.freeRegexActive = false;
        configuration.genericRegexActive = true;

        // make our tests
View Full Code Here


    }

    @Test
    public void testMatchesCaseInsensitive() throws Exception {
        // prepare test
        AlternateConfiguration configuration = new AlternateConfiguration();
        configuration.freeRegexActive = false;
        configuration.genericRegexActive = true;
        configuration.caseInsensitiveBasename = true;

        // make our tests
View Full Code Here

    }

    @Test
    public void testMatches() throws Exception {
        // prepare test
        AlternateConfiguration configuration = new AlternateConfiguration();
        configuration.freeRegexActive = true;
        configuration.genericRegexActive = false;
        configuration.freeRegexItems.clear();
        // java file finds Test and properties
        configuration.freeRegexItems.add(AlternateFreeRegexItem.of("^(.*?)\\.java$", "$1Test.java"));
View Full Code Here

     */
    public static void showDialog(@NotNull String title, @NotNull AlternateFreeRegexItem currentItem, @NotNull AbstractDataPanel.Runnable<AlternateFreeRegexItem> runnable) {
        AlternateFreeRegexItemDialog dialog = new AlternateFreeRegexItemDialog(title, currentItem);
        dialog.show();
        if (dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) {
            AlternateFreeRegexItem newItem = dialog.getItem();
            if (!newItem.equals(currentItem) && !newItem.isEmpty()) {
                runnable.run(newItem);
            }
        }
    }
View Full Code Here

                public int getColumnCount() {
                    return TABLECOLUMNS.length;
                }

                public Object getValueAt(int rowIndex, int columnIndex) {
                    AlternateFreeRegexItem item = getItems().get(rowIndex);
                    switch (columnIndex) {
                        case TABLECOLUMN_MATCHEXPRESSION:
                            return item.matchExpression;
                        case TABLECOLUMN_REPLACEEXPRESSION:
                            return item.replaceExpression;
View Full Code Here

                public int getColumnCount() {
                    return TABLECOLUMNS.length;
                }

                public Object getValueAt(int rowIndex, int columnIndex) {
                    AlternateGenericFileExtensionRegexItem item = getItems().get(rowIndex);
                    switch (columnIndex) {
                        case TABLECOLUMN_FILEEXTENSION:
                            return item.fileExtension;
                    }
                    throw new IllegalArgumentException("Unknown column index: " + columnIndex);
View Full Code Here

     */
    public static void showDialog(@NotNull String title, @NotNull AlternateGenericFileExtensionRegexItem currentItem, @NotNull AbstractDataPanel.Runnable<AlternateGenericFileExtensionRegexItem> runnable) {
        AlternateGenericFileExtensionRegexItemDialog dialog = new AlternateGenericFileExtensionRegexItemDialog(title, currentItem);
        dialog.show();
        if (dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) {
            AlternateGenericFileExtensionRegexItem newItem = dialog.getItem();
            if (!newItem.equals(currentItem) && !newItem.isEmpty()) {
                runnable.run(newItem);
            }
        }
    }
View Full Code Here

                public int getColumnCount() {
                    return TABLECOLUMNS.length;
                }

                public Object getValueAt(int rowIndex, int columnIndex) {
                    AlternateGenericPrefixPostfixRegexItem item = getItems().get(rowIndex);
                    switch (columnIndex) {
                        case TABLECOLUMN_EXPRESSION:
                            return item.expression;
                        case TABLECOLUMN_GROUPING:
                            return item.grouping;
View Full Code Here

     */
    public static void showDialog(@NotNull String title, @NotNull AlternateGenericPrefixPostfixRegexItem currentItem, @NotNull AbstractDataPanel.Runnable<AlternateGenericPrefixPostfixRegexItem> runnable) {
        AlternateGenericPrefixPostfixRegexItemDialog dialog = new AlternateGenericPrefixPostfixRegexItemDialog(title, currentItem);
        dialog.show();
        if (dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) {
            AlternateGenericPrefixPostfixRegexItem newItem = dialog.getItem();
            if (!newItem.equals(currentItem) && !newItem.isEmpty()) {
                runnable.run(newItem);
            }
        }
    }
View Full Code Here

                if (editor != null) { // fix issue 9: can only display hint if there is a editor instance
                    HintManager.getInstance().showInformationHint(editor, "No corresponding file(s) found");
                }
            } else {
                // open these...
                AlternateFilePopupChooser.prompt("Select the file(s) to open", fileGroups, currentProject, new FileHandler() {
                    public void processFile(@NotNull PsiFile psiFile) {
                        psiFile.navigate(true);
                    }
                });
            }
View Full Code Here

TOP

Related Classes of altn8.AlternateFileGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.