Package org.eclipse.ui.model

Examples of org.eclipse.ui.model.WorkbenchAdapter


    }, DocumentListEntry.class);
  }
 
  private static IWorkbenchAdapter createSpreadsheetEntryWorkbenchAdapter()
  {
    return new WorkbenchAdapter() {
      public ImageDescriptor getImageDescriptor(Object object) {
        return DocsPlugin.getImageDescriptor("icons/properties.gif");
      }
      public String getLabel(Object object) {
        SpreadsheetEntry spreadsheet = (SpreadsheetEntry)object;
View Full Code Here


    };
  }
 
  private static IWorkbenchAdapter createDocumentEntryWorkbenchAdapter()
  {
    return new WorkbenchAdapter() {
      public ImageDescriptor getImageDescriptor(Object object) {
        return DocsPlugin.getImageDescriptor("icons/file_obj.gif");
      }
      public String getLabel(Object object) {
        DocumentListEntry document = (DocumentListEntry)object;
View Full Code Here

         * Adapt to an IWorkbenchAdapter. Other aspects of Eclipse can read the properties we
         * provide access to. (example: Property page dialogs can read the label and display that in
         * their title.)
         */
        if (adapter.isAssignableFrom(IWorkbenchAdapter.class)) {
            return new WorkbenchAdapter() {

                @Override
                public String getLabel(Object object) {
                    return getName();
                }
View Full Code Here

         * Adapt to an IWorkbenchAdapter. Other aspects of Eclipse can read the
         * properties we provide access to. (example: Property page dialogs
         * can read the label and display that in their title.)
         */
        if (adapter.isAssignableFrom(IWorkbenchAdapter.class)) {
            return new WorkbenchAdapter() {

                @Override
                public String getLabel(Object object) {
                    return getName();
                }
View Full Code Here

        ISynchronizationCompareAdapter.class, ResourceMapping.class,
        IResource.class, IWorkbenchAdapter.class, IShowInSource.class };
  }

  private static IWorkbenchAdapter getRepsitoryNodeWorkbenchAdapter(final RepositoryNode node) {
    return new WorkbenchAdapter() {
      @Override
      public String getLabel(Object object) {
        ILabelProvider labelProvider= new RepositoriesViewLabelProvider();
        return labelProvider.getText(node);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.model.WorkbenchAdapter

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.