Skip to content

Commit

Permalink
The CCC view takes the whole view instead of 50% #1
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio committed Dec 13, 2015
1 parent ee6be1f commit b779d78
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 9 deletions.
2 changes: 1 addition & 1 deletion edu.isistan.carcha.master/runners/TRAS plugins.launch

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions edu.isistan.carcha.master/runners/update-plugin-version.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
<stringAttribute key="M2_GOALS" value="tycho-versions:set-version"/>
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
<booleanAttribute key="M2_OFFLINE" value="false"/>
<stringAttribute key="M2_PROFILES" value=""/>
<listAttribute key="M2_PROPERTIES">
<listEntry value="newVersion=1.0.3"/>
</listAttribute>
<stringAttribute key="M2_RUNTIME" value="EMBEDDED"/>
<booleanAttribute key="M2_SKIP_TESTS" value="true"/>
<intAttribute key="M2_THREADS" value="1"/>
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
<stringAttribute key="M2_USER_SETTINGS" value=""/>
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="/Users/germana/thesis/tras-plugins/edu.isistan.carcha.master"/>
</launchConfiguration>
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TableViewerColumn;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.FillLayout;
Expand Down Expand Up @@ -438,7 +439,7 @@ public void gotoMarker(IMarker marker) {
*/
void impactListPage() {
final Composite composite = new Composite(getContainer(), SWT.NONE);
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 6));
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1));
composite.setLayout(new GridLayout());

Label concernLabel = new Label(composite, SWT.BORDER);
Expand All @@ -447,19 +448,33 @@ void impactListPage() {
GridData gridData = new GridData(SWT.LEFT, SWT.TOP, false, false);
concernLabel.setLayoutData(gridData);

topViewLink = new TableViewer(composite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.BORDER);
createColumns(composite, topViewLink);
/////////////////////
ScrolledComposite sc = new ScrolledComposite(composite, SWT.H_SCROLL | SWT.V_SCROLL);
Composite parent = new Composite(sc, SWT.NONE);
parent.setLayout(new GridLayout());


topViewLink = new TableViewer(parent, SWT.BORDER);
createColumns(parent, topViewLink);

final Table table = topViewLink.getTable();
table.setHeaderVisible(true);
table.setLinesVisible(true);

topViewLink.setContentProvider(new ArrayContentProvider());

getSite().setSelectionProvider(topViewLink);
// define layout for the viewer
gridData = new GridData(SWT.FILL, SWT.FILL, true, false);
topViewLink.getControl().setLayoutData(gridData);

GridData data = new GridData(SWT.FILL, SWT.FILL, true, false);
data.heightHint = 10 * table.getItemHeight();
table.setLayoutData(data);

sc.setContent(parent);
sc.setExpandHorizontal(true);
sc.setExpandVertical(true);
sc.setMinSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT));

/////////////////////

Button button = new Button(composite, SWT.PUSH);
button.setText("Remove");
button.addSelectionListener(new SelectionListener() {
Expand Down
2 changes: 1 addition & 1 deletion edu.isistan.carcha.unified/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry exported="true" kind="lib" path="traceability-assistant-1.0.1-jar-with-dependencies.jar"/>
<classpathentry exported="true" kind="lib" path="traceability-assistant-1.0.1-jar-with-dependencies.jar" sourcepath="/traceability-assistant"/>
<classpathentry exported="true" kind="lib" path="jcommon-1.0.16.jar"/>
<classpathentry exported="true" kind="lib" path="jfreechart-1.0.14-swt.jar"/>
<classpathentry exported="true" kind="lib" path="jfreechart-1.0.14.jar" sourcepath="/Users/rgonzalez/.m2/repository/org/jfree/jfreechart/1.0.14/jfreechart-1.0.14-sources.jar"/>
Expand Down

0 comments on commit b779d78

Please sign in to comment.