9910

          單飛

             :: 首頁 :: 聯系 :: 聚合  :: 管理
          xlst ? 怎么玩啊?

          This won't delete the perspective if it is defined in an extension.
          The perspective defined in an extension can't be deleted in Eclipse 3.2.
          In Eclipse 3.3, it is possible to delete it using xslt, see http://wiki.eclipse.org/Product_Customization


          Snjeza

          Hiamansu S Swain wrote:
          Hi Ajay,

          Create this class in any package of your application and make some action on your UI side and run call this class....

          import org.eclipse.ui.IPerspectiveDescriptor;
          import org.eclipse.ui.IPerspectiveRegistry;
          import org.eclipse.ui.PlatformUI;

          public class DeleteUserPerspective {

          /**The Constructor**/
          public DeleteUserPerspective () {
          IPerspectiveRegistry iPerspectiveRegistry = PlatformUI.getWorkbench).getPerspectiveRegistry();
          IPerspectiveDescriptor perspectiveDescriptor = iPerspectiveRegistry.findPerspectiveWithLabel("<perpsectiveName>");
          try {
          iPerspectiveRegistry.deletePerspective(perspectiveDescriptor);
          } catch (Exception e) {
          System.out.println("=====DELETED=====");
          }
          }
          }


          Thanks
          Himansu


          posted on 2008-08-01 15:56 單飛 閱讀(475) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 玉树县| 彰武县| 安国市| 琼海市| 松滋市| 淳化县| 汾西县| 如皋市| 孟津县| 凤庆县| 湖北省| 平阳县| 靖安县| 镇宁| 昆明市| 老河口市| 方城县| 盐城市| 石棉县| 孝昌县| 佛学| 凤庆县| 阳城县| 江油市| 闻喜县| 汝阳县| 延川县| 游戏| 德化县| 巴东县| 工布江达县| 洪洞县| 伊金霍洛旗| 蓬安县| 曲靖市| 景洪市| 简阳市| 贵港市| 新余市| 鄂尔多斯市| 丰镇市|