Java 类org.eclipse.ui.part.IShowInTargetList 实例源码

项目:Eclipse-Postfix-Code-Completion    文件:PackageExplorerPart.java   
@Override
public Object getAdapter(Class key) {
    if (key.equals(ISelectionProvider.class))
        return fViewer;
    if (key == IShowInSource.class) {
        return getShowInSource();
    }
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaPlugin.ID_RES_NAV };
            }

        };
    }
    if (key == IContextProvider.class) {
        return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.PACKAGES_VIEW);
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion    文件:CallHierarchyViewPart.java   
/**
 * {@inheritDoc}
 */
   @Override
public Object getAdapter(Class adapter) {
    if (adapter == IShowInSource.class) {
        return getShowInSource();
    }
    if (adapter == IContextProvider.class) {
        return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.CALL_HIERARCHY_VIEW);
    }
    if (adapter == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV };
            }
        };
    }
    return super.getAdapter(adapter);
   }
项目:Eclipse-Postfix-Code-Completion    文件:JavaOutlinePage.java   
public Object getAdapter(Class key) {
    if (key == IShowInSource.class) {
        return getShowInSource();
    }
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES };
            }

        };
    }
    if (key == IShowInTarget.class) {
        return getShowInTarget();
    }

    return null;
}
项目:Eclipse-Postfix-Code-Completion    文件:TypeHierarchyViewPart.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInSource.class) {
        return getShowInSource();
    }
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV  };
            }

        };
    }
    if (key == IContextProvider.class) {
        return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.TYPE_HIERARCHY_VIEW);
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:PackageExplorerPart.java   
@Override
public Object getAdapter(Class key) {
    if (key.equals(ISelectionProvider.class))
        return fViewer;
    if (key == IShowInSource.class) {
        return getShowInSource();
    }
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaPlugin.ID_RES_NAV };
            }

        };
    }
    if (key == IContextProvider.class) {
        return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.PACKAGES_VIEW);
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:CallHierarchyViewPart.java   
/**
 * {@inheritDoc}
 */
   @Override
public Object getAdapter(Class adapter) {
    if (adapter == IShowInSource.class) {
        return getShowInSource();
    }
    if (adapter == IContextProvider.class) {
        return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.CALL_HIERARCHY_VIEW);
    }
    if (adapter == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV };
            }
        };
    }
    return super.getAdapter(adapter);
   }
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaOutlinePage.java   
public Object getAdapter(Class key) {
    if (key == IShowInSource.class) {
        return getShowInSource();
    }
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES };
            }

        };
    }
    if (key == IShowInTarget.class) {
        return getShowInTarget();
    }

    return null;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:TypeHierarchyViewPart.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInSource.class) {
        return getShowInSource();
    }
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV  };
            }

        };
    }
    if (key == IContextProvider.class) {
        return JavaUIHelp.getHelpContextProvider(this, IJavaHelpContextIds.TYPE_HIERARCHY_VIEW);
    }
    return super.getAdapter(key);
}
项目:goclipse    文件:AbstractLangStructureEditor.java   
@SuppressWarnings("unchecked")
@Override
public <T> T getAdapter(Class<T> requestedClass) {
    if (IContentOutlinePage.class.equals(requestedClass)) {
        IContentOutlinePage outlinePage = this.outlinePage; 
        return (T) outlinePage;
    }
    if(requestedClass == IShowInTargetList.class) {
        return (T) new IShowInTargetList() {
            @Override
            public String[] getShowInTargetIds() {
                return array(IPageLayout.ID_OUTLINE);
            }
        };
    }
    return super.getAdapter(requestedClass);
}
项目:typescript.java    文件:TypeScriptSearchResultPage.java   
public Object getAdapter(Class adapter) {
    if (IShowInTargetList.class.equals(adapter)) {
        return SHOW_IN_TARGET_LIST;
    }

    if (adapter == IShowInSource.class) {
        ISelectionProvider selectionProvider= getSite().getSelectionProvider();
        if (selectionProvider == null)
            return null;

        ISelection selection= selectionProvider.getSelection();
        if (selection instanceof IStructuredSelection) {
            IStructuredSelection structuredSelection= ((StructuredSelection)selection);
            final Set newSelection= new HashSet(structuredSelection.size());
            Iterator iter= structuredSelection.iterator();
            while (iter.hasNext()) {
                Object element= iter.next();
                if (element instanceof LineElement)
                    element= ((LineElement)element).getParent();
                newSelection.add(element);
            }

            return new IShowInSource() {
                public ShowInContext getShowInContext() {
                    return new ShowInContext(null, new StructuredSelection(new ArrayList(newSelection)));
                }
            };
        }
        return null;
    }

    return null;
}
项目:xtext-gef    文件:StatemachineDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:Eclipse-Postfix-Code-Completion    文件:PropertiesFileEditor.java   
@Override
public Object getAdapter(Class adapter) {
    if (adapter == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV };
            }

        };
    }
    return super.getAdapter(adapter);
}
项目:Eclipse-Postfix-Code-Completion    文件:ProjectsView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV  };
            }

        };
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion    文件:MembersView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES };
            }

        };
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion    文件:TypesView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV };
            }

        };
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion    文件:PackagesView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV  };
            }
        };
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:PropertiesFileEditor.java   
@Override
public Object getAdapter(Class adapter) {
    if (adapter == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV };
            }

        };
    }
    return super.getAdapter(adapter);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:ProjectsView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV  };
            }

        };
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:MembersView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES };
            }

        };
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:TypesView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV };
            }

        };
    }
    return super.getAdapter(key);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:PackagesView.java   
@Override
public Object getAdapter(Class key) {
    if (key == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { JavaUI.ID_PACKAGES, JavaPlugin.ID_RES_NAV  };
            }
        };
    }
    return super.getAdapter(key);
}
项目:ROADDesigner    文件:SmcDiagramEditor.java   
/**
 * @generated
 */
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:HelloBrazil    文件:Wc2014DiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:simplified-bpmn-example    文件:SimpleBPMNDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:Pydev    文件:AbstractSearchIndexResultPage.java   
public Object getAdapter(Class<?> adapter) {
    if (IShowInTargetList.class.equals(adapter)) {
        return SHOW_IN_TARGET_LIST;
    }

    if (adapter == IShowInSource.class) {
        ISelectionProvider selectionProvider = getSite().getSelectionProvider();
        if (selectionProvider == null) {
            return null;
        }

        ISelection selection = selectionProvider.getSelection();
        if (selection instanceof IStructuredSelection) {
            IStructuredSelection structuredSelection = ((StructuredSelection) selection);
            final Set<Object> newSelection = new HashSet<>(structuredSelection.size());
            Iterator<?> iter = structuredSelection.iterator();
            while (iter.hasNext()) {
                Object element = iter.next();
                if (element instanceof ICustomLineElement) {
                    element = ((ICustomLineElement) element).getParent();
                }
                newSelection.add(element);
            }

            return new IShowInSource() {
                @Override
                public ShowInContext getShowInContext() {
                    return new ShowInContext(null, new StructuredSelection(new ArrayList<>(newSelection)));
                }
            };
        }
        return null;
    }

    return null;
}
项目:Pydev    文件:FileSearchPage.java   
@Override
@SuppressWarnings("unchecked")
public <T> T getAdapter(Class<T> adapter) {
    if (IShowInTargetList.class.equals(adapter)) {
        return (T) SHOW_IN_TARGET_LIST;
    }
    return null;
}
项目:MMINT    文件:ICSE15_SequenceDiagram_MAVODiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:NECSIS14_ClassDiagramDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:NECSIS14_DatabaseSchemaDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:MIDDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:MIDDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapterGen(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:RelationalDatabase_MAVODiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:RelationalDatabaseDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:IStar_MAVODiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:IStarDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:StateMachineDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:StateMachine_MAVODiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:StateDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:ArmyDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}
项目:MMINT    文件:EconomyDiagramEditor.java   
/**
 * @generated
 */
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
    if (type == IShowInTargetList.class) {
        return new IShowInTargetList() {
            public String[] getShowInTargetIds() {
                return new String[] { ProjectExplorer.VIEW_ID };
            }
        };
    }
    return super.getAdapter(type);
}