Package bndtools.model.importanalysis.ImportsExportsTreeContentProvider

Examples of bndtools.model.importanalysis.ImportsExportsTreeContentProvider.ImportUsedByClass


            public void open(OpenEvent event) {
                IStructuredSelection selection = (IStructuredSelection) event.getSelection();
                for (Iterator< ? > iter = selection.iterator(); iter.hasNext();) {
                    Object item = iter.next();
                    if (item instanceof ImportUsedByClass) {
                        ImportUsedByClass importUsedBy = (ImportUsedByClass) item;
                        String className = importUsedBy.getClazz().getFQN();
                        IType type = null;

                        IFile file = getEditorFile();
                        if (file != null) {
                            IJavaProject javaProject = JavaCore.create(file.getProject());
View Full Code Here


                cell.setText(styledString.getString());
                cell.setStyleRanges(styledString.getStyleRanges());
            }
        } else if (cell.getElement() instanceof ImportUsedByClass) {
            if (cell.getColumnIndex() == 0) {
                ImportUsedByClass importUsedBy = (ImportUsedByClass) cell.getElement();
                String fqn = importUsedBy.clazz.getFQN();
                String className = fqn.substring(fqn.lastIndexOf('.') + 1);
                cell.setText(className);
                cell.setImage(classImg);
            }
View Full Code Here

            public void open(OpenEvent event) {
                IStructuredSelection selection = (IStructuredSelection) event.getSelection();
                for (Iterator< ? > iter = selection.iterator(); iter.hasNext();) {
                    Object item = iter.next();
                    if (item instanceof ImportUsedByClass) {
                        ImportUsedByClass importUsedBy = (ImportUsedByClass) item;
                        String className = importUsedBy.getClazz().getFQN();
                        IType type = null;
                        if (selectedFiles != null) {
                            IWorkspaceRoot wsroot = ResourcesPlugin.getWorkspace().getRoot();
                            for (File selectedFile : selectedFiles) {
                                IFile[] wsfiles = wsroot.findFilesForLocationURI(selectedFile.toURI());
View Full Code Here

TOP

Related Classes of bndtools.model.importanalysis.ImportsExportsTreeContentProvider.ImportUsedByClass

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.