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

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


          網站導航:
           
          主站蜘蛛池模板: 封丘县| 株洲市| 湘潭县| 方正县| 武川县| 洱源县| 连南| 都江堰市| 临夏县| 自治县| 广灵县| 康马县| 栾城县| 崇阳县| 栖霞市| 视频| 墨江| 仪陇县| 塔河县| 峨边| 商城县| 平罗县| 新余市| 凤庆县| 旬阳县| 弋阳县| 石棉县| 化隆| 呼图壁县| 固镇县| 遂昌县| 微博| 太仆寺旗| 安国市| 施甸县| 海口市| 六枝特区| 崇阳县| 华安县| 巴林右旗| 平湖市|