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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 抚宁县| 丰城市| 淅川县| 白城市| 禹城市| 延长县| 山东省| 和静县| 盐山县| 鸡东县| 师宗县| 云浮市| 美姑县| 得荣县| 盐亭县| 蒙山县| 汤阴县| 洪洞县| 江西省| 锡林郭勒盟| 易门县| 江油市| 扶余县| 德格县| 炎陵县| 滦南县| 沾化县| 民乐县| 龙州县| 屏边| 普陀区| 钦州市| 南投县| 葫芦岛市| 富平县| 手游| 光泽县| 泰宁县| 漳州市| 丹阳市| 磐石市|