Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.PlatformObject


//
//      System.out
//          .println("AbstractCommandAction.getSelectedFolderPath() sel: "
//              + sel.getClass());
      if (sel instanceof PlatformObject) {
        PlatformObject p = (PlatformObject) sel;
        IResource resource = (IResource) p.getAdapter(IResource.class);
        if (resource != null)
          return getPath(resource);
      }

      if (sel instanceof IResource) {
View Full Code Here


    SpellcheckableMessageArea textContent = new SpellcheckableMessageArea(
        messageArea, message, true, toolkit.getBorderStyle()) {

      @Override
      protected IAdaptable getDefaultTarget() {
        return new PlatformObject() {
          public Object getAdapter(Class adapter) {
            return Platform.getAdapterManager().getAdapter(
                getEditorInput(), adapter);
          }
        };
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.PlatformObject

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.