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 單飛 閱讀(477) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 松原市| 上高县| 新乡市| 沈阳市| 汽车| 左贡县| 开鲁县| 安吉县| 成都市| 金沙县| 四子王旗| 汉寿县| 仙桃市| 甘孜县| 沅江市| 汤阴县| 阜阳市| 沧州市| 南和县| 吉林省| 苏尼特左旗| 扶余县| 泗水县| 神农架林区| 兴文县| 辉县市| 环江| 寿宁县| 马公市| 新密市| 富裕县| 化州市| 津南区| 宁津县| 苍溪县| 囊谦县| 竹北市| 金门县| 凤凰县| 永善县| 金沙县|