swt - Eclipse RCP view not coming on the left side on the screen -


after taking cue this ques. ended here problem is, view coming on right hand side of screen , not occupying full space. here current screenshot .

enter image description here

and code is

public class monitorview extends coreview  {     public monitorview(final composite parent)     {         super(parent);         setdisplayname(i18n("visual monitoring of icommand"));        // setlayout(new filllayout());         final composite composite=guitoolkit.newcomposite(parent, swt.fill, new griddata(swt.top,swt.left,true,true,1,1));         filllayout layout=new filllayout();         composite.setlayout(layout);         createpartcontrol(composite);       }      private void createpartcontrol(composite parent)      {         // todo auto-generated method stub         final canvas canvas=new canvas(parent,swt.none);         color white = display.getsystemcolor(swt.color_white);         canvas.setbackground(white);         canvas.addpaintlistener(new paintlistener() {             @override              public void paintcontrol(paintevent event)             {                 int offset_x=130;                 int offset_y=70;                 int j=0,i=0,n=3,x,y;                  drawroundedrectangle d= new drawroundedrectangle();                 //for loop column 1.placing elements column wise.                   for(i=0;i<n;i++)                 { x=0;y=offset_y*j;                   d.drawrectangle(event, x, y, j);                   j++;                   x=0;y=offset_y*j;                   d.drawrectangle(event, x, y, j);                   j++;                 }              j=0;int flag=6;             //for loop drawing column 2                 for(i=0;i<n;i++)                 {                    x=offset_x; y=offset_y*j;                   d.drawrectangle(event, x, y, flag);                   j++;flag++;                   x=offset_x;y=offset_y*j;                   d.drawrectangle(event, x, y, flag);                   flag++;                   j++;                 }             }         });      } } 

how bring view on left hand side , onto full screen

solution. see comment thread of question discussion

public monitorview(final composite parent)     {         super(parent);         setdisplayname(i18n("visual monitoring of icommand"));         setlayout(new filllayout());         createpartcontrol(this);    } 

rest same above. hope helps :)


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -