Package org.netbeans.modules.php.fuel.ui.actions.gotos.items

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


                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

            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

        }
        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

        // 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

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

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.