project/com.nokia.carbide.cpp.project.core/src/com/nokia/carbide/cpp/internal/project/core/updater/UpdateTrigger.java
equal
deleted
inserted
replaced
32 |
32 |
33 private static final String LOCAL_KEY = ".updateTrigger"; |
33 private static final String LOCAL_KEY = ".updateTrigger"; |
34 // use the version of Carbide updating to as the trigger property |
34 // use the version of Carbide updating to as the trigger property |
35 private static final String TRIGGER_PROPERTY = "1.2.0"; //$NON-NLS-1$ |
35 private static final String TRIGGER_PROPERTY = "1.2.0"; //$NON-NLS-1$ |
36 private static final String SYMBIAN_PERSPECTIVE_ID = "com.symbian.cdt.SymbianPerspective"; //$NON-NLS-1$ |
36 private static final String SYMBIAN_PERSPECTIVE_ID = "com.symbian.cdt.SymbianPerspective"; //$NON-NLS-1$ |
37 private static final String PROBLEM_VIEW_ID = "org.eclipse.ui.views.ProblemView"; //$NON-NLS-1$ |
|
38 |
|
39 private void resetProblemView() { |
|
40 // Evidently, hiding and then reshowing the ProblemView seems to fix up the columns |
|
41 IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); |
|
42 if (window != null) { |
|
43 IWorkbenchPage page = window.getActivePage(); |
|
44 IViewPart part = page.findView(PROBLEM_VIEW_ID); |
|
45 if (part != null) { |
|
46 page.hideView(part); |
|
47 |
|
48 try { |
|
49 page.showView(PROBLEM_VIEW_ID); |
|
50 } catch (PartInitException e) { |
|
51 } |
|
52 } |
|
53 } |
|
54 } |
|
55 |
37 |
56 @Override |
38 @Override |
57 protected String getLocalKey() { |
39 protected String getLocalKey() { |
58 return LOCAL_KEY; |
40 return LOCAL_KEY; |
59 } |
41 } |
87 if (id.equals(SYMBIAN_PERSPECTIVE_ID)) { |
69 if (id.equals(SYMBIAN_PERSPECTIVE_ID)) { |
88 page.closePerspective(descriptor, true, true); |
70 page.closePerspective(descriptor, true, true); |
89 break; |
71 break; |
90 } |
72 } |
91 } |
73 } |
92 resetProblemView(); |
|
93 } |
74 } |
94 }); |
75 }); |
95 } |
76 } |
96 |
77 |
97 } |
78 } |