Examples of GoToItem


Examples of org.nbphpcouncil.modules.php.yii.editor.navi.GoToItem

    @Override
    public void performClickAction(Document doc, int offset, HyperlinkType type) {
        // open file
        if (goToItems.size() == 1) {
            GoToItem item = goToItems.get(0);
            UiUtils.open(item.getFileObject(), DEFAULT_OFFSET);
        }
        // i18n
        JTextComponent editor = EditorRegistry.lastFocusedComponent();
        // show popup
        if (editor != null && !goToItems.isEmpty()) {
View Full Code Here

Examples of org.netbeans.modules.php.fuel.ui.actions.gotos.items.GoToItem

    private javax.swing.JList<GoToItem> jList1;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration//GEN-END:variables

    private void openSelected() {
        GoToItem item = jList1.getSelectedValue();
        FileObject fileObject = item.getFileObject();
        int offset = item.getOffset();
        if (fileObject != null && offset >= 0) {
            if (offset == 0) {
                try {
                    DataObject dataObject = DataObject.find(fileObject);
                    EditorCookie ec = dataObject.getLookup().lookup(EditorCookie.class);
View Full Code Here

Examples of org.netbeans.modules.php.fuel.ui.actions.gotos.items.GoToItem

                boolean isSelected,
                boolean cellHasFocus) {
            Component c = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);

            if (value instanceof GoToItem) {
                GoToItem item = (GoToItem) value;
                ImageIcon icon = ImageUtilities.loadImageIcon(item.getIcon(), true);
                setIcon(icon);
            }

            return c;
        }
View Full Code Here

Examples of org.netbeans.modules.php.fuel.ui.actions.gotos.items.GoToItem

            if (view == null) {
                continue;
            }

            // add to items
            GoToItem item = itemFactory.create(view, DEFAULT_OFFSET, ""); // NOI18N
            if (item == null) {
                continue;
            }
            switch (fileType) {
                case VIEW:
View Full Code Here

Examples of org.netbeans.modules.php.fuel.ui.actions.gotos.items.GoToItem

        }
        FileObject target = baseDirectory.getFileObject(relativePath);
        if (target == null) {
            return Collections.emptyList();
        }
        GoToItem item = GoToItemFactory.getInstance().create(target, DEFAULT_OFFSET, ""); // NOI18N

        return Collections.singletonList(item);
    }
View Full Code Here

Examples of org.netbeans.modules.php.fuel.ui.actions.gotos.items.GoToItem

        // get tartget
        FileObject target = testsDirectory.getFileObject(relativePath);
        if (target == null) {
            return Collections.emptyList();
        }
        GoToItem goToItem = GoToItemFactory.getInstance().create(target, DEFAULT_OFFSET, ""); // NOI18N
        return Collections.singletonList(goToItem);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.