mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 01:25:23 +02:00
Fix Daytime icon path and disconnect
This commit is contained in:
parent
e941ef943d
commit
fc320160ed
2 changed files with 7 additions and 9 deletions
|
@ -70,7 +70,7 @@ public class Activator extends SystemBasePlugin {
|
||||||
|
|
||||||
protected void initializeImageRegistry() {
|
protected void initializeImageRegistry() {
|
||||||
String path = getIconPath();
|
String path = getIconPath();
|
||||||
putImageInRegistry(ICON_ID_DAYTIME, path+"full/obj16/daytime.gif"); //$NON-NLS-1$
|
putImageInRegistry(ICON_ID_DAYTIME, path+"/full/obj16/daytime.gif"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.osgi.util.NLS;
|
import org.eclipse.osgi.util.NLS;
|
||||||
|
|
||||||
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
|
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
|
||||||
|
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
|
||||||
import org.eclipse.rse.examples.daytime.DaytimeResources;
|
import org.eclipse.rse.examples.daytime.DaytimeResources;
|
||||||
import org.eclipse.rse.examples.daytime.service.DaytimeService;
|
import org.eclipse.rse.examples.daytime.service.DaytimeService;
|
||||||
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
|
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
|
||||||
|
@ -46,11 +47,6 @@ public class DaytimeConnectorService extends AbstractConnectorService {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void internalConnect(IProgressMonitor monitor) throws Exception {
|
protected void internalConnect(IProgressMonitor monitor) throws Exception {
|
||||||
internalConnect();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void internalConnect() throws Exception
|
|
||||||
{
|
|
||||||
fDaytimeService.setHostName(getHostName());
|
fDaytimeService.setHostName(getHostName());
|
||||||
try {
|
try {
|
||||||
fDaytimeService.getTimeOfDay();
|
fDaytimeService.getTimeOfDay();
|
||||||
|
@ -61,6 +57,8 @@ public class DaytimeConnectorService extends AbstractConnectorService {
|
||||||
//if no exception is thrown, we consider ourselves connected!
|
//if no exception is thrown, we consider ourselves connected!
|
||||||
fIsConnected = true;
|
fIsConnected = true;
|
||||||
//TODO force a refresh of the Viewer in order to show the resource
|
//TODO force a refresh of the Viewer in order to show the resource
|
||||||
|
// Fire comm event to signal state changed
|
||||||
|
notifyConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
public IDaytimeService getDaytimeService() {
|
public IDaytimeService getDaytimeService() {
|
||||||
|
@ -71,9 +69,9 @@ public class DaytimeConnectorService extends AbstractConnectorService {
|
||||||
return fIsConnected;
|
return fIsConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disconnect() {
|
public void internalDisconnect(IProgressMonitor monitor) throws Exception {
|
||||||
fIsConnected = false;
|
fIsConnected = false;
|
||||||
//TODO force a refresh of the Viewer in order to hide the resource
|
super.internalDisconnect(monitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasRemoteServerLauncherProperties() {
|
public boolean hasRemoteServerLauncherProperties() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue