Package org.eclipse.jst.pagedesigner.dtresourceprovider

Examples of org.eclipse.jst.pagedesigner.dtresourceprovider.DTSkinManager


    if (previewNode != null && domNode != null) {
      Element head = locateHeadElement(previewNode);
      if (head != null) {
        Document document = head.getOwnerDocument();
        if (document != null) {
          DTSkinManager skinManager = DTSkinManager.getInstance(domNode);
          if (skinManager != null) {
            List<IDTSkin> currentSkins = skinManager.getCurrentSkins();
            for (IDTSkin currentSkin: currentSkins) {
              List<String> styleSheetLocations = currentSkin.getStyleSheetLocations();
              for (String styleSheetLocation: styleSheetLocations) {
                Element link = document.createElement(IHTMLConstants.TAG_LINK);
                link.setAttribute(IHTMLConstants.ATTR_REL, "stylesheet"); //$NON-NLS-1$
View Full Code Here


      if (taglibDataList.size() > 0) {
        new MenuItem(menu, SWT.SEPARATOR);
      }
      for (TaglibData taglibData: taglibDataList) {
        String nsURI = taglibData.getNSURI();
        DTSkinManager dtSkinManager = DTSkinManager.getInstance(project);
        IDTSkin currentDTSkin = dtSkinManager.getCurrentSkin(nsURI);
        MenuItem menuItem = new MenuItem(menu, SWT.CASCADE);
        menuItem.setText(taglibData.getName());
        Menu skinMenu = new Menu(menuItem);
        menuList.add(skinMenu);
        menuItem.setMenu(skinMenu);
        List<IDTSkin> dtSkins = dtSkinManager.getSkins(nsURI);
        for (IDTSkin dtSkin: dtSkins) {
          MenuItem skinMenuItem;
          if (currentDTSkin == dtSkin) {
            skinMenuItem = new MenuItem(skinMenu, SWT.CHECK);
            skinMenuItem.setSelection(true);
View Full Code Here

      parent.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, new Separator());
    }
    for (TaglibData taglibData: taglibDataList) {
      String nsURI = taglibData.getNSURI();
      MenuManager newMgr = new MenuManager(taglibData.getName());
      DTSkinManager dtSkinManager = DTSkinManager.getInstance(project);
      IDTSkin currentDTSkin = dtSkinManager.getCurrentSkin(nsURI);
      List<IDTSkin> dtSkins = dtSkinManager.getSkins(nsURI);
      for (IDTSkin dtSkin: dtSkins) {
        newMgr.add(new ChangeCurrentSkinAction(nsURI, dtSkin, dtSkin == currentDTSkin));
      }
      parent.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, newMgr);
    }
View Full Code Here

      if (taglibDataList.size() > 0) {
        new MenuItem(menu, SWT.SEPARATOR);
      }
      for (TaglibData taglibData: taglibDataList) {
        String nsURI = taglibData.getNSURI();
        DTSkinManager dtSkinManager = DTSkinManager.getInstance(project);
        IDTSkin currentDTSkin = dtSkinManager.getCurrentSkin(nsURI);
        MenuItem menuItem = new MenuItem(menu, SWT.CASCADE);
        menuItem.setText(taglibData.getName());
        Menu skinMenu = new Menu(menuItem);
        menuList.add(skinMenu);
        menuItem.setMenu(skinMenu);
        List<IDTSkin> dtSkins = dtSkinManager.getSkins(nsURI);
        for (IDTSkin dtSkin: dtSkins) {
          MenuItem skinMenuItem;
          if (currentDTSkin == dtSkin) {
            skinMenuItem = new MenuItem(skinMenu, SWT.CHECK);
            skinMenuItem.setSelection(true);
View Full Code Here

      parent.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, new Separator());
    }
    for (TaglibData taglibData: taglibDataList) {
      String nsURI = taglibData.getNSURI();
      MenuManager newMgr = new MenuManager(taglibData.getName());
      DTSkinManager dtSkinManager = DTSkinManager.getInstance(project);
      IDTSkin currentDTSkin = dtSkinManager.getCurrentSkin(nsURI);
      List<IDTSkin> dtSkins = dtSkinManager.getSkins(nsURI);
      for (IDTSkin dtSkin: dtSkins) {
        newMgr.add(new ChangeCurrentSkinAction(nsURI, dtSkin, dtSkin == currentDTSkin));
      }
      parent.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, newMgr);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.dtresourceprovider.DTSkinManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.