How to increase Code folding tag width

Is there a way to increase the "hint" size of a folded (collapsed) code tag.  I only get about 4 letters which is not enough to tell me what the folded code is.
Thanks !

Well that's too bad,  the tag doesn't tell you enough to be useful as a placeholder and you have to select the tag for the tooltip to work.  They really need a pref to set the width.  This just makes this feature all but useless to me.

Similar Messages

  • How is the 'code fold' functionality implemented?

    Hi all,
    I'm thinking that I'd like to have a form, which is broken into several categories, that has 'code fold' functionality ala NetBeans. I'm thinking the way to do this would be to simply place all of these JPanels in the form in the nodes of a tree, when collapsed, just the title is displayed, when they expand, the JPanel appears. I admit I've not yet tried this approach yet , I first wanted to find out if anyone has done something like this and what approach they might use. Any feedback is appreciated.
    Thanks
    Mike

    I read this and thought it would be great to have in my own app.
    So, after getting some code from these forums I have cobbled together the following classes.
    This one creates a collapsible panel:
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.GradientPaint;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.GridLayout;
    import java.awt.LayoutManager;
    import java.awt.Rectangle;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.border.EmptyBorder;
    import javax.swing.border.LineBorder;
    * CollapsiblePanel.java Created on 22-Apr-2005
    public class CollapsiblePanel extends JPanel
        private class TitlePanel extends JPanel
            private Color fadeto = new Color(200, 212, 247);
            public TitlePanel(LayoutManager layout)
                super(layout);
            protected void paintComponent(Graphics g)
                GradientPaint gradient = new GradientPaint(0, 0, Color.white,
                        getSize().width - 10, getSize().height, fadeto, true);
                Graphics2D g2d = (Graphics2D) g;
                g2d.setPaint(gradient);
                g2d.fill(new Rectangle(getSize().width, getSize().height));
        private JPanel mPanel = new JPanel(new GridLayout(0, 1, 2, 2));
        private JLabel mTitle;
        private JLabel mButton;
        public CollapsiblePanel(String title)
            setLayout(new BorderLayout());
            final Color active = new Color(66, 142, 255);
            final Color inactive = new Color(33, 93, 198);
            final ImageIcon up = new ImageIcon("Up.gif");
            final ImageIcon down = new ImageIcon("Down.gif");
            mTitle = new JLabel(title);
            mTitle.setForeground(inactive);
            mButton = new JLabel(up);
            TitlePanel panel = new TitlePanel(new BorderLayout());
            panel.setBorder(new LineBorder(Color.BLACK));//EmptyBorder(2, 2, 2, 2));
            panel.add(mTitle, BorderLayout.CENTER);
            panel.add(mButton, BorderLayout.EAST);
            panel.addMouseListener(new MouseAdapter()
                public void mouseClicked(MouseEvent e)
                    mPanel.setVisible(!mPanel.isVisible());
                    mButton.setIcon(mPanel.isVisible() ? up : down);
                public void mouseEntered(MouseEvent e)
                    mTitle.setForeground(active);
                public void mouseExited(MouseEvent e)
                    mTitle.setForeground(inactive);
            panel.setBackground(Color.WHITE);
            mPanel.setBorder(new EmptyBorder(2, 2, 2, 2));
            //mPanel.setBackground(new Color(214, 223, 247));
            add(panel, BorderLayout.NORTH);
            add(mPanel, BorderLayout.CENTER);
        public Component add(Component comp)
            return mPanel.add(comp);
    }This one creates a panel to hold many collapsible panels.
    NOTE: This uses the TableLayout manager which can be found on the web. I am sure that all of you here could change it to use GridbagLayout.
    import javax.swing.JPanel;
    import info.clearthought.layout.TableLayout;
    * Panel to hold many CollapsiblePanels
    * @author Garry Lovesey
    * @version 1.0 22-Apr-2005
    public class CollapsiblePanelBar2 extends JPanel
        public static double PREFERRED = TableLayout.PREFERRED;
        public static double FILL = TableLayout.FILL;
        private TableLayout layout;
        public CollapsiblePanelBar2(CollapsiblePanel panel, double layoutPreference)
            super();
             // create the GUI
              // b - border
              // f - FILL
              // p - PREFERRED
              // vs - vertical space between labels and text fields
              // vg - vertical gap between form elements
              // hg - horizontal gap between form elements
              double b= 10;
              double f= TableLayout.FILL;
              double p= TableLayout.PREFERRED;
              double vs= 5;
              double vg= 10;
              double hg= 10;
              double size[][]= { { f }, { // our column sizes
                   layoutPreference }}; // our row sizes
              layout= new TableLayout(size);
              setLayout(layout);
              // now we add in our starter panel
              add(panel, "0,0");
        public void add(CollapsiblePanel panel, double layoutPreference)
              // we need to add our panel into our layout
            int rowToAdd = layout.getNumRow();
            layout.insertRow(rowToAdd, layoutPreference);
            add(panel, "0," + rowToAdd);
    }

  • How to increase or decrease the width of af:inputText

    Hi,
    I want to increase the height & width of the <af:inputText>.
    To increase the Height, i made rows attribute value as "2". But i am not able to increase the width of that component.
    I have increased the "style--> box ---> Width” but it is not working.
    Please help me,
    Thanks in advance.

    Hi user,
    Post your ADF faces questions at
    JDeveloper and ADF
    --Prasanna                                                                                                                                                                                                                                   

  • HOW to increase code column length in se38

    hi,
    i am  trying to copy paste code ( SE38) from one server to another  but
    it showing error while pasting i.e code column lenght . on previous server column length
    was  more than 125 charater per line. but here i am getting only 68 charater per line.
    so how can i increase the length of charater per line.
    please help me....
    Manoj...

    hi,
    follow this
    REPORT  zsample  NO STANDARD PAGE HEADING
                                      LINE-SIZE 132
                                      LINE-COUNT 65
                                      MESSAGE-ID yy.
    ~linganna

  • How to increase the spool list width

    Hi,
         I am submiting the program in background. I have 150 columns in my program. But i am not able to view the whole list. It generating the spool up to 255 characters only. But i mentioned 1023 as width in my program.How can i expand the spool list width. Plese give me reply if any one knows this.
    Thanks in Advance
    Shaik Basha

    Hi!
    You need to define a special output option (page format), have a look at the description in this topic:
    Background Printing using Line-size 1023
    Also OSS note 409339 says something about line size.
    Regards,
    Christian

  • How to increase code in Answers

    I have a report with many columns that it has a lot of code each one.
    My dashboard page shows an error produced by the code generated in my report.
    Is there any place to increase lines of code of my report??
    Thanks!!!

    Inside of my columns I have code like this:
    "FILTER(CASE WHEN "Dim Concept".Concept IN ('Concept01','Concept02','Concept03','Concept04','Concept05','Concept06','Concept12','Concept14','Concept17','Concept21','Concept31','Concept33','Concept45','Concept46','Concept47','Concept48','Concept49','Concept50','Concept51','Concept52','Concept53','Concept54','Concept55','Concept56','Concept57','Concept58','Concept59','Concept64','Concept67','Concept68','Concept79','Concept80','Concept81','Concept83','Concept85','Concept86','Concept87','Concept88','Concept89','Concept90','Concept95','Concept96','Concept97','Concept98','Concept99','Concept101','Concept103','Concept104') THEN IFNULL("- Actual".Measure, 0) END USING ("Dim Date Month"."Month" = '@{month}'))"
    I have a lot of columns in my report and it works wrong for this cause because if I delete concepts my reports works fine...

  • Implement Code folding

    I know that there are several topics about how to implement code folding, but no one is giving a solution.
    Has anyone some usable and more important useful code snippets?
    My goal is to implement code folding (collapsing) into JTextPane (better way into any JTextComponent), like Eclipse, NetBeans or JEdit does ...
    Thanks for any help ....

    i also want to implement such functionality, but currently i have no clue where to start, could you post some relevant parts of your code?

  • How to increase TD width in SAP using HTML code in mail body

    Dear guru.
    how to increase TD width in SAP using HTML code in mail body
    Sample Code :
    CONCATENATE '<tr height= "3%"> <td style="background-color:#CCC8AA;" style="font = 12.0" colspan = 3 >' WA_EIS_TOT-DESC '</td>'
           INTO WA_OBJTXT-LINE separated by space.
      APPEND WA_OBJTXT TO T_OBJTXT.
      CLEAR: WA_OBJTXT.
    Regards,
    Dharmin Shah

    Hi Dharmin,
    Did you try something like
    CONCATENATE '<tr height= "3%"> <td  height="23" width="84" style="background-color:#CCC8AA;" style="font = 12.0" colspan = 3 >' WA_EIS_TOT-DESC '</td>'
    Regards,
    Soundarya.

  • Obiee 11g graph how to increase bar width

    Hello,
    obiee 11g: -> bar graph: how to increase bar width ?
    Thank you,
    Ark

    Hi ,
    Create your own bar code type rather than using system Bar Codes , if the length of your code doesn't fit with the standards available under  SE73 . There you can define your own sizes as per your requirement , If you have a stands logic ,for example production order type Z001 should be in 15 lengthy code , then put a condition in the smart form to facilitate it , like wise you could use different lengthy bar codes in single form .
    I hope this is what you meant by your treat.
    Good Luck .
    Cheers ,
    Dilum

  • How to code on button click how to increase row height in iphone/ios/uitableview

    how to code on button click how to increase row height in iphone/ios/uitableview
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
        pppp=[postText objectAtIndex:indexPath.row];
        CGSize maxSize = CGSizeMake(280, MAXFLOAT);//set max height
         CGSize cellSize = [pppp sizeWithFont:[UIFont systemFontOfSize:14]
                           constrainedToSize:maxSize
                               lineBreakMode:NSLineBreakByWordWrapping];//this will return correct height for text
        // return  cellSize.height+115;
        BOOL isSelected = [self.selectedIndexPaths containsObject:indexPath];
        CGFloat maxHeight = MAXFLOAT;
        CGFloat minHeight = cellSize.height+115;
        CGFloat constrainHeight = isSelected?maxHeight:minHeight;
       CGFloat constrainWidth  = tableView.frame.size.width - 20.0f;
        NSString *text       = hChildPost[indexPath.row];
        CGSize constrainSize = CGSizeMake(constrainWidth, constrainHeight);
         CGSize labelSize     = [text sizeWithFont:[UIFont systemFontOfSize:15.0f]
                                constrainedToSize:constrainSize
                                    lineBreakMode:NSLineBreakByCharWrapping];
       // return MAX(labelSize.height+75, 100.0f);     return MAX(labelSize.height+75,cellSize.height+115);    
    i used this code but it crashed app

    On what line did it "crashed app" and what was the exception? The line within this function, not in main.m. If you haven't figured this out yet: view the debugger output, try single stepping, and/or add NSLog messages in the function.

  • I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Is it necessary to add? If so, how do I add H Tags to iweb.

    I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Are they necessary to add?  Why would one add these tags and how do I add H Tags to iweb? And are there examples to look at? I am slowly learning about simple web design and assumed that iweb was stand alone without having to write code. Is this one of the reasons iweb is no longer supported? Thanks for looking at this!

    A simple text page like this:
    Heading
        sub heading
              text paragraph ....
    Is traditionally represented by html tags like:
    <h1>Heading</h1>
         <h2>sub heading</h2>
              <p>text paragraph ... </p>
    I would guess that the use of h1-h6 tags helps search engines to understand the structure of a page as the tags imply a certain structure.
    This can be compared to more generic tags like <div> that could represent any kind of content - and may be what iWeb uses (you'll have to check yourself).
    I would generally recommend that you use some kind of up to date blog/site building tool, perhaps Wordpress or Squarespace (I haven't used either one myself) that support current web technologies - this should reduce your SEO issues and make it easier to properly support mobile/tablet users.

  • How to increase the width of Panel Tabbed layout

    How to increase the width of detailed items of a Tabbed Panel ? I have many columns inside a detailed item of tabbed panel i can see only 3 colums ,to see the rest of the column i need to scroll. I tried to set the width but doesnt seems to be working
    <af:panelTabbed id="pt2" inlineStyle="width:800.0px;">
    <af:showDetailItem text="Interview" id="sdi1"
    inflexibleHeight="50"
    inlineStyle="width:800px; border-color:Aqua; border-width:thin;"
    styleClass="AFStretchWidth">
    Is there any way to increased the width of showDetailItem of panelTabbed ?
    Thanks

    Make sure the stretchChildren property of the shoDetailItem is set to first.

  • How to increase the width of the column in Tableview

    Hi ALL,
    How to increase the width of the column in tableview?I have name column where big name is displaying in rows.Does any one have any idea how to increase the width of the column dynamically in tableview.Please respond its little urgent.
    Thanks in advance

    Hi Peter,
    Here is my Dynpage
    package com.ust.jcatotable;     
    import java.awt.Event;
    import javax.resource.cci.MappedRecord;
    import javax.resource.cci.RecordFactory;
    import com.sapportals.connector.connection.IConnection;
    import com.sapportals.connector.execution.functions.IInteraction;
    import com.sapportals.connector.execution.functions.IInteractionSpec;
    import com.sapportals.connector.execution.structures.IRecordSet;
    import com.sapportals.htmlb.DropdownListBox;
    import com.sapportals.htmlb.event.TableNavigationEvent;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.ivs.cg.ConnectionProperties;
    import com.sapportals.portal.ivs.cg.IConnectorGatewayService;
    import com.sapportals.portal.ivs.cg.IConnectorService;
    import com.sapportals.portal.prt.component.IPortalComponentContext;
    import com.sapportals.portal.prt.component.IPortalComponentProfile;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    public class Display extends PageProcessorComponent {
      public DynPage getPage(){
         return new DisplayDynPage();
    public static class DisplayDynPage extends JSPDynPage{
         private Object formatFlag;
         public static IConnection connection ;
         private IPortalComponentRequest request;
         private IPortalComponentContext context;
         private IPortalComponentProfile profile;
         private IPortalComponentResponse  response;
         private int visibleRow=1;
         TableBean myBean;
         public void doInitialization(){
                   response = (IPortalComponentResponse) this.getResponse();
                   request = (IPortalComponentRequest) this.getRequest();
                    context = request.getComponentContext();
                    profile = context.getProfile();
                    IPortalComponentProfile profile = context.getProfile();
                    Object o = context.getValue("myBean");
                    if(o==null || !(o instanceof TableBean)){
                       myBean = new TableBean();
                       setBeanFromProfile(profile, myBean);
                       context.putValue("myBean",myBean);
                     }else {
                       setBeanFromProfile(profile, myBean);
                        myBean = (TableBean) o;
                    this.getData();
         public void myOnNavigate(Event event) throws PageException{
              TableNavigationEvent tne = (TableNavigationEvent) event;
              this.visibleRow = tne.getFirstVisibleRowAfter();
              if(myBean!=null)
              myBean.setVisibleRow(new Integer(this.visibleRow).toString());

  • How to increase width of canvas in xcelsius?

    How to increase width of canvas in xcelsius?

    Hi
    The simplest way is to go to File > Document Properties> Document and check Custome Size.  You will then be able to set the width and height in pixels.
    Alternatively if you want to widen the canvas as your components already go over the edge you can use the Fit Canvas to Components icon on the toolbar along the top.
    Hope this helps.
    Paul

  • How to Increase textarea size in HTML code in WM05

    Hi All,
    I am working on a project where we used JSP & HTML language for User Interfaces.
    My application running on WM2005. In one of the page is having text area with cols=30 and rows=15.
    Here I increased the number of cols to 50, and checked in PDA(WM2005). There was no change in width of the textarea. It was similar with as it was with cols=30.
    But I can see this effect in my LAPTOP.
    Can any body please tell me how to increase the textarea in Pocket PC.
    Regards,
    Babu.

    Hi Babu,
    perhaps you have used a CSS style and this causes your problems? Anyway, the following line works on my PDA without issues:
    <textarea cols="20" rows="5" style="width:30px;">test</textarea>
    Hope this helps!
    Regards,
    Oliver

Maybe you are looking for