9910

          單飛

             :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
          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) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 濮阳市| 增城市| 竹山县| 兴宁市| 唐河县| 吉水县| 西藏| 高平市| 南木林县| 桦南县| 灵璧县| 松阳县| 同仁县| 雷波县| 乡城县| 信阳市| 宜春市| 沧源| 靖远县| 曲麻莱县| 织金县| 宁德市| 吴桥县| 垫江县| 中阳县| 蒙山县| 金湖县| 德格县| 佛学| 马山县| 香港| 尼木县| 二连浩特市| 肥东县| 蒲江县| 同德县| 阿勒泰市| 司法| 房产| 介休市| 图木舒克市|